tutorial.survey
Class Survey

java.lang.Object
  |
  +--tutorial.survey.Survey
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class Survey
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Version:
$Id: Survey.java,v 1.4 2001/05/02 18:07:07 hship Exp $
Author:
Howard Ship
See Also:
Serialized Form

Constructor Summary
Survey()
           
 
Method Summary
 java.lang.Object clone()
           
 int getAge()
           
 boolean getLikesCats()
           
 boolean getLikesDogs()
           
 boolean getLikesFerrits()
           
 boolean getLikesTurnips()
           
 java.lang.String getName()
           
 java.lang.Object getPrimaryKey()
           
 Race getRace()
           
 Sex getSex()
           
 void setAge(int value)
           
 void setLikesCats(boolean value)
           
 void setLikesDogs(boolean value)
           
 void setLikesFerrits(boolean value)
           
 void setLikesTurnips(boolean value)
           
 void setName(java.lang.String value)
           
 void setPrimaryKey(java.lang.Object value)
           
 void setRace(Race value)
           
 void setSex(Sex value)
           
 void validate()
          Validates that the survey is acceptible; throws an IllegalArgumentException if not valid.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Survey

public Survey()
Method Detail

getPrimaryKey

public java.lang.Object getPrimaryKey()

setPrimaryKey

public void setPrimaryKey(java.lang.Object value)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String value)

getAge

public int getAge()

setAge

public void setAge(int value)

setSex

public void setSex(Sex value)

getSex

public Sex getSex()

setRace

public void setRace(Race value)

getRace

public Race getRace()

getLikesCats

public boolean getLikesCats()

setLikesCats

public void setLikesCats(boolean value)

getLikesDogs

public boolean getLikesDogs()

setLikesDogs

public void setLikesDogs(boolean value)

getLikesFerrits

public boolean getLikesFerrits()

setLikesFerrits

public void setLikesFerrits(boolean value)

getLikesTurnips

public boolean getLikesTurnips()

setLikesTurnips

public void setLikesTurnips(boolean value)

validate

public void validate()
              throws java.lang.IllegalArgumentException
Validates that the survey is acceptible; throws an IllegalArgumentException if not valid.

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object