|
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.AddressInfoImpl
public class AddressInfoImpl
a default implementation for an AddressInfo
| Field Summary |
|---|
| Fields inherited from interface com.antelmann.util.Enabled |
|---|
FILTER |
| Constructor Summary | |
|---|---|
AddressInfoImpl()
|
|
| Method Summary | |
|---|---|
void |
exportXML(OutputStream out)
exports the entire object as XML and writes it to the given Writer, so that the object can be reconstructed with importXML(InputSource). |
GlobalAddress |
getAddress()
always returns a non-null value referring directly to the embedded main Address instance, which provides a way to 'address' the implementing instance |
Date |
getBeginTime()
|
String |
getDescription()
provides a short description like 'work address', 'private home', 'parent's place', 'vacation home', 'birth location', 'college condo' or the alike |
Date |
getEndTime()
|
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. |
boolean |
isAvailable()
|
boolean |
isEnabled()
determines whether this object is currently enabled |
void |
setAllFrom(AddressInfo ai)
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 |
setBeginTime(Date beginTime)
|
void |
setDescription(String notes)
|
void |
setEnabled(boolean flag)
allows to enable/disable this instance |
void |
setEndTime(Date endTime)
|
String |
toDetailedString()
provides full details of this instance in a String. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AddressInfoImpl()
| Method Detail |
|---|
public GlobalAddress getAddress()
Addressable
getAddress in interface Addressablepublic String getDescription()
AddressInfo
getDescription in interface AddressInfopublic Date getBeginTime()
getBeginTime in interface LifeCycleObjectpublic Date getEndTime()
getEndTime in interface LifeCycleObjectpublic boolean isEnabled()
Enabled
isEnabled in interface Enabledpublic String toString()
toString in class Objectpublic String toDetailedString()
DetailedString
toDetailedString in interface DetailedStringpublic boolean isAvailable()
public void setAllFrom(AddressInfo ai)
Forgeable
setAllFrom in interface Forgeable<AddressInfo>ai - the object whose behavior is to be copied to this instancepublic void setEnabled(boolean flag)
Enabled
setEnabled in interface Enabledpublic void setBeginTime(Date beginTime)
public void setEndTime(Date endTime)
public void setDescription(String notes)
public void exportXML(OutputStream out)
throws IOException
XMLSerializableimportXML(InputSource).
The given stream is neither flushed nor closed, so that other data may be
effectively written to the InputSource after the method returned.
exportXML in interface XMLSerializableIOExceptionXMLSerializable.importXML(InputStream)
public void importXML(InputStream source)
throws SAXException,
IOException
XMLSerializable
importXML in interface XMLSerializableSAXException
IOExceptionXMLSerializable.exportXML(OutputStream)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||