Package org.n52.svalbard.encode
Class TsmlTVPEncoderv10
- java.lang.Object
-
- org.n52.svalbard.encode.AbstractDelegatingEncoder<T,S>
-
- org.n52.svalbard.encode.AbstractXmlEncoder<org.apache.xmlbeans.XmlObject,Object>
-
- org.n52.svalbard.encode.AbstractOmEncoderv20
-
- org.n52.svalbard.encode.AbstractTsmlEncoderv10
-
- org.n52.svalbard.encode.TsmlTVPEncoderv10
-
- All Implemented Interfaces:
Component<EncoderKey>,Keyed<EncoderKey>,ConformanceClass,ConformanceClassEncoder<org.apache.xmlbeans.XmlObject,Object>,Encoder<org.apache.xmlbeans.XmlObject,Object>,ObservationEncoder<org.apache.xmlbeans.XmlObject,Object>,ProcedureEncoder<org.apache.xmlbeans.XmlObject,Object>,SchemaAwareEncoder<org.apache.xmlbeans.XmlObject,Object>,StreamingEncoder<org.apache.xmlbeans.XmlObject,Object>,WmlTmlHelper,ProcedureCoder
public class TsmlTVPEncoderv10 extends AbstractTsmlEncoderv10 implements WmlTmlHelper
Encoder class for TimeseriesML 1.0 TimeseriesValuePair (TVP)
-
-
Constructor Summary
Constructors Constructor Description TsmlTVPEncoderv10()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddObservationType(net.opengis.om.x20.OMObservationType xbObservation, String observationType)Method to add the observation type to the om:Observation.protected net.opengis.om.x20.OMObservationTypecreateOmObservationType()protected org.apache.xmlbeans.XmlObjectcreateResult(OmObservation sosObservation)Method to create the om:result element contentvoidencode(Object objectToEncode, OutputStream outputStream, EncodingContext ctx)org.apache.xmlbeans.XmlObjectencode(Object element, EncodingContext additionalValues)protected org.apache.xmlbeans.XmlObjectencodeResult(ObservationValue<?> observationValue)Set<String>getConformanceClasses(String service, String version)Set<EncoderKey>getKeys()Set<SchemaLocation>getSchemaLocations()Map<String,Set<SupportedType>>getSupportedResponseFormatObservationTypes()Set<String>getSupportedResponseFormats(String service, String version)Set<SupportedType>getSupportedTypes()booleansupportsResultStreamingForMergedValues()-
Methods inherited from class org.n52.svalbard.encode.AbstractTsmlEncoderv10
addAddtitionalInformation, addNamespacePrefixToMap, convertEncodedProcedure, createMonitoringPoint, createObservationProcess, createWmlGetObservationResponse, getContentType, getDefaultEncoderKeys, getDefaultFeatureEncodingNamespace, getDefaultProcedureEncodingNamspace, getSupportedProcedureDescriptionFormats, getTimeString, isObservationAndMeasurmentV20Type, shouldObservationsWithSameXBeMerged
-
Methods inherited from class org.n52.svalbard.encode.AbstractOmEncoderv20
createNamedValue, encodeGML, encodeGML, encodeGWML, encodeGWML, encodeOmObservation, encodeSweCommon, encodeSweCommon, encodeXLINK, encodeXLINK, setObservationType
-
Methods inherited from class org.n52.svalbard.encode.AbstractXmlEncoder
encode, encodeObjectToXml, encodeObjectToXml, encodeObjectToXmlDocument, encodeObjectToXmlDocument, encodeObjectToXmlPropertyType, encodeObjectToXmlPropertyType, encodeObjectToXmlText, encodeObjectToXmlText, getAndCheck, getDocumentEncoder, getDocumentEncoder, getDocumentEncoderKey, getDocumentEncoderKey, getEncoder, getEncoder, getEncoderKey, getEncoderKey, getPropertyTypeEncoder, getPropertyTypeEncoder, getPropertyTypeEncoderKey, getPropertyTypeEncoderKey, getXmlOptions, setXmlOptions, substitute
-
Methods inherited from class org.n52.svalbard.encode.AbstractDelegatingEncoder
getEncoder, getEncoderRepository, setEncoderRepository
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.svalbard.encode.ObservationEncoder
getProcedureEncodingNamspace, getSupportedResponseFormats
-
Methods inherited from interface org.n52.svalbard.encode.StreamingEncoder
encode
-
Methods inherited from interface org.n52.svalbard.encode.WmlTmlHelper
checkFields, checkSweDataArray
-
-
-
-
Method Detail
-
getKeys
public Set<EncoderKey> getKeys()
- Specified by:
getKeysin interfaceKeyed<EncoderKey>
-
getSupportedTypes
public Set<SupportedType> getSupportedTypes()
- Specified by:
getSupportedTypesin interfaceEncoder<org.apache.xmlbeans.XmlObject,Object>
-
getSupportedResponseFormatObservationTypes
public Map<String,Set<SupportedType>> getSupportedResponseFormatObservationTypes()
- Specified by:
getSupportedResponseFormatObservationTypesin interfaceObservationEncoder<org.apache.xmlbeans.XmlObject,Object>
-
getConformanceClasses
public Set<String> getConformanceClasses(String service, String version)
- Specified by:
getConformanceClassesin interfaceConformanceClass
-
getSupportedResponseFormats
public Set<String> getSupportedResponseFormats(String service, String version)
- Specified by:
getSupportedResponseFormatsin interfaceObservationEncoder<org.apache.xmlbeans.XmlObject,Object>
-
getSchemaLocations
public Set<SchemaLocation> getSchemaLocations()
- Specified by:
getSchemaLocationsin interfaceSchemaAwareEncoder<org.apache.xmlbeans.XmlObject,Object>
-
supportsResultStreamingForMergedValues
public boolean supportsResultStreamingForMergedValues()
- Specified by:
supportsResultStreamingForMergedValuesin interfaceObservationEncoder<org.apache.xmlbeans.XmlObject,Object>
-
encode
public org.apache.xmlbeans.XmlObject encode(Object element, EncodingContext additionalValues) throws EncodingException, UnsupportedEncoderInputException
- Specified by:
encodein interfaceEncoder<org.apache.xmlbeans.XmlObject,Object>- Overrides:
encodein classAbstractTsmlEncoderv10- Throws:
EncodingExceptionUnsupportedEncoderInputException
-
encode
public void encode(Object objectToEncode, OutputStream outputStream, EncodingContext ctx) throws EncodingException
- Specified by:
encodein interfaceStreamingEncoder<org.apache.xmlbeans.XmlObject,Object>- Overrides:
encodein classAbstractOmEncoderv20- Throws:
EncodingException
-
createResult
protected org.apache.xmlbeans.XmlObject createResult(OmObservation sosObservation) throws EncodingException
Description copied from class:AbstractOmEncoderv20Method to create the om:result element content- Specified by:
createResultin classAbstractOmEncoderv20- Parameters:
sosObservation- SosObservation to be encoded- Returns:
- XML encoded result object, e.g a gml:MeasureType
- Throws:
EncodingException- if an error occurs
-
encodeResult
protected org.apache.xmlbeans.XmlObject encodeResult(ObservationValue<?> observationValue) throws EncodingException
- Specified by:
encodeResultin classAbstractOmEncoderv20- Throws:
EncodingException
-
addObservationType
protected void addObservationType(net.opengis.om.x20.OMObservationType xbObservation, String observationType)Description copied from class:AbstractOmEncoderv20Method to add the observation type to the om:Observation. Subclasses should have mappings to set the correct type, e.g. O&M .../Measurement == .../MeasurementTimeseriesTVPObservation in WaterML 2.0- Specified by:
addObservationTypein classAbstractOmEncoderv20- Parameters:
xbObservation- XmlBeans object of observationobservationType- Observation type
-
createOmObservationType
protected net.opengis.om.x20.OMObservationType createOmObservationType()
- Specified by:
createOmObservationTypein classAbstractOmEncoderv20
-
-