com.objex.panywhere
Class Relationship

java.lang.Object
  extended by com.objex.panywhere.Relationship
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SpouseRelationship, TwinRelationship

public abstract class Relationship
extends java.lang.Object
implements java.io.Serializable

Defines at an abstract level what makes up a relationship between two Individuals. High level methods for setting and getting the properties of a relationship are defined.

See Also:
Serialized Form

Constructor Summary
Relationship()
          Creates a new Relationship object.
Relationship(java.lang.String aUpn, java.lang.String aRelationship)
          Creates a new Relationship object for Individual specified by "upn" and with the twin type specified.
 
Method Summary
 java.lang.String getType()
           
 java.lang.String getUpn()
           
 boolean isCasual()
           
 boolean isConsanguineous()
           
 boolean isDivorced()
           
 boolean isDizygotic()
           
 boolean isInfertile()
           
 boolean isMarried()
           
 boolean isMonozygotic()
           
 boolean isNoissue()
           
 boolean isSeparated()
           
 boolean isUnknown()
           
 void setCasual(boolean rhs)
          Sets Casual status of this relationship object
 void setConsanguineous(boolean rhs)
          Sets Consanguinous status of this relationship object
 void setDivorced(boolean rhs)
          Sets Divorced status of this relationship object
 void setDizygotic(boolean rhs)
          Sets Dizygotic status of this relationship object
 void setInfertile(boolean rhs)
          Sets Infertility status of this relationship object
 void setMarried(boolean rhs)
          Sets Normal status of this relationship object
 void setMonozygotic(boolean rhs)
          Abstract method sets Monozygotic status of this relationship object
 void setNoissue(boolean rhs)
          Sets No Issue status of this relationship object
 void setSeparated(boolean as_separated)
          Sets Separated status of this relationship object.
 void setType(java.lang.String as_rel)
          Sets the Type of twin
 void setUnknown(boolean rhs)
          Sets Unknown Twin Type status of this relationship object
 void setUpn(java.lang.String key)
          Sets the UPN
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Relationship

public Relationship()
Creates a new Relationship object. This is not called directly since this is an abstract class.


Relationship

public Relationship(java.lang.String aUpn,
                    java.lang.String aRelationship)
Creates a new Relationship object for Individual specified by "upn" and with the twin type specified. This is not called directly since this is an abstract class.

Parameters:
aUpn - The UPN of the Individual owning this twin Relationship object
aRelationship - The twin type for the new twin relationship.
Method Detail

setUpn

public void setUpn(java.lang.String key)
Sets the UPN

Parameters:
key - The new UPN property

getUpn

public java.lang.String getUpn()
Returns:
The UPN to which this relationship object relates

setType

public void setType(java.lang.String as_rel)
Sets the Type of twin

Parameters:
as_rel - The new Relationship Type

getType

public java.lang.String getType()
Returns:
The twin type

isDivorced

public boolean isDivorced()
Returns:
The divorced status of this relationship object

isDizygotic

public boolean isDizygotic()
Returns:
The Dizygotic status of this relationship object

isMonozygotic

public boolean isMonozygotic()
Returns:
The Monozygotic status of this relationship object

isUnknown

public boolean isUnknown()
Returns:
The Unknown status of this relationship object

isConsanguineous

public boolean isConsanguineous()
Returns:
The Consanguinous status of this relationship object

isMarried

public boolean isMarried()
Returns:
The Normal status of this relationship object

isSeparated

public boolean isSeparated()
Returns:
The Separated status of this relationship object

setSeparated

public void setSeparated(boolean as_separated)
Sets Separated status of this relationship object.

Parameters:
as_separated - The new separated status

setDivorced

public void setDivorced(boolean rhs)
Sets Divorced status of this relationship object

Parameters:
rhs - The new Divorced status

setMarried

public void setMarried(boolean rhs)
Sets Normal status of this relationship object

Parameters:
rhs - The new Normal status

setConsanguineous

public void setConsanguineous(boolean rhs)
Sets Consanguinous status of this relationship object

Parameters:
rhs - The new Consanguinous status

setDizygotic

public void setDizygotic(boolean rhs)
Sets Dizygotic status of this relationship object

Parameters:
rhs - The new Dizygotic status

setMonozygotic

public void setMonozygotic(boolean rhs)
Abstract method sets Monozygotic status of this relationship object

Parameters:
rhs - The new Monozygtic status

setUnknown

public void setUnknown(boolean rhs)
Sets Unknown Twin Type status of this relationship object

Parameters:
rhs - The new Unknown status

setNoissue

public void setNoissue(boolean rhs)
Sets No Issue status of this relationship object

Parameters:
rhs - The new No Issue status

setInfertile

public void setInfertile(boolean rhs)
Sets Infertility status of this relationship object

Parameters:
rhs - The new Infertile status

setCasual

public void setCasual(boolean rhs)
Sets Casual status of this relationship object

Parameters:
rhs - The new Casual status

isCasual

public boolean isCasual()
Returns:
Casual status of this relationship object

isInfertile

public boolean isInfertile()
Returns:
The Infertile status of this relationship object

isNoissue

public boolean isNoissue()
Returns:
The No Issue status of this relationship object