|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ITarget
An ITarget describes a celestial object which might be interessting
for astronomical observation.
An ITraget is a very general description of an astronomical object,
representing just the objects name, the celestial position and some
optional alias names.
The optional names might be used for colloquial names of a
astronomical object.
E.g. the Messier catalogue object M51 is also known as "Whirlpool Galaxy".
| Field Summary | |
|---|---|
static java.lang.String |
XML_ELEMENT_ALIASNAME
Constant for XML representation: Targets alias name element name. |
static java.lang.String |
XML_ELEMENT_CONSTELLATION
Constant for XML representation: Celestial constellation where the target can be found. |
static java.lang.String |
XML_ELEMENT_DATASOURCE
Constant for XML representation: Datasource that is the origin of this target. |
static java.lang.String |
XML_ELEMENT_NAME
Constant for XML representation: Targets name element name. |
static java.lang.String |
XML_ELEMENT_TARGET
Constant for XML representation: ITarget element name. |
static java.lang.String |
XML_XSI_TYPE
Constant for XML Schema Instance type. |
| Fields inherited from interface de.lehmannet.om.ISchemaElement |
|---|
XML_ELEMENT_ATTRIBUTE_ID |
| Method Summary | |
|---|---|
boolean |
addAliasName(java.lang.String newAliasName)
Adds a new alias name to the target. |
org.w3c.dom.Element |
addAsLinkToXmlElement(org.w3c.dom.Element parent)
Adds the target link to an given XML DOM Element The target element itself will be attached to given elements ownerDocument. |
org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element element)
Adds this Target to a given parent XML DOM Element. |
boolean |
equalsID(java.lang.Object o)
Returns true if the given object is an instance of ITarget and the given objects SchmemaElement.getID() returns the same string as this objects getID() method. |
java.lang.String[] |
getAliasNames()
Returns all alias names. |
java.lang.String |
getConstellation()
Returns the celestial constellation, where the target can be found. |
java.lang.String |
getDatasource()
Returns the datasource which is the origin of the target. |
java.lang.String |
getName()
Returns the name of the target. |
IObserver |
getObserver()
Returns the observer who is the originator of the target. |
EquPosition |
getPosition()
Returns the position of the target. |
boolean |
removeAliasName(java.lang.String aliasName)
Removes a alias name from the target. |
void |
setAliasNames(java.lang.String[] newAliasNames)
Sets an array of new alias names to this target. |
void |
setConstellation(java.lang.String constellation)
Sets the celestial constellation, where the target can be found. |
void |
setDatasource(java.lang.String datasource)
Sets the datasource of the target. |
void |
setName(java.lang.String name)
Sets the name of the target. |
void |
setObserver(IObserver observer)
Sets the observer who is the originator of the target. |
void |
setPosition(EquPosition position)
Sets the position of the target. |
| Methods inherited from interface de.lehmannet.om.ISchemaElement |
|---|
getDisplayName, getID |
| Methods inherited from interface de.lehmannet.om.IExtendableSchemaElement |
|---|
getXSIType |
| Field Detail |
|---|
static final java.lang.String XML_ELEMENT_TARGET
static final java.lang.String XML_XSI_TYPE
static final java.lang.String XML_ELEMENT_NAME
Target name goes here</name>
More stuff goes here
</target>
static final java.lang.String XML_ELEMENT_ALIASNAME
Target name goes here</name>
<alias>Target alias name goes here</alias>
More stuff goes here
</target>
static final java.lang.String XML_ELEMENT_CONSTELLATION
Constellationname goes here</constellation>
More stuff goes here
</target>
static final java.lang.String XML_ELEMENT_DATASOURCE
Datasource goes here</datasource>
More stuff goes here
</target>
| Method Detail |
|---|
boolean equalsID(java.lang.Object o)
org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element element)
parent - The parent element for this Target
null if parent was null.Elementorg.w3c.dom.Element addAsLinkToXmlElement(org.w3c.dom.Element parent)
parent - The element under which the the target link is created
null if element was null.Elementboolean addAliasName(java.lang.String newAliasName)
newAliasName - A alias name of the astronomical object
true if the alias name
could be added to the target.void setAliasNames(java.lang.String[] newAliasNames)
null is passed, the given alias names are deleted.
newAliasNames - An arry with new alias nameboolean removeAliasName(java.lang.String aliasName)
aliasName - The alias name that should be removed
true if the alias name
could be removed from the target. If false
is returned the given alias name could not be found
in the targets alias name list.java.lang.String getConstellation()
NULL if constellation was never set
void setConstellation(java.lang.String constellation)
constellation - The celestial constellation of the targetvoid setDatasource(java.lang.String datasource)
datasource - The datasource of the astronomical objectvoid setObserver(IObserver observer)
observer - The observer who is the originator of this targetIObserver getObserver()
null if observer was never set. (In this
case a dataSource must exist)java.lang.String getDatasource()
null if datasource was never set. (In this
case a observer must exist)java.lang.String[] getAliasNames()
null
is returned.java.lang.String getName()
void setName(java.lang.String name)
EquPosition getPosition()
void setPosition(EquPosition position)
position - The position of the astronomical object
in a popular coordination system
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||