Jeospace API

org.jeospace.simulation
Class Unmarshal

java.lang.Object
  extended byorg.jeospace.simulation.Unmarshal

public class Unmarshal
extends java.lang.Object

The unmarshaler for Atlas objects, Unmarshal converts xml descriptions into Java objects.

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton

Constructor Summary
protected Unmarshal()
          Protected Constructor
 
Method Summary
 Attitude getAttitude(org.w3c.dom.Element attitude_element)
          Return the Attitude object that cooresponds to the argument
 Cartesian getCartesian(org.w3c.dom.Element cartesian_element)
          Return the Cartesian object that cooresponds to the argument
 java.awt.Color getColor(org.w3c.dom.Element color_element)
          Return the Color object that cooresponds to the argument
 DecimalAngle getDecimalAngle(org.w3c.dom.Element angle_element)
          Return the DecimalAngle object that cooresponds to the argument
static boolean getDisplayStatus(org.w3c.dom.Element e)
          Return the state of the display status attribute of the argument element
 double getDoubleValue(org.w3c.dom.Element element)
          Return the double value of the argument element
 Ellipsoid getEllipsoid(org.w3c.dom.Element ellipsoid_element)
          Return the Ellipsoid object that cooresponds to the argument
 Ellipsoidal getEllipsoidal(org.w3c.dom.Element ellipsoidal_element)
          Return the Ellipsoidal object that cooresponds to the argument
 Epoch getEpoch(org.w3c.dom.Element epoch_element)
          Return the Epoch that cooresponds to the argument
 Identification getIdentification(org.w3c.dom.Element ident_element)
          Return the Identification object that cooresponds to the argument
static Unmarshal getInstance()
          Return an Unmarshal instance
 Latitude getLatitude(org.w3c.dom.Element lat_element)
          Return the Latitude object that cooresponds to the argument
 Length getLength(org.w3c.dom.Element length_element)
          Return the Length object that cooresponds to the argument
 Longitude getLongitude(org.w3c.dom.Element lng_element)
          Return the Longitude object that cooresponds to the argument
 Mass getMass(org.w3c.dom.Element mass_element)
          Return the Mass object that cooresponds to the argument
 OrbitalElements getOrbitalElements(org.w3c.dom.Element oe_element, World parent_world)
          Return the OrbitalElements that coorespond to the argument
 Attitude getOrientationCoordinate(org.w3c.dom.Element orientation_element)
          Return the Attitude coordinate that cooresponds to the argument
 Polar getPositionCoordinate(org.w3c.dom.Element position_element)
          Return the Polar coordinate that cooresponds to the argument
 ReferenceFrame getReferenceFrame(org.w3c.dom.Element rf_element)
          Return the ReferenceFrame object that cooresponds to the argument
 Satellite getSatellite(org.w3c.dom.Element sat_element, World parent_world)
          Return the Satellite object that cooresponds to the argument
 Spherical getSpherical(org.w3c.dom.Element spherical_element)
          Return the Spherical object that cooresponds to the argument
static boolean getState(java.lang.String attr, org.w3c.dom.Element e)
          Return the state of the specified attribute of the argument element
static java.net.URL getURL(org.w3c.dom.Element url_element, java.net.URL codeBase)
          Return the URL found in the argument element
static java.lang.String getUrlString(org.w3c.dom.Element u, java.net.URL codeBase)
          Return the url string found in the argument element
static java.lang.String[] getUrlStrings(org.w3c.dom.Element e)
          Return the array of url strings found in the argument element
 World getWorld(org.w3c.dom.Element world_element, World parent_world)
          Return the World object that cooresponds to the argument
static void setDisplayStatus(org.w3c.dom.Element e, boolean status)
          Set the state of the display status attribute of the argument element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Unmarshal

protected Unmarshal()
Protected Constructor

Method Detail

getInstance

public static Unmarshal getInstance()
Return an Unmarshal instance

Returns:
an Unmarshal instance

getPositionCoordinate

public Polar getPositionCoordinate(org.w3c.dom.Element position_element)
Return the Polar coordinate that cooresponds to the argument

Parameters:
position_element - An xml descriptor of a Polar coordinate
Returns:
the Polar coordinate that cooresponds to the argument

getOrientationCoordinate

public Attitude getOrientationCoordinate(org.w3c.dom.Element orientation_element)
Return the Attitude coordinate that cooresponds to the argument

Parameters:
orientation_element - An xml descriptor of an Attitude coordinate
Returns:
the Attitude coordinate that cooresponds to the argument

getOrbitalElements

public OrbitalElements getOrbitalElements(org.w3c.dom.Element oe_element,
                                          World parent_world)
Return the OrbitalElements that coorespond to the argument

Parameters:
oe_element - an xml descriptor of an OrbitalElements object
parent_world - The World that is the gravitational center for the object described by the orbital elements
Returns:
the OrbitalElements that coorespond to the argument

getUrlStrings

public static java.lang.String[] getUrlStrings(org.w3c.dom.Element e)
Return the array of url strings found in the argument element

Parameters:
e - The argument element
Returns:
the array of url strings

getUrlString

public static java.lang.String getUrlString(org.w3c.dom.Element u,
                                            java.net.URL codeBase)
Return the url string found in the argument element

Parameters:
u - the url element
codeBase - the codeBase (or context URL) for the application
Returns:
the validated url string

getURL

public static java.net.URL getURL(org.w3c.dom.Element url_element,
                                  java.net.URL codeBase)
Return the URL found in the argument element

Parameters:
url_element - The element containing the url string
codeBase - The codeBase (or context URL) for the application
Returns:
the valid URL or null if the url could not be constructed.

getEllipsoid

public Ellipsoid getEllipsoid(org.w3c.dom.Element ellipsoid_element)
Return the Ellipsoid object that cooresponds to the argument

Parameters:
ellipsoid_element - An xml descriptor of a Ellipsoid object
Returns:
the Ellipsoid object that cooresponds to the argument

getWorld

public World getWorld(org.w3c.dom.Element world_element,
                      World parent_world)
Return the World object that cooresponds to the argument

Parameters:
world_element - An xml descriptor of a World object
parent_world - The World that is the orbital parent descriptor
Returns:
the World object that cooresponds to the argument

getSatellite

public Satellite getSatellite(org.w3c.dom.Element sat_element,
                              World parent_world)
Return the Satellite object that cooresponds to the argument

Parameters:
sat_element - An xml descriptor of a Satellite object
parent_world - The World that is the orbital parent descriptor
Returns:
the Satellite object that cooresponds to the argument

getIdentification

public Identification getIdentification(org.w3c.dom.Element ident_element)
Return the Identification object that cooresponds to the argument

Parameters:
ident_element - An xml descriptor of the Identification object
Returns:
the Identification object

getReferenceFrame

public ReferenceFrame getReferenceFrame(org.w3c.dom.Element rf_element)
Return the ReferenceFrame object that cooresponds to the argument

Parameters:
rf_element - An xml descriptor of a ReferenceFrame object
Returns:
the ReferenceFrame object that cooresponds to the argument

getColor

public java.awt.Color getColor(org.w3c.dom.Element color_element)
Return the Color object that cooresponds to the argument

Parameters:
color_element - An xml descriptor of a Color object
Returns:
the Color object that cooresponds to the argument

getDisplayStatus

public static boolean getDisplayStatus(org.w3c.dom.Element e)
Return the state of the display status attribute of the argument element

Parameters:
e - The argument element
Returns:
true if the display status attribute of the element is set to true or does not exist, false otherwise

setDisplayStatus

public static void setDisplayStatus(org.w3c.dom.Element e,
                                    boolean status)
Set the state of the display status attribute of the argument element

Parameters:
e - The argument element
status - The attribute state

getState

public static boolean getState(java.lang.String attr,
                               org.w3c.dom.Element e)
Return the state of the specified attribute of the argument element

Parameters:
attr - The identifier of the attribute
e - The argument element
Returns:
true if the display status attribute of the element is set to true, false otherwise

getAttitude

public Attitude getAttitude(org.w3c.dom.Element attitude_element)
Return the Attitude object that cooresponds to the argument

Parameters:
attitude_element - An xml descriptor of a Attitude object
Returns:
the Attitude object that cooresponds to the argument

getCartesian

public Cartesian getCartesian(org.w3c.dom.Element cartesian_element)
Return the Cartesian object that cooresponds to the argument

Parameters:
cartesian_element - An xml descriptor of a Cartesian object
Returns:
the Cartesian object that cooresponds to the argument

getSpherical

public Spherical getSpherical(org.w3c.dom.Element spherical_element)
Return the Spherical object that cooresponds to the argument

Parameters:
spherical_element - An xml descriptor of a Spherical object
Returns:
the Spherical object that cooresponds to the argument

getEllipsoidal

public Ellipsoidal getEllipsoidal(org.w3c.dom.Element ellipsoidal_element)
Return the Ellipsoidal object that cooresponds to the argument

Parameters:
ellipsoidal_element - An xml descriptor of a Ellipsoidal object
Returns:
the Ellipsoidal object that cooresponds to the argument

getDecimalAngle

public DecimalAngle getDecimalAngle(org.w3c.dom.Element angle_element)
Return the DecimalAngle object that cooresponds to the argument

Parameters:
angle_element - An xml descriptor of a DecimalAngle object
Returns:
the DecimalAngle object that cooresponds to the argument

getLongitude

public Longitude getLongitude(org.w3c.dom.Element lng_element)
Return the Longitude object that cooresponds to the argument

Parameters:
lng_element - An xml descriptor of a Longitude object
Returns:
the Longitude object that cooresponds to the argument

getLatitude

public Latitude getLatitude(org.w3c.dom.Element lat_element)
Return the Latitude object that cooresponds to the argument

Parameters:
lat_element - An xml descriptor of a Latitude object
Returns:
the Latitude object that cooresponds to the argument

getLength

public Length getLength(org.w3c.dom.Element length_element)
Return the Length object that cooresponds to the argument

Parameters:
length_element - An xml descriptor of a Length object
Returns:
the Length object that cooresponds to the argument

getMass

public Mass getMass(org.w3c.dom.Element mass_element)
Return the Mass object that cooresponds to the argument

Parameters:
mass_element - An xml descriptor of a Mass object
Returns:
the Mass object that cooresponds to the argument

getEpoch

public Epoch getEpoch(org.w3c.dom.Element epoch_element)
Return the Epoch that cooresponds to the argument

Parameters:
epoch_element - An xml descriptor of an Epoch object
Returns:
the Epoch object that cooresponds to the argument

getDoubleValue

public double getDoubleValue(org.w3c.dom.Element element)
Return the double value of the argument element

Parameters:
element - The argument
Returns:
the double value

Jeospace API

Copyright © 2006 - jeospace.org