org.jscience.ml.om
Class Observations

java.lang.Object
  extended by org.jscience.ml.om.Observations

public class Observations
extends java.lang.Object

The Observations element is the root element of a schema element. All other schema elements are grouped below Observations.
The object itself contains no astronomical data but provides XML namespaces, and schema element containers. A schema element container groups multiple schema elements of one and the same type.
E.g.


Foo
More observer stuff goes here


Foo
More observer stuff goes here


In this example is the container element of multiple elements.
Also the Observations object contains the serializeToSchema() method, that will create a schema valid XML file.

Since:
1.0

Field Summary
static java.lang.String XML_EYEPIECE_CONTAINER
           
static java.lang.String XML_NS
           
static java.lang.String XML_NS_KEY
           
static java.lang.String XML_OBSERVATION_CONTAINER
           
static java.lang.String XML_OBSERVER_CONTAINER
           
static java.lang.String XML_SCHEMA_LOCATION
           
static java.lang.String XML_SCHEMA_LOCATION_KEY
           
static java.lang.String XML_SCHEMA_VERSION
           
static java.lang.String XML_SCHEMA_VERSION_KEY
           
static java.lang.String XML_SCOPE_CONTAINER
           
static java.lang.String XML_SESSION_CONTAINER
           
static java.lang.String XML_SI
           
static java.lang.String XML_SI_KEY
           
static java.lang.String XML_SITE_CONTAINER
           
static java.lang.String XML_TARGET_CONTAINER
           
 
Constructor Summary
Observations()
           
 
Method Summary
 void addObservation(IObservation observation)
           
 void addObservations(Observations observations)
           
 java.util.Collection getObservations()
           
 void serializeAsXml(java.io.File xmlFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_NS_KEY

public static final java.lang.String XML_NS_KEY
See Also:
Constant Field Values

XML_NS

public static final java.lang.String XML_NS
See Also:
Constant Field Values

XML_SI_KEY

public static final java.lang.String XML_SI_KEY
See Also:
Constant Field Values

XML_SI

public static final java.lang.String XML_SI
See Also:
Constant Field Values

XML_SCHEMA_LOCATION_KEY

public static final java.lang.String XML_SCHEMA_LOCATION_KEY
See Also:
Constant Field Values

XML_SCHEMA_LOCATION

public static final java.lang.String XML_SCHEMA_LOCATION
See Also:
Constant Field Values

XML_SCHEMA_VERSION_KEY

public static final java.lang.String XML_SCHEMA_VERSION_KEY
See Also:
Constant Field Values

XML_SCHEMA_VERSION

public static final java.lang.String XML_SCHEMA_VERSION
See Also:
Constant Field Values

XML_OBSERVATION_CONTAINER

public static final java.lang.String XML_OBSERVATION_CONTAINER
See Also:
Constant Field Values

XML_SESSION_CONTAINER

public static final java.lang.String XML_SESSION_CONTAINER
See Also:
Constant Field Values

XML_TARGET_CONTAINER

public static final java.lang.String XML_TARGET_CONTAINER
See Also:
Constant Field Values

XML_OBSERVER_CONTAINER

public static final java.lang.String XML_OBSERVER_CONTAINER
See Also:
Constant Field Values

XML_SITE_CONTAINER

public static final java.lang.String XML_SITE_CONTAINER
See Also:
Constant Field Values

XML_SCOPE_CONTAINER

public static final java.lang.String XML_SCOPE_CONTAINER
See Also:
Constant Field Values

XML_EYEPIECE_CONTAINER

public static final java.lang.String XML_EYEPIECE_CONTAINER
See Also:
Constant Field Values
Constructor Detail

Observations

public Observations()
Method Detail

getObservations

public java.util.Collection getObservations()

addObservations

public void addObservations(Observations observations)
                     throws SchemaException
Throws:
SchemaException

addObservation

public void addObservation(IObservation observation)
                    throws SchemaException
Throws:
SchemaException

serializeAsXml

public void serializeAsXml(java.io.File xmlFile)
                    throws SchemaException
Throws:
SchemaException