ch.claudio.contactdb.data
Class Identity

java.lang.Object
  extended by ch.claudio.contactdb.data.Identity

public class Identity
extends java.lang.Object

An identity like an email address or ICQ number. Every person can have multiple identities.

Version:
$Id: Identity.java 32 2006-07-10 23:51:07Z $
Author:
Claudio Nieder

Constructor Summary
Identity(Person personArg, IdentityType typeArg, java.lang.String identityArg)
           
 
Method Summary
 java.lang.String getIdentity()
           
 Person getPerson()
           
 IdentityType getType()
           
 void setIdentity(java.lang.String identityArg)
           
 void setPerson(Person personArg)
           
 void setType(IdentityType typeArg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Identity

public Identity(Person personArg,
                IdentityType typeArg,
                java.lang.String identityArg)
Parameters:
personArg -
typeArg -
identityArg -
Method Detail

getIdentity

public java.lang.String getIdentity()
Returns:
Returns the identity.

setIdentity

public void setIdentity(java.lang.String identityArg)
Parameters:
identityArg - The identity to set.

getPerson

public Person getPerson()
Returns:
Returns the person.

setPerson

public void setPerson(Person personArg)
Parameters:
personArg - The person to set.

getType

public IdentityType getType()
Returns:
Returns the type.

setType

public void setType(IdentityType typeArg)
Parameters:
typeArg - The type to set.