Compoze Software, Inc.

com.compoze.exchange.webdav
Class MailingAddressId


java.lang.Object

  |

  +--com.compoze.exchange.webdav.MailingAddressId


public class MailingAddressId
extends java.lang.Object

This class indicates what address (home, business, other) is used to generate the contact's mailing address. The internationalizable string values are stored in the exchange_resources.properties file (accessed through ExchangeProperties) and referenced by their key.


Field Summary
static MailingAddressId BUSINESS_ADDRESS
          This value represents the mailing entries are constructed from the work address entries of the contact.
static MailingAddressId HOME_ADDRESS
          This value represents the mailing entries are constructed from the home address entries of the contact.
static MailingAddressId NO_ADDRESS
          This value represents the mailing entries are not constructed from other entries (they should be empty), and the mailing address must be manually specified.
static MailingAddressId OTHER_ADDRESS
          This value represents the mailing entries are constructed from the other address entries of the contact.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other MailingAddressId object is "equal to" this one.
static MailingAddressId get(int iStoreValue)
          Gets the MailingAddress identifier by its store value.
static MailingAddressId get(java.lang.String sName)
          Gets the MailingAddress identifier by the name in the system default locale.
static java.util.List getList()
          Gets the list of MailingAddress identifiers.
 java.lang.String getName()
          Gets the name of the MailingAddress identifier using the system default locale.
 java.lang.String getName(java.util.Locale locale)
          Gets the name of the MailingAddress identifier using the specified locale.
 int getStoreValue()
          Gets the value that's used to store the MailingAddress identifier in the storage system.
 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

NO_ADDRESS


public static final MailingAddressId NO_ADDRESS
This value represents the mailing entries are not constructed from other entries (they should be empty), and the mailing address must be manually specified.

HOME_ADDRESS


public static final MailingAddressId HOME_ADDRESS
This value represents the mailing entries are constructed from the home address entries of the contact.

BUSINESS_ADDRESS


public static final MailingAddressId BUSINESS_ADDRESS
This value represents the mailing entries are constructed from the work address entries of the contact.

OTHER_ADDRESS


public static final MailingAddressId OTHER_ADDRESS
This value represents the mailing entries are constructed from the other address entries of the contact.
Method Detail

getName


public java.lang.String getName()
Gets the name of the MailingAddress identifier using the system default locale.
Returns:
the name

getName


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

getStoreValue


public int getStoreValue()
Gets the value that's used to store the MailingAddress identifier in the storage system.
Returns:
the value

get


public static MailingAddressId get(int iStoreValue)
Gets the MailingAddress identifier by its store value.
Parameters:
iStoreValue - the store value
Returns:
the matching MailingAddressId or null

get


public static MailingAddressId get(java.lang.String sName)
Gets the MailingAddress identifier by the name in the system default locale.
Parameters:
sName - the name in the system default locale
Returns:
the matching MailingAddressId or null if not found

getList


public static java.util.List getList()
Gets the list of MailingAddress identifiers.
Returns:
the list of MailingAddressId levels (unmodifiable)

equals


public boolean equals(java.lang.Object o)
Indicates whether some other MailingAddressId object is "equal to" this one.
Overrides:
equals in class java.lang.Object
Returns:
true if this object is the same as the obj argument

toString


public java.lang.String toString()
Returns a string representation of the object.
Overrides:
toString in class java.lang.Object
Returns:
the string representation of the 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.