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 org.deegree.commons.xml.XMLAdapter

The EventTime100XMLExporter class TODO

Version:
$Revision: 25747 $, $Date: 2010-08-09 13:32:25 +0200 (Mo, 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, java.lang.String systemId)
          Create a new EventTime adapter for SOS spec 1.0.0.
 
Method Summary
static void exportIndeterminateTime(javax.xml.stream.XMLStreamWriter writer, org.deegree.protocol.sos.time.IndeterminateTime time)
          Export indeterminate time as gml:TimeInstant/gml:timePosition.
static void exportOMSamplingTime(javax.xml.stream.XMLStreamWriter writer, org.deegree.protocol.sos.time.SamplingTime time)
          Export SamplingTime as O&M samplingTime with gml:TimeInstant or gml:TimePeriod.
static void exportSamplingTime(javax.xml.stream.XMLStreamWriter writer, org.deegree.protocol.sos.time.SamplingTime time)
          Export SamplingTime as gml:TimeInstant or gml:TimePeriod.
static void exportTimeInstant(javax.xml.stream.XMLStreamWriter writer, org.deegree.protocol.sos.time.TimeInstant timeInstant)
          Export gml:TimeInstant.
static void exportTimePeriod(javax.xml.stream.XMLStreamWriter writer, org.deegree.protocol.sos.time.TimePeriod timePeriod)
          Export gml:TimePeriod.
 
Methods inherited from class org.deegree.commons.xml.XMLAdapter
evaluateXPath, getElement, getElements, getNamespaceContext, getNode, 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, 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,
                               java.lang.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(javax.xml.stream.XMLStreamWriter writer,
                                           org.deegree.protocol.sos.time.IndeterminateTime time)
                                    throws javax.xml.stream.XMLStreamException
Export indeterminate time as gml:TimeInstant/gml:timePosition.

Parameters:
writer -
time -
Throws:
javax.xml.stream.XMLStreamException

exportOMSamplingTime

public static void exportOMSamplingTime(javax.xml.stream.XMLStreamWriter writer,
                                        org.deegree.protocol.sos.time.SamplingTime time)
                                 throws javax.xml.stream.XMLStreamException
Export SamplingTime as O&M samplingTime with gml:TimeInstant or gml:TimePeriod.

Parameters:
writer -
time -
Throws:
javax.xml.stream.XMLStreamException

exportSamplingTime

public static void exportSamplingTime(javax.xml.stream.XMLStreamWriter writer,
                                      org.deegree.protocol.sos.time.SamplingTime time)
                               throws javax.xml.stream.XMLStreamException
Export SamplingTime as gml:TimeInstant or gml:TimePeriod.

Parameters:
writer -
time -
Throws:
javax.xml.stream.XMLStreamException

exportTimeInstant

public static void exportTimeInstant(javax.xml.stream.XMLStreamWriter writer,
                                     org.deegree.protocol.sos.time.TimeInstant timeInstant)
                              throws javax.xml.stream.XMLStreamException
Export gml:TimeInstant.

Parameters:
writer -
timeInstant -
Throws:
javax.xml.stream.XMLStreamException

exportTimePeriod

public static void exportTimePeriod(javax.xml.stream.XMLStreamWriter writer,
                                    org.deegree.protocol.sos.time.TimePeriod timePeriod)
                             throws javax.xml.stream.XMLStreamException
Export gml:TimePeriod.

Parameters:
writer -
timePeriod -
Throws:
javax.xml.stream.XMLStreamException


Copyright © 2011. All Rights Reserved.