|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.ml.om.SchemaElement
org.jscience.ml.om.Target
org.jscience.ml.om.extension.solarsystem.SolarSystemTarget
public abstract class SolarSystemTarget
SolarSystemTarget extends the org.jscience.ml.om.Target class.
Its specialised for solar system targets.
A SolarSystemTarget target can be any astronomical object inside our
solar system.
This class exists more due to extension reasons as this class does not
add new functions to org.jscience.ml.om.Target
| Field Summary |
|---|
| Fields inherited from interface org.jscience.ml.om.ITarget |
|---|
XML_ELEMENT_ALIASNAME, XML_ELEMENT_CONSTELLATION, XML_ELEMENT_DATASOURCE, XML_ELEMENT_NAME, XML_ELEMENT_TARGET, XML_XSI_TYPE |
| Fields inherited from interface org.jscience.ml.om.ISchemaElement |
|---|
XML_ELEMENT_ATTRIBUTE_ID |
| Constructor Summary | |
|---|---|
protected |
SolarSystemTarget(org.w3c.dom.Node targetElement,
IObserver[] observers)
Constructs a new instance of a SolarSystemTarget from a given DOM target Element. |
protected |
SolarSystemTarget(java.lang.String name,
IObserver observer)
Constructs a new instance of a SolarSystemTarget. |
protected |
SolarSystemTarget(java.lang.String name,
java.lang.String datasource)
Constructs a new instance of a SolarSystemTarget. |
| Method Summary | |
|---|---|
abstract org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element element)
Adds this Target to a given parent XML DOM Element. |
protected org.w3c.dom.Element |
createXmlSolarSystemTargetElement(org.w3c.dom.Element element,
java.lang.String xsiType)
Creates a SolarSystemTarget under the target container. |
boolean |
equals(java.lang.Object obj)
Overwrittes equals(Object) method from java.lang.Object. |
abstract java.lang.String |
getXSIType()
Returns the XML schema instance type of the implementation. |
java.lang.String |
toString()
Overwrittes toString() method from java.lang.Object. |
| Methods inherited from class org.jscience.ml.om.Target |
|---|
addAliasName, addAliasNames, addAsLinkToXmlElement, createXmlTargetElement, getAliasNames, getConstellation, getDatasource, getDisplayName, getName, getObserver, getPosition, removeAliasName, setAliasNames, setConstellation, setDatasource, setName, setObserver, setPosition |
| Methods inherited from class org.jscience.ml.om.SchemaElement |
|---|
getID, setID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jscience.ml.om.ISchemaElement |
|---|
getID |
| Constructor Detail |
|---|
protected SolarSystemTarget(org.w3c.dom.Node targetElement,
IObserver[] observers)
throws SchemaException
observers - Array of IObserver that might be linked from this observation,
can be NULL if datasource element is settargetElement - The origin XML DOM SchemaException - if given targetElement was null
protected SolarSystemTarget(java.lang.String name,
java.lang.String datasource)
name - The name of the astronomical objectdatasource - The datasource of the astronomical object
protected SolarSystemTarget(java.lang.String name,
IObserver observer)
name - The name of the astronomical objectobserver - The observer who is the originator of the target| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.ObjectObjectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The Object to compare this SolarSystemTarget with.
true if the given Object is an instance of ITarget,
both XSI types are equal and its name is equal to this SolarSystemTarget name.Objectpublic abstract java.lang.String getXSIType()
public abstract org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element element)
addToXmlElement in interface ITargetaddToXmlElement in class Targetparent - The parent element for this Target
null if parent was null.Element
protected org.w3c.dom.Element createXmlSolarSystemTargetElement(org.w3c.dom.Element element,
java.lang.String xsiType)
element - The element under which the the target link is createdxsiType - The XSI:Type identification of the child class
null if element was null.Element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||