public class WmlTVPEncoderv20 extends AbstractWmlEncoderv20
Modifier and Type | Field and Description |
---|---|
private static Set<String> |
CONFORMANCE_CLASSES |
private static Set<EncoderKey> |
ENCODER_KEYS |
private static org.slf4j.Logger |
LOGGER |
private static Map<String,Map<String,Set<String>>> |
SUPPORTED_RESPONSE_FORMATS |
private static Map<ServiceConstants.SupportedTypeKey,Set<String>> |
SUPPORTED_TYPES |
DEFAULT_ENCODER_KEYS
Constructor and Description |
---|
WmlTVPEncoderv20() |
Modifier and Type | Method and Description |
---|---|
protected void |
addObservationType(net.opengis.om.x20.OMObservationType xbObservation,
String observationType)
Method to add the observation type to the om:Observation.
|
private void |
addValuesToMeasurementTVP(net.opengis.waterml.x20.MeasureTVPType measurementTVP,
String time,
String value)
Add a time an value to MeasureTVPType
|
private static Set<EncoderKey> |
createEncoderKeys() |
private org.apache.xmlbeans.XmlObject |
createMeasurementTimeseries(AbstractObservationValue<?> observationValue) |
private org.apache.xmlbeans.XmlObject |
createMeasurementTimeseries(OmObservation sosObservation)
Create a XML MeasurementTimeseries object from SOS observation for
om:result
|
protected org.apache.xmlbeans.XmlObject |
createResult(OmObservation sosObservation)
Method to create the om:result element content
|
org.apache.xmlbeans.XmlObject |
encode(Object element,
Map<SosConstants.HelperValues,String> additionalValues)
Encodes the specified object with the specified SosConstants.HelperValues
.
|
void |
encode(Object objectToEncode,
OutputStream outputStream,
EncodingValues encodingValues) |
protected org.apache.xmlbeans.XmlObject |
encodeResult(ObservationValue<?> observationValue) |
Set<String> |
getConformanceClasses() |
Set<EncoderKey> |
getEncoderKeyType() |
Set<SchemaLocation> |
getSchemaLocations() |
Set<String> |
getSupportedResponseFormats(String service,
String version)
Get the supported response formats for this
ObservationEncoder and the specified service and version.
|
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
|
boolean |
supportsResultStreamingForMergedValues() |
addNamespacePrefixToMap, convertEncodedProcedure, createMonitoringPoint, createObservationProcess, createWmlGetObservationResponse, getContentType, getDefaultEncoderKeys, getDefaultFeatureEncodingNamespace, getDefaultProcedureEncodingNamspace, getSupportedProcedureDescriptionFormats, getTimeString, isObservationAndMeasurmentV20Type, shouldObservationsWithSameXBeMerged
createNamedValue, createOmObservation, encode, forceStreaming
encode
private static final org.slf4j.Logger LOGGER
private static final Set<EncoderKey> ENCODER_KEYS
private static final Map<ServiceConstants.SupportedTypeKey,Set<String>> SUPPORTED_TYPES
private static Set<EncoderKey> createEncoderKeys()
public Set<EncoderKey> getEncoderKeyType()
EncoderKey
)public Map<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
Encoder
getSupportedTypes
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
getSupportedTypes
in class AbstractXmlEncoder<Object>
public Set<String> getConformanceClasses()
getConformanceClasses
in interface ConformanceClass
getConformanceClasses
in class AbstractXmlEncoder<Object>
public Set<String> getSupportedResponseFormats(String service, String version)
ObservationEncoder
service
- the serviceversion
- the versionpublic Set<SchemaLocation> getSchemaLocations()
getSchemaLocations
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
getSchemaLocations
in class AbstractXmlEncoder<Object>
public boolean supportsResultStreamingForMergedValues()
public org.apache.xmlbeans.XmlObject encode(Object element, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport, UnsupportedEncoderInputException
Encoder
encode
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
encode
in class AbstractWmlEncoderv20
element
- the object to encodeadditionalValues
- the helper valuesOwsExceptionReport
- if an error occursUnsupportedEncoderInputException
- if the supplied object (or any of it's contents) is not
supported by this encoderpublic void encode(Object objectToEncode, OutputStream outputStream, EncodingValues encodingValues) throws OwsExceptionReport
encode
in interface StreamingEncoder<org.apache.xmlbeans.XmlObject,Object>
encode
in class AbstractOmEncoderv20
OwsExceptionReport
protected org.apache.xmlbeans.XmlObject createResult(OmObservation sosObservation) throws OwsExceptionReport
AbstractOmEncoderv20
createResult
in class AbstractOmEncoderv20
sosObservation
- SosObservation to be encodedOwsExceptionReport
- if an error occursprotected org.apache.xmlbeans.XmlObject encodeResult(ObservationValue<?> observationValue) throws OwsExceptionReport
encodeResult
in class AbstractOmEncoderv20
OwsExceptionReport
protected void addObservationType(net.opengis.om.x20.OMObservationType xbObservation, String observationType)
AbstractOmEncoderv20
addObservationType
in class AbstractOmEncoderv20
xbObservation
- XmlBeans object of observationobservationType
- Observation typeprivate org.apache.xmlbeans.XmlObject createMeasurementTimeseries(OmObservation sosObservation) throws OwsExceptionReport
sosObservation
- SOS observationOwsExceptionReport
- If an error occursprivate void addValuesToMeasurementTVP(net.opengis.waterml.x20.MeasureTVPType measurementTVP, String time, String value)
measurementTVP
- MeasureTVPType XML objecttime
- Time a stringvalue
- value as stringprivate org.apache.xmlbeans.XmlObject createMeasurementTimeseries(AbstractObservationValue<?> observationValue) throws OwsExceptionReport
OwsExceptionReport
Copyright © 2012-2015 52north.org. All Rights Reserved.