org.deegree.services.sos.getobservation
Class EventTime100XMLExporter

java.lang.Object
  extended by org.deegree.commons.xml.XMLAdapter
      extended by org.deegree.services.sos.getobservation.EventTime100XMLExporter

public class EventTime100XMLExporter
extends XMLAdapter

The EventTime100XMLExporter class TODO

Version:
$Revision: 25747 $, $Date: 2010-08-09 13:32:25 +0200 (Mon, 09 Aug 2010) $
Author:
Andrei Ionita, last edited by: $Author: mschneider $

Field Summary
 
Fields inherited from class org.deegree.commons.xml.XMLAdapter
DEFAULT_URL, nsContext, rootElement, XLN_NS
 
Constructor Summary
EventTime100XMLExporter(org.apache.axiom.om.OMElement rootElement, String systemId)
          Create a new EventTime adapter for SOS spec 1.0.0.
 
Method Summary
static void exportIndeterminateTime(XMLStreamWriter writer, IndeterminateTime time)
          Export indeterminate time as gml:TimeInstant/gml:timePosition.
static void exportOMSamplingTime(XMLStreamWriter writer, SamplingTime time)
          Export SamplingTime as O&M samplingTime with gml:TimeInstant or gml:TimePeriod.
static void exportSamplingTime(XMLStreamWriter writer, SamplingTime time)
          Export SamplingTime as gml:TimeInstant or gml:TimePeriod.
static void exportTimeInstant(XMLStreamWriter writer, TimeInstant timeInstant)
          Export gml:TimeInstant.
static void exportTimePeriod(XMLStreamWriter writer, TimePeriod timePeriod)
          Export gml:TimePeriod.
 
Methods inherited from class org.deegree.commons.xml.XMLAdapter
evaluateXPath, getElement, getElements, getNamespaceContext, getNode, getNodeAsBigInt, getNodeAsBoolean, getNodeAsDouble, getNodeAsFloat, getNodeAsInt, getNodeAsQName, getNodeAsString, getNodeAsURL, getNodeAsVersion, getNodes, getNodesAsQNames, getNodesAsStrings, getRequiredElement, getRequiredElements, getRequiredNode, getRequiredNodeAsBoolean, getRequiredNodeAsDouble, getRequiredNodeAsFloat, getRequiredNodeAsInteger, getRequiredNodeAsQName, getRequiredNodeAsString, getRequiredNodeAsURL, getRequiredNodeAsVersion, getRequiredNodes, getRootElement, getSchemas, getSystemId, hasSchemas, load, load, load, load, load, load, load, maybeWriteElement, maybeWriteElementNS, parseBoolean, parseDouble, parseFloat, parseInt, parseQName, parseSimpleLink, parseURL, resolve, setRootElement, setSystemId, toString, writeElement, writeElement, writeElement, writeElement, writeElement, writeOptionalAttribute, writeOptionalElement, writeOptionalNSAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventTime100XMLExporter

public EventTime100XMLExporter(org.apache.axiom.om.OMElement rootElement,
                               String systemId)
Create a new EventTime adapter for SOS spec 1.0.0.

Parameters:
rootElement - the EventTime element
systemId - to resolve all relative files from.
Method Detail

exportIndeterminateTime

public static void exportIndeterminateTime(XMLStreamWriter writer,
                                           IndeterminateTime time)
                                    throws XMLStreamException
Export indeterminate time as gml:TimeInstant/gml:timePosition.

Parameters:
writer -
time -
Throws:
XMLStreamException

exportOMSamplingTime

public static void exportOMSamplingTime(XMLStreamWriter writer,
                                        SamplingTime time)
                                 throws XMLStreamException
Export SamplingTime as O&M samplingTime with gml:TimeInstant or gml:TimePeriod.

Parameters:
writer -
time -
Throws:
XMLStreamException

exportSamplingTime

public static void exportSamplingTime(XMLStreamWriter writer,
                                      SamplingTime time)
                               throws XMLStreamException
Export SamplingTime as gml:TimeInstant or gml:TimePeriod.

Parameters:
writer -
time -
Throws:
XMLStreamException

exportTimeInstant

public static void exportTimeInstant(XMLStreamWriter writer,
                                     TimeInstant timeInstant)
                              throws XMLStreamException
Export gml:TimeInstant.

Parameters:
writer -
timeInstant -
Throws:
XMLStreamException

exportTimePeriod

public static void exportTimePeriod(XMLStreamWriter writer,
                                    TimePeriod timePeriod)
                             throws XMLStreamException
Export gml:TimePeriod.

Parameters:
writer -
timePeriod -
Throws:
XMLStreamException


Copyright © 2011. All Rights Reserved.