Compoze Software, Inc.

com.compoze.domino
Class Suffix


java.lang.Object

  |

  +--com.compoze.domino.Suffix

All Implemented Interfaces:
java.io.Serializable

public class Suffix
extends java.lang.Object
implements java.io.Serializable

This class implements a suffix for a contact. A key is used to lookup the readable string from domino_resource.properties.

See Also:
Serialized Form

Field Summary
static Suffix I
          This value represents the 'I' suffix.
static Suffix II
          This value represents the 'II' suffix.
static Suffix III
          This value represents the 'III' suffix.
static Suffix JR
          This value represents the 'Jr.' suffix.
static Suffix SR
          This value represents the 'Sr.' suffix.
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks for equality.
static Suffix get(java.lang.String sSuffix)
          Gets the suffix.
static java.util.List getList()
          Gets a list of suffix.
 java.lang.String getSuffix()
          Gets the name in the default locale.
 java.lang.String getSuffix(java.util.Locale locale)
          Gets the name using the specified locale.
 java.lang.String toString()
          Returns a string representation of the object.
 java.lang.String toString(java.util.Locale locale)
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

I


public static final Suffix I
This value represents the 'I' suffix.

II


public static final Suffix II
This value represents the 'II' suffix.

III


public static final Suffix III
This value represents the 'III' suffix.

JR


public static final Suffix JR
This value represents the 'Jr.' suffix.

SR


public static final Suffix SR
This value represents the 'Sr.' suffix.
Method Detail

getSuffix


public java.lang.String getSuffix()
Gets the name in the default locale.
Returns:
the name of the suffix
See Also:
getSuffix(Locale)

getSuffix


public java.lang.String getSuffix(java.util.Locale locale)
Gets the name using the specified locale.
Parameters:
locale - the locale
Returns:
the name of the suffix

get


public static Suffix get(java.lang.String sSuffix)
Gets the suffix.
Parameters:
sSuffix - the suffix in the default locale
Returns:
the matching suffix or null if not found

getList


public static java.util.List getList()
Gets a list of suffix.
Returns:
the list of Suffixes (unmodifiable)

equals


public boolean equals(java.lang.Object o)
Checks for equality. An object is considered equal if the suffix string matches (case insensitive).
Overrides:
equals in class java.lang.Object
Parameters:
o - the object to check for equality
Returns:
true if this object is the same as the argument; false otherwise

toString


public java.lang.String toString()
Returns a string representation of the object.
Overrides:
toString in class java.lang.Object

toString


public java.lang.String toString(java.util.Locale locale)
Returns a string representation of the object.
Parameters:
locale - the locale
Returns:
the string representation of the object

Compoze Software, Inc.

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