|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface modeling the personal identity of a contact based on the types and information defined by the vCard Mime directory profile standard.
For reference see RFC 2426:
3.1 Identification Types
3.1.1 FN Type Definition
3.1.2 N Type Definition
3.1.3 NICKNAME Type Definition
3.1.4 PHOTO Type Definition
3.1.5 BDAY Type Definition
3.6.5 SORT-STRING Type Definition
Note that the formatted name is based on the
semantics of the X.520 Common Name attribute
and represents a required field for vCards.
The N type has been split up into
Last (Family) Name, First (Given) Name,
Additional Names, (Honorific) Prefixes, and
(Honorific) Suffixes (with their
respective accessor and mutator methods).
Image
Method Summary | |
void |
addAdditionalName(java.lang.String name)
Adds an additional name. |
void |
addNickname(java.lang.String name)
Adds a nickname. |
void |
addPrefix(java.lang.String prefix)
Adds a prefix. |
void |
addSuffix(java.lang.String suffix)
Adds a suffix. |
java.lang.String |
getAdditionalName(int index)
Returns the additional name at the given index. |
int |
getAdditionalNameCount()
Returns the number of additional names set for this PersonalIdentity. |
java.util.Date |
getBirthDate()
Returns the birth date. |
java.lang.String |
getFirstname()
Returns the firstname of this PersonalIdentity. |
java.lang.String |
getFormattedName()
Returns the formatted name. |
java.lang.String |
getLastname()
Returns the lastname of this PersonalIdentity. |
java.lang.String |
getNickname(int index)
Returns the nickname at the given index. |
int |
getNicknameCount()
Returns the number of nicknames set for this PersonalIdentity. |
Image |
getPhoto()
Returns the photo associated with this PersonalIdentity. |
java.lang.String |
getPrefix(int index)
Returns the prefix at the given index. |
java.lang.String |
getSortString()
Returns the sort string. |
java.lang.String |
getSuffix(int index)
Returns the suffix at the given index. |
boolean |
hasPhoto()
Tests if this PersonalIdentity has a photo associated. |
java.lang.String[] |
listAdditionalNames()
Returns all additional names associated with this PersonalIdentity. |
java.lang.String[] |
listNicknames()
Returns all nicknames associated with this PersonalIdentity. |
java.lang.String[] |
listPrefixes()
Returns all prefixes associated with this PersonalIdentity. |
java.lang.String[] |
listSuffixes()
Returns all suffixes associated with this PersonalIdentity. |
java.lang.String |
removeAdditionalName(int index)
Removes and returns an additional name at a given index. |
void |
removeAllAdditionalNames()
Removes all additional names. |
void |
removeAllNicknames()
Removes all nicknames. |
void |
removeAllPrefixes()
Removes all prefixes. |
void |
removeAllSuffixes()
Removes all suffixes. |
java.lang.String |
removeNickname(int index)
Removes and returns a nickname at a given index. |
java.lang.String |
removePrefix(int index)
Removes and returns a prefix at a given index. |
java.lang.String |
removeSuffix(int index)
Removes and returns a suffix at a given index. |
java.lang.String |
setAdditionalName(int index,
java.lang.String name)
Sets the additional name at the given index, returning the replaced one. |
void |
setBirthDate(java.util.Date birthdate)
Sets the birth date. |
void |
setFirstname(java.lang.String name)
Sets the firstname of this PersonalIdentity. |
void |
setFormattedName(java.lang.String fn)
Sets the formatted name. |
void |
setLastname(java.lang.String name)
Sets the lastname of this PersonalIdentity. |
java.lang.String |
setNickname(int index,
java.lang.String name)
Sets the nickname at the given index, returning the replaced one. |
void |
setPhoto(Image photo)
Sets the photo associated with this PersonalIdentity. |
java.lang.String |
setPrefix(int index,
java.lang.String prefix)
Sets the prefix at the given index, returning the replaced one. |
void |
setSortString(java.lang.String sortstr)
Sets the sort string. |
java.lang.String |
setSuffix(int index,
java.lang.String suffix)
Sets the suffix at the given index, returning the replaced one. |
Method Detail |
public java.lang.String getFirstname()
public void setFirstname(java.lang.String name)
name
- the firstname as String.public java.lang.String getLastname()
public void setLastname(java.lang.String name)
name
- the firstname as String.public java.lang.String[] listAdditionalNames()
public java.lang.String getAdditionalName(int index) throws java.lang.IndexOutOfBoundsException
index
- the index as int.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public java.lang.String setAdditionalName(int index, java.lang.String name) throws java.lang.IndexOutOfBoundsException
index
- the index as int.name
- the name to be set as String.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public void addAdditionalName(java.lang.String name)
name
- the name as String.public java.lang.String removeAdditionalName(int index) throws java.lang.IndexOutOfBoundsException
index
- the index as int.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public void removeAllAdditionalNames()
public int getAdditionalNameCount()
public java.lang.String[] listNicknames()
public java.lang.String getNickname(int index) throws java.lang.IndexOutOfBoundsException
index
- the index as int.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public java.lang.String setNickname(int index, java.lang.String name) throws java.lang.IndexOutOfBoundsException
index
- the index as int.name
- the name to be set as String.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public void addNickname(java.lang.String name)
name
- the name as String.public java.lang.String removeNickname(int index) throws java.lang.IndexOutOfBoundsException
index
- the index as int.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public void removeAllNicknames()
public int getNicknameCount()
public java.lang.String[] listPrefixes()
public java.lang.String getPrefix(int index) throws java.lang.IndexOutOfBoundsException
index
- the index as int.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public java.lang.String setPrefix(int index, java.lang.String prefix) throws java.lang.IndexOutOfBoundsException
index
- the index as int.prefix
- the prefix to be set as String.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public void addPrefix(java.lang.String prefix)
prefix
- the prefix as String.public java.lang.String removePrefix(int index) throws java.lang.IndexOutOfBoundsException
index
- the index as int.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public void removeAllPrefixes()
public java.lang.String[] listSuffixes()
public java.lang.String getSuffix(int index) throws java.lang.IndexOutOfBoundsException
index
- the index as int.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public java.lang.String setSuffix(int index, java.lang.String suffix) throws java.lang.IndexOutOfBoundsException
index
- the index as int.suffix
- the suffix to be set as String.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public void addSuffix(java.lang.String suffix)
suffix
- the suffix as String.public java.lang.String removeSuffix(int index) throws java.lang.IndexOutOfBoundsException
index
- the index as int.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public void removeAllSuffixes()
public java.util.Date getBirthDate()
public void setBirthDate(java.util.Date birthdate)
birthdate
- the birth date as Date.public java.lang.String getFormattedName()
public void setFormattedName(java.lang.String fn)
fn
- the formatted name as String.public java.lang.String getSortString()
public void setSortString(java.lang.String sortstr)
sortstr
- the sort string as String.public Image getPhoto()
public void setPhoto(Image photo)
photo
- the photo as Image.public boolean hasPhoto()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |