Compoze Software, Inc.

com.compoze.exchange.activedirectory
Class Name


java.lang.Object

  |

  +--com.compoze.exchange.activedirectory.Name


public class Name
extends java.lang.Object

This class represents a person's full name. The name is assembled with the form:

 [personal title] [given name] [middle name] [surname] [name suffix]
 


Constructor Summary
Name()
          Constructor.
Name(java.lang.String sGivenName, java.lang.String sSurname)
          Constructor.
Name(java.lang.String sGivenName, java.lang.String sMiddleName, java.lang.String sSurname, java.lang.String sTitle, java.lang.String sSuffix, java.lang.String sInitials)
          Constructor.
 
Method Summary
 java.lang.String getGivenName()
          Gets the given name.
 java.lang.String getInitials()
          Gets the initials.
 java.lang.String getMiddleName()
          Gets the middle name.
 java.lang.String getSuffix()
          Gets the name suffix.
 java.lang.String getSurname()
          Gets the surname.
 java.lang.String getTitle()
          Gets the name title.
 void setGivenName(java.lang.String sGivenName)
          Sets the given name.
 void setInitials(java.lang.String sInitials)
          Sets the initials.
 void setMiddleName(java.lang.String sMiddleName)
          Sets the middle name.
 void setSuffix(java.lang.String sSuffix)
          Sets the name suffix.
 void setSurname(java.lang.String sSurname)
          Sets the surname.
 void setTitle(java.lang.String sTitle)
          Sets the name title.
 java.lang.String toString()
          Creates a string representation of the name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Name


public Name()
Constructor.

Name


public Name(java.lang.String sGivenName,
            java.lang.String sMiddleName,
            java.lang.String sSurname,
            java.lang.String sTitle,
            java.lang.String sSuffix,
            java.lang.String sInitials)
Constructor.
Parameters:
sGivenName - the given name of the person
sMiddleName - the middle name of the person
sSurname - the surname of the person
sTitle - the personal title of the person
sSuffix - the name suffix of the person
sInitials - the initials of the person

Name


public Name(java.lang.String sGivenName,
            java.lang.String sSurname)
Constructor.
Parameters:
sGivenName - the given name of the person
sSurname - the surname of the person
Method Detail

getGivenName


public java.lang.String getGivenName()
Gets the given name.
Returns:
the given name

setGivenName


public void setGivenName(java.lang.String sGivenName)
Sets the given name.
Parameters:
sGivenName - the given name

getMiddleName


public java.lang.String getMiddleName()
Gets the middle name.
Returns:
the middle name

setMiddleName


public void setMiddleName(java.lang.String sMiddleName)
Sets the middle name.
Parameters:
sMiddleName - the middle name

getSurname


public java.lang.String getSurname()
Gets the surname.
Returns:
the surname

setSurname


public void setSurname(java.lang.String sSurname)
Sets the surname.
Parameters:
sSurname - the surname

getTitle


public java.lang.String getTitle()
Gets the name title.
Parameters:
the - name title

setTitle


public void setTitle(java.lang.String sTitle)
Sets the name title.
Parameters:
sTitle - the name title

getSuffix


public java.lang.String getSuffix()
Gets the name suffix.
Returns:
the name suffix

setSuffix


public void setSuffix(java.lang.String sSuffix)
Sets the name suffix.
Parameters:
sSuffix - the name suffix

getInitials


public java.lang.String getInitials()
Gets the initials.
Returns:
the initials

setInitials


public void setInitials(java.lang.String sInitials)
Sets the initials.
Parameters:
sInitials - the initials

toString


public java.lang.String toString()
Creates a string representation of the name. The string representation is created in the following form:

 Title Given Middle Surname Suffix (Nickname)
 
Overrides:
toString in class java.lang.Object
Returns:
the string representation of the name

Compoze Software, Inc.

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.