com.objex.panywhere
Class SpouseRelationship

java.lang.Object
  extended by com.objex.panywhere.Relationship
      extended by com.objex.panywhere.SpouseRelationship
All Implemented Interfaces:
java.io.Serializable

public class SpouseRelationship
extends Relationship
implements java.io.Serializable

Class defines the the properties and methods of a SpouseRelationship bean. The properties and methods emulate the type of interaction and relativity between two spouses, enabling the user of the bean to determine what specific type of relationship exists between the two Individuals.

See Also:
Serialized Form

Constructor Summary
SpouseRelationship()
          Creates a new Spouse Relationship Object
SpouseRelationship(java.lang.String upn, java.lang.String type)
          Creates a new SpouseRelationship object for Individual specified and with the spouse type types specified.
 
Method Summary
 boolean isCasual()
           
 boolean isConsanguineous()
           
 boolean isDivorced()
           
 boolean isInfertile()
           
 boolean isMarried()
           
 boolean isNoissue()
           
 boolean isSeparated()
           
 void setCasual(boolean as_casual)
          Sets Casual status of this relationship object
 void setConsanguineous(boolean incestuous)
          Sets Consanguinous status of this relationship object
 void setDivorced(boolean as_divorced)
          Sets Divorced status of this relationship object
 void setInfertile(boolean fertile)
          Sets Infertility status of this relationship object
 void setMarried(boolean as_married)
          Sets Normal status of this relationship object
 void setNoissue(boolean as_noissue)
          Sets No Issue status of this relationship object
 void setSeparated(boolean as_separated)
          Sets Separated status of this relationship object.
 
Methods inherited from class com.objex.panywhere.Relationship
getType, getUpn, isDizygotic, isMonozygotic, isUnknown, setDizygotic, setMonozygotic, setType, setUnknown, setUpn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpouseRelationship

public SpouseRelationship()
Creates a new Spouse Relationship Object


SpouseRelationship

public SpouseRelationship(java.lang.String upn,
                          java.lang.String type)
Creates a new SpouseRelationship object for Individual specified and with the spouse type types specified.

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

setConsanguineous

public void setConsanguineous(boolean incestuous)
Description copied from class: Relationship
Sets Consanguinous status of this relationship object

Overrides:
setConsanguineous in class Relationship
Parameters:
incestuous - The new Consanguinous status

isConsanguineous

public boolean isConsanguineous()
Overrides:
isConsanguineous in class Relationship
Returns:
The Consanguinous status of this relationship object

setMarried

public void setMarried(boolean as_married)
Description copied from class: Relationship
Sets Normal status of this relationship object

Overrides:
setMarried in class Relationship
Parameters:
as_married - The new Normal status

isMarried

public boolean isMarried()
Overrides:
isMarried in class Relationship
Returns:
The Normal status of this relationship object

setNoissue

public void setNoissue(boolean as_noissue)
Description copied from class: Relationship
Sets No Issue status of this relationship object

Overrides:
setNoissue in class Relationship
Parameters:
as_noissue - The new No Issue status

isNoissue

public boolean isNoissue()
Overrides:
isNoissue in class Relationship
Returns:
The No Issue status of this relationship object

setInfertile

public void setInfertile(boolean fertile)
Description copied from class: Relationship
Sets Infertility status of this relationship object

Overrides:
setInfertile in class Relationship
Parameters:
fertile - The new Infertile status

isInfertile

public boolean isInfertile()
Overrides:
isInfertile in class Relationship
Returns:
The Infertile status of this relationship object

setCasual

public void setCasual(boolean as_casual)
Description copied from class: Relationship
Sets Casual status of this relationship object

Overrides:
setCasual in class Relationship
Parameters:
as_casual - The new Casual status

isCasual

public boolean isCasual()
Overrides:
isCasual in class Relationship
Returns:
Casual status of this relationship object

setDivorced

public void setDivorced(boolean as_divorced)
Description copied from class: Relationship
Sets Divorced status of this relationship object

Overrides:
setDivorced in class Relationship
Parameters:
as_divorced - The new Divorced status

isDivorced

public boolean isDivorced()
Overrides:
isDivorced in class Relationship
Returns:
The divorced status of this relationship object

setSeparated

public void setSeparated(boolean as_separated)
Description copied from class: Relationship
Sets Separated status of this relationship object.

Overrides:
setSeparated in class Relationship
Parameters:
as_separated - The new separated status

isSeparated

public boolean isSeparated()
Overrides:
isSeparated in class Relationship
Returns:
The Separated status of this relationship object