|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IObserver
An IObserver describes person, who does astronomical observations.
The IObserver interface provides access to at least the name and
surname of the person. Additionally address informations may be
stored here.
| Field Summary | |
|---|---|
static java.lang.String |
XML_ELEMENT_CONTACT
Constant for XML representation: Observers contact element name. |
static java.lang.String |
XML_ELEMENT_DSL
Constant for XML representation: Observers DeepSkyList (DSL) code. |
static java.lang.String |
XML_ELEMENT_NAME
Constant for XML representation: Observers name element name. |
static java.lang.String |
XML_ELEMENT_OBSERVER
Constant for XML representation: IObserver element name. |
static java.lang.String |
XML_ELEMENT_SURNAME
Constant for XML representation: Observers surname element name. |
| Fields inherited from interface de.lehmannet.om.ISchemaElement |
|---|
XML_ELEMENT_ATTRIBUTE_ID |
| Method Summary | |
|---|---|
org.w3c.dom.Element |
addAsLinkToXmlElement(org.w3c.dom.Element parent,
java.lang.String NameOfLinkElement)
Adds a Observer link to an given XML DOM Element. |
boolean |
addContact(java.lang.String newContact)
Adds a new contact information to the observer. |
org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element element)
Adds this Observer to a given parent XML DOM Element. |
java.util.List |
getContacts()
Returns a List with contact information of the observer The returned List may contain e-Mail address, phone number, fax number, postal adress, webpage....whatever. |
java.lang.String |
getDSLCode()
Returns the DeepSkyList (DSL) Code of the observer Might return NULL if observer has no DSL code |
java.lang.String |
getName()
Returns the name of the observer The name (and the surname) are the only mandatory fields this interface requires. |
java.lang.String |
getSurname()
Returns the surname of the observer The surname (and the name) are the only mandatory fields this interface requires. |
boolean |
setContacts(java.util.List newContacts)
Sets the contact information to the observer. |
void |
setDSLCode(java.lang.String DSLCode)
Sets the DeepSkyList (DSL) Code of the observer |
void |
setName(java.lang.String name)
Sets a new name to the observer. |
void |
setSurname(java.lang.String surname)
Sets a new surname to the observer. |
| Methods inherited from interface de.lehmannet.om.ISchemaElement |
|---|
getDisplayName, getID |
| Field Detail |
|---|
static final java.lang.String XML_ELEMENT_OBSERVER
static final java.lang.String XML_ELEMENT_NAME
Observer name goes here</name>
More stuff goes here
</observer>
static final java.lang.String XML_ELEMENT_SURNAME
Observer surname goes here</surname>
More stuff goes here
</observer>
static final java.lang.String XML_ELEMENT_CONTACT
Observer name goes here</contact>
More stuff goes here
</observer>
static final java.lang.String XML_ELEMENT_DSL
Observer DSL code goes here</DSL>
More stuff goes here
</observer>
| Method Detail |
|---|
org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element element)
parent - The parent element for this Observer
null if parent was null.Element
org.w3c.dom.Element addAsLinkToXmlElement(org.w3c.dom.Element parent,
java.lang.String NameOfLinkElement)
parent - The element at which the Observer link will be created.NameOfLinkElement - The name of the link element, which is set under the passed
element
null if element was null.Elementjava.util.List getContacts()
null
null if not informations are given.java.lang.String getName()
java.lang.String getSurname()
java.lang.String getDSLCode()
NULL if observer has no DSL code
NULL
if DSL was never setboolean addContact(java.lang.String newContact)
newContact - the additional contact information
boolean setContacts(java.util.List newContacts)
newContacts - new list of contact informations
void setDSLCode(java.lang.String DSLCode)
DSLCode - the DeepSkyList (DSL) Code of the observer
void setName(java.lang.String name)
throws java.lang.IllegalArgumentException
null
name - the new name of the observer
java.lang.IllegalArgumentException - if the given name is null
void setSurname(java.lang.String surname)
throws java.lang.IllegalArgumentException
null
surname - the new surname of the observer
java.lang.IllegalArgumentException - if the given surname is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||