org.jscience.ml.om.extension.solarsystem
Class SolarSystemTargetPlanet
java.lang.Object
org.jscience.ml.om.SchemaElement
org.jscience.ml.om.Target
org.jscience.ml.om.extension.solarsystem.SolarSystemTarget
org.jscience.ml.om.extension.solarsystem.SolarSystemTargetPlanet
- All Implemented Interfaces:
- IExtendableSchemaElement, ISchemaElement, ITarget
public class SolarSystemTargetPlanet
- extends SolarSystemTarget
SolarSystemTargetPlanet extends the
org.jscience.ml.om.extension.solarsystem.SolarSystemTarget class.
Its specialised for planets within out solar system.
This class exists more due to extension reasons as this class does not
add new functions to org.jscience.ml.om.Target
- Since:
- 1.3
|
Constructor Summary |
SolarSystemTargetPlanet(org.w3c.dom.Node targetElement,
IObserver[] observers)
Constructs a new instance of a SolarSystemTargetPlanet from a given DOM
target Element. |
SolarSystemTargetPlanet(java.lang.String name,
IObserver observer)
Constructs a new instance of a SolarSystemTargetPlanet. |
SolarSystemTargetPlanet(java.lang.String name,
java.lang.String datasource)
Constructs a new instance of a SolarSystemTargetPlanet. |
|
Method Summary |
org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element element)
Adds this Target to a given parent XML DOM Element. |
java.lang.String |
getXSIType()
Returns the XML schema instance type of the implementation. |
| 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 java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SolarSystemTargetPlanet
public SolarSystemTargetPlanet(org.w3c.dom.Node targetElement,
IObserver[] observers)
throws SchemaException
- Constructs a new instance of a SolarSystemTargetPlanet from a given DOM
target Element.
Normally this constructor is called by a subclass which itself is
called by org.jscience.ml.om.util.SchemaLoader.
Please mind that Target has to have a element, or a
element. If a element is set, a array with Observers
must be passed to check, whether the link is valid.
- Parameters:
observers - Array of IObserver that might be linked from this observation,
can be NULL if datasource element is settargetElement - The origin XML DOM Element
- Throws:
SchemaException - if given targetElement was null
SolarSystemTargetPlanet
public SolarSystemTargetPlanet(java.lang.String name,
IObserver observer)
throws SchemaException
- Constructs a new instance of a SolarSystemTargetPlanet.
- Parameters:
name - String with the name of the targetobserver - The observer who created this Element
- Throws:
SchemaException - if a parameter was null
SolarSystemTargetPlanet
public SolarSystemTargetPlanet(java.lang.String name,
java.lang.String datasource)
throws SchemaException
- Constructs a new instance of a SolarSystemTargetPlanet.
- Parameters:
name - String with the name of the targetdatasource - The origin of the Element
- Throws:
SchemaException - if a parameter was null
getXSIType
public java.lang.String getXSIType()
- Returns the XML schema instance type of the implementation.
Example:
- Specified by:
getXSIType in interface IExtendableSchemaElement- Specified by:
getXSIType in class SolarSystemTarget
- Returns:
- The xsi:type value of this implementation
addToXmlElement
public org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element element)
- Adds this Target to a given parent XML DOM Element.
The Target element will be set as a child element of
the passed element.
- Specified by:
addToXmlElement in interface ITarget- Specified by:
addToXmlElement in class SolarSystemTarget
- Parameters:
parent - The parent element for this Target
- Returns:
- Returns the element given as parameter with this
Target as child element.
Might return null if parent was null. - See Also:
Element