|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.crm.GlobalAddress
com.antelmann.crm.ImmutableGlobalAddress
public class ImmutableGlobalAddress
represents a special address that disables all setter methods
ImmutableSnailMailAddress,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.antelmann.crm.GlobalAddress |
|---|
GlobalAddress.Transport |
| Nested classes/interfaces inherited from interface com.antelmann.util.Localizable |
|---|
Localizable.Adapter |
| Field Summary |
|---|
| Fields inherited from class com.antelmann.crm.GlobalAddress |
|---|
GLOBAL_ADDRESS_FLAVOR |
| Constructor Summary | |
|---|---|
ImmutableGlobalAddress(GlobalAddress adr)
initializes the address with the given one |
|
| Method Summary | |
|---|---|
void |
clearAll()
|
SnailMailAddress |
getSnailMail()
|
Object |
getValuefor(GlobalAddress.Transport t)
|
void |
importXML(InputStream source)
The object is fully reinitialized with the XML data contained in the given ImputSource, so that the object has the same state as it had during export. |
void |
removeAddress(GlobalAddress.Transport t)
|
void |
setAllFrom(GlobalAddress ga)
initializes the internal map based on the content of the given address instance |
void |
setBankAccount(BankAccount ba)
|
void |
setEmail(String email)
allows to specify an email address for this instance |
void |
setFax(PhoneNumber fax)
|
void |
setIM(String im)
|
void |
setLocale(Locale locale,
Object context)
sets the Locale for this object so that all subsequent return values of method calls to this instance can be localized accordingly until a different Locale is set. |
void |
setSalutation(String salutation)
|
void |
setSMS(PhoneNumber sms)
|
void |
setSnailMail(SnailMailAddress adr)
|
void |
setTitle(String title)
shortcut to the SnailMailAddress |
void |
setURL(URL url)
|
void |
setValueFor(GlobalAddress.Transport t,
Object address)
|
void |
setVoice(PhoneNumber voice)
|
| Methods inherited from class com.antelmann.crm.GlobalAddress |
|---|
containsTransport, ensureSnailMail, equals, exportXML, getAddressDetailString, getAvailableTransports, getBankAccount, getCountry, getEmail, getFax, getGeoPoint, getIM, getLocale, getPersistenceDelegates, getSalutation, getSMS, getSnailMailAddressString, getSnailMailAddressString, getSpecifiedLocale, getTimeZone, getTitle, getURL, getVoice, hasEmail, hashCode, hasSnailMail, isEmpty, sameAs, setFax, setGeoPoint, setLocale, setSMS, setTimeZone, setVoice, supportsTransport, toDetailedString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImmutableGlobalAddress(GlobalAddress adr)
| Method Detail |
|---|
public Object getValuefor(GlobalAddress.Transport t)
getValuefor in class GlobalAddress
public void importXML(InputStream source)
throws SAXException,
IOException
XMLSerializable
importXML in interface XMLSerializableimportXML in class GlobalAddressSAXException
IOExceptionXMLSerializable.exportXML(OutputStream)public SnailMailAddress getSnailMail()
getSnailMail in class GlobalAddresspublic void clearAll()
clearAll in class GlobalAddresspublic void removeAddress(GlobalAddress.Transport t)
removeAddress in class GlobalAddress
public void setValueFor(GlobalAddress.Transport t,
Object address)
throws IllegalArgumentException,
NullPointerException
setValueFor in class GlobalAddressIllegalArgumentException - if the given transport is not supported or the if the address doesn't match the transport
NullPointerExceptionGlobalAddress.supportsTransport(Transport)public void setAllFrom(GlobalAddress ga)
GlobalAddress
setAllFrom in interface Forgeable<GlobalAddress>setAllFrom in class GlobalAddressga - the object whose behavior is to be copied to this instanceGlobalAddress.supportsTransport(Transport)public void setEmail(String email)
GlobalAddress
setEmail in class GlobalAddresspublic void setFax(PhoneNumber fax)
setFax in class GlobalAddresspublic void setIM(String im)
setIM in class GlobalAddress
public void setLocale(Locale locale,
Object context)
Localizable
setLocale in interface LocalizablesetLocale in class GlobalAddresslocale - the Locale that is to be used to determine return values for all methods
of this instance; if set to null, the default locale is to be used.context - a context that may be required for this instance to load the resources for the given locale;
this context may be null for objects that do not require an external context.
Examples of a context may be a database, a resource file, some map or no context at all.Localizable.getLocale()public void setVoice(PhoneNumber voice)
setVoice in class GlobalAddresspublic void setSnailMail(SnailMailAddress adr)
setSnailMail in class GlobalAddresspublic void setTitle(String title)
GlobalAddress
setTitle in class GlobalAddresspublic void setBankAccount(BankAccount ba)
setBankAccount in class GlobalAddresspublic void setSMS(PhoneNumber sms)
setSMS in class GlobalAddresspublic void setURL(URL url)
setURL in class GlobalAddresspublic void setSalutation(String salutation)
setSalutation in class GlobalAddress
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||