|
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.SnailMailAddress
com.antelmann.crm.ImmutableSnailMailAddress
public class ImmutableSnailMailAddress
represents a special address that disables all setter methods
ImmutableGlobalAddress,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.antelmann.util.Localizable |
|---|
Localizable.Adapter |
| Field Summary |
|---|
| Fields inherited from class com.antelmann.crm.SnailMailAddress |
|---|
ADDRESS_FLAVOR |
| Constructor Summary | |
|---|---|
ImmutableSnailMailAddress(SnailMailAddress adr)
|
|
ImmutableSnailMailAddress(String fullAddress)
|
|
| Method Summary | |
|---|---|
void |
clearAll()
allows to clear all fields of this address |
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 |
setAllFrom(SnailMailAddress adr)
copies the properties of the given object and applies them to this instance, so that its behavior in regards to the given object can be matched to the extend that the implementing class supports that behavior. |
void |
setCity(String city)
|
void |
setCountry(String country)
uses the ISO 3166 2-letter code |
String |
setFullAddress(String fullAddress)
sets the address for the current Locale |
String |
setFullAddress(String fullAddress,
Locale l)
a non-null parameter is used to override how the address is constructed |
void |
setState(String state)
|
void |
setStreet(String street)
may contain multiple lines |
void |
setStreetNumber(String sn)
|
void |
setTitle(String title)
may contain multiple lines |
void |
setZip(String zip)
|
| Methods inherited from class com.antelmann.crm.SnailMailAddress |
|---|
equals, exportXML, getAddressString, getAddressString, getCity, getCountry, getCountryName, getCountryName, getFormattedAddress, getFormattedAddress, getFullAddress, getFullAddress, getFullAddressMap, getLocale, getState, getStreet, getStreetNumber, getTitle, getZip, hashCode, isEmpty, replaceEmptyStringsWithNull, requiresState, requiresState, sameAs, setFullAddressMap, setLocale, setLocale, toDetailedString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImmutableSnailMailAddress(SnailMailAddress adr)
public ImmutableSnailMailAddress(String fullAddress)
| Method Detail |
|---|
public void importXML(InputStream source)
throws SAXException,
IOException
XMLSerializable
importXML in interface XMLSerializableimportXML in class SnailMailAddressSAXException
IOExceptionXMLSerializable.exportXML(OutputStream)public void setAllFrom(SnailMailAddress adr)
Forgeable
setAllFrom in interface Forgeable<SnailMailAddress>setAllFrom in class SnailMailAddressadr - the object whose behavior is to be copied to this instancepublic void clearAll()
SnailMailAddress
clearAll in class SnailMailAddresspublic void setCity(String city)
setCity in class SnailMailAddresspublic void setCountry(String country)
SnailMailAddress
setCountry in class SnailMailAddress
public String setFullAddress(String fullAddress,
Locale l)
SnailMailAddress
setFullAddress in class SnailMailAddressSnailMailAddress.getAddressString(Locale)public String setFullAddress(String fullAddress)
SnailMailAddress
setFullAddress in class SnailMailAddresspublic void setState(String state)
setState in class SnailMailAddresspublic void setStreet(String street)
SnailMailAddress
setStreet in class SnailMailAddresspublic void setStreetNumber(String sn)
setStreetNumber in class SnailMailAddresspublic void setTitle(String title)
SnailMailAddress
setTitle in class SnailMailAddresspublic void setZip(String zip)
setZip in class SnailMailAddress
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||