public class AqdEncoder extends AbstractXmlEncoder<Object> implements ObservationEncoder<org.apache.xmlbeans.XmlObject,Object>
Modifier and Type | Field and Description |
---|---|
private static Set<EncoderKey> |
ENCODER_KEY_TYPES |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
AqdEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
|
org.apache.xmlbeans.XmlObject |
encode(Object element,
Map<SosConstants.HelperValues,String> additionalValues)
Encodes the specified object with the specified SosConstants.HelperValues
.
|
private org.apache.xmlbeans.XmlObject |
encodeEReportingHeader(EReportingHeader element) |
private org.apache.xmlbeans.XmlObject |
encodeGetObservationResponse(GetObservationResponse response) |
private org.apache.xmlbeans.XmlObject |
encodeOmObservation(OmObservation element) |
private AqdHelper |
getAqdHelper() |
Set<EncoderKey> |
getEncoderKeyType() |
protected EReportingHeader |
getEReportingHeader(ReportObligationType type) |
private FeatureCollection |
getFeatureCollection(GetObservationResponse response) |
private ReportObligationType |
getReportObligationType(GetObservationResponse response) |
Set<SchemaLocation> |
getSchemaLocations() |
Set<String> |
getSupportedResponseFormats(String service,
String version)
Get the supported response formats for this
ObservationEncoder and the specified service and version.
|
boolean |
isObservationAndMeasurmentV20Type()
Indicator whether the ObservationEncoder of type or subtype
Observation&Measurement 2.0
|
boolean |
shouldObservationsWithSameXBeMerged()
Indicator whether the single observations with the same procedure,
observableProperty and featureOfInterest should be merged to one
observation.
|
boolean |
supportsResultStreamingForMergedValues() |
encode, getConformanceClasses, getContentType, getSupportedTypes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encode, getContentType, getSupportedTypes
getConformanceClasses
private static final org.slf4j.Logger LOGGER
private static final Set<EncoderKey> ENCODER_KEY_TYPES
public Set<EncoderKey> getEncoderKeyType()
getEncoderKeyType
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
EncoderKey
)public Set<SchemaLocation> getSchemaLocations()
getSchemaLocations
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
getSchemaLocations
in class AbstractXmlEncoder<Object>
public void addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
Encoder
addNamespacePrefixToMap
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
addNamespacePrefixToMap
in class AbstractXmlEncoder<Object>
public boolean isObservationAndMeasurmentV20Type()
ObservationEncoder
isObservationAndMeasurmentV20Type
in interface ObservationEncoder<org.apache.xmlbeans.XmlObject,Object>
public boolean shouldObservationsWithSameXBeMerged()
ObservationEncoder
shouldObservationsWithSameXBeMerged
in interface ObservationEncoder<org.apache.xmlbeans.XmlObject,Object>
public boolean supportsResultStreamingForMergedValues()
supportsResultStreamingForMergedValues
in interface ObservationEncoder<org.apache.xmlbeans.XmlObject,Object>
public Set<String> getSupportedResponseFormats(String service, String version)
ObservationEncoder
getSupportedResponseFormats
in interface ObservationEncoder<org.apache.xmlbeans.XmlObject,Object>
service
- the serviceversion
- the versionpublic 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>
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 encoderprivate org.apache.xmlbeans.XmlObject encodeGetObservationResponse(GetObservationResponse response) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject encodeOmObservation(OmObservation element) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject encodeEReportingHeader(EReportingHeader element) throws OwsExceptionReport
OwsExceptionReport
private ReportObligationType getReportObligationType(GetObservationResponse response) throws InvalidParameterValueException
InvalidParameterValueException
private FeatureCollection getFeatureCollection(GetObservationResponse response) throws CodedException
CodedException
private AqdHelper getAqdHelper()
protected EReportingHeader getEReportingHeader(ReportObligationType type) throws CodedException
CodedException
Copyright © 2012-2015 52north.org. All Rights Reserved.