public abstract class AbstractWmlEncoderv20 extends AbstractOmEncoderv20 implements ProcedureEncoder<org.apache.xmlbeans.XmlObject,Object>
Modifier and Type | Field and Description |
---|---|
protected static Set<EncoderKey> |
DEFAULT_ENCODER_KEYS |
private static Map<String,com.google.common.collect.ImmutableMap<String,Set<String>>> |
SUPPORTED_PROCEDURE_DESCRIPTION_FORMATS |
Constructor and Description |
---|
AbstractWmlEncoderv20() |
Modifier and Type | Method and Description |
---|---|
private void |
addAggregatingDuration(net.opengis.waterml.x20.ObservationProcessType observationProcess,
ObservationProcess procedure)
Adds AggregatingDuration value to WaterML 2.0 ObservationProcess XML
object
|
private void |
addComment(net.opengis.waterml.x20.ObservationProcessType observationProcess,
ObservationProcess procedure)
Adds Comment value to WaterML 2.0 ObservationProcess XML object
|
private void |
addInput(net.opengis.waterml.x20.ObservationProcessType observationProcess,
ObservationProcess procedure)
Adds Input value to WaterML 2.0 ObservationProcess XML object
|
void |
addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
|
private void |
addOriginatingProcess(net.opengis.waterml.x20.ObservationProcessType observationProcess,
ObservationProcess procedure)
Adds OriginatingProcess value to WaterML 2.0 ObservationProcess XML
object
|
private void |
addParameter(net.opengis.waterml.x20.MonitoringPointType monitoringPoint,
SamplingFeature sampFeat)
Adds parameter values to WaterML 2.0 XML MonitoringPoint object from
SosSamplingFeature
|
private void |
addParameter(net.opengis.waterml.x20.ObservationProcessType observationProcess,
ObservationProcess procedure)
Adds Parameter value to WaterML 2.0 ObservationProcess XML object
|
private void |
addProcessReference(net.opengis.waterml.x20.ObservationProcessType observationProcess,
ObservationProcess procedure)
Adds ProcessReference value to WaterML 2.0 ObservationProcess XML object
|
private void |
addProcessType(net.opengis.waterml.x20.ObservationProcessType observationProcess,
ObservationProcess procedure)
Adds processType value to WaterML 2.0 ObservationProcess XML object
|
private void |
addVerticalDatum(net.opengis.waterml.x20.ObservationProcessType observationProcess,
ObservationProcess procedure)
Adds VerticalDatum value to WaterML 2.0 ObservationProcess XML object
|
protected boolean |
convertEncodedProcedure()
Indicator whether the procedure is to be encoded
|
protected org.apache.xmlbeans.XmlObject |
createMonitoringPoint(AbstractFeature absFeature)
Creates a WaterML 2.0 MonitoringPoint XML object from SOS feature object
|
protected net.opengis.waterml.x20.ObservationProcessDocument |
createObservationProcess(ObservationProcess procedure,
Map<SosConstants.HelperValues,String> additionalValues)
Creates an WaterML 2.0 ObservationProcess XML object from SOS
ObservationProcess object
|
protected org.apache.xmlbeans.XmlObject |
createWmlGetObservationResponse(GetObservationResponse getObservationResonse)
Encodes a SOS GetObservationResponse to a single WaterML 2.0 observation
or to a WaterML 1.0 ObservationCollection
|
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 |
encodeAbstractFeature(AbstractFeature abstractFeature,
Map<SosConstants.HelperValues,String> additionalValues) |
private org.apache.xmlbeans.XmlObject |
encodeReferenceType(ReferenceType sosReferenceType)
Creates a XML ReferenceType object from SOS ReferenceType object
|
MediaType |
getContentType() |
protected static Set<EncoderKey> |
getDefaultEncoderKeys() |
String |
getDefaultFeatureEncodingNamespace()
Get the default encoding Namespace for FeatureOfInterest
|
protected String |
getDefaultProcedureEncodingNamspace()
Get the default encoding Namespace for Procedures
|
Set<String> |
getSupportedProcedureDescriptionFormats(String service,
String version)
Get the supported procedure description formats for this
ProcedureEncoder and the specified service and version.
|
private org.joda.time.DateTime |
getTime(Time time)
Get the time representation from ITime object
|
protected String |
getTimeString(Time time)
Parses the ITime object to a time representation as String
|
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.
|
addObservationType, createNamedValue, createOmObservation, createResult, encode, encode, encodeResult, forceStreaming
encode, getConformanceClasses, getSchemaLocations, getSupportedTypes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encode, getEncoderKeyType, getSchemaLocations, getSupportedTypes
getConformanceClasses
getSupportedResponseFormats, supportsResultStreamingForMergedValues
protected static final Set<EncoderKey> DEFAULT_ENCODER_KEYS
protected static Set<EncoderKey> getDefaultEncoderKeys()
protected boolean convertEncodedProcedure()
AbstractOmEncoderv20
convertEncodedProcedure
in class AbstractOmEncoderv20
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 Set<String> getSupportedProcedureDescriptionFormats(String service, String version)
ProcedureEncoder
getSupportedProcedureDescriptionFormats
in interface ProcedureEncoder<org.apache.xmlbeans.XmlObject,Object>
service
- the serviceversion
- the versionpublic MediaType getContentType()
getContentType
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
getContentType
in class AbstractXmlEncoder<Object>
public org.apache.xmlbeans.XmlObject encode(Object element, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
Encoder
encode
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
encode
in class AbstractOmEncoderv20
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 encodeAbstractFeature(AbstractFeature abstractFeature, Map<SosConstants.HelperValues,String> additionalValues) throws UnsupportedEncoderInputException, OwsExceptionReport
public String getDefaultFeatureEncodingNamespace()
AbstractOmEncoderv20
getDefaultFeatureEncodingNamespace
in class AbstractOmEncoderv20
protected String getDefaultProcedureEncodingNamspace()
AbstractOmEncoderv20
getDefaultProcedureEncodingNamspace
in class AbstractOmEncoderv20
public void addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
Encoder
addNamespacePrefixToMap
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
addNamespacePrefixToMap
in class AbstractOmEncoderv20
protected org.apache.xmlbeans.XmlObject createWmlGetObservationResponse(GetObservationResponse getObservationResonse) throws OwsExceptionReport
getObservationResonse
- SOS GetObservationResponseOwsExceptionReport
- If an error occursprotected org.apache.xmlbeans.XmlObject createMonitoringPoint(AbstractFeature absFeature) throws OwsExceptionReport
absFeature
- SOS featureOwsExceptionReport
- If an error occursprotected net.opengis.waterml.x20.ObservationProcessDocument createObservationProcess(ObservationProcess procedure, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
procedure
- SOS ObservationProcessadditionalValues
- Additional valuesOwsExceptionReport
- If an error occursprivate void addProcessType(net.opengis.waterml.x20.ObservationProcessType observationProcess, ObservationProcess procedure) throws OwsExceptionReport
observationProcess
- WaterML 2.0 ObservationProcess XML objectprocedure
- SOS ObservationProcessOwsExceptionReport
- If an error occursprivate void addOriginatingProcess(net.opengis.waterml.x20.ObservationProcessType observationProcess, ObservationProcess procedure) throws OwsExceptionReport
observationProcess
- WaterML 2.0 ObservationProcess XML objectprocedure
- SOS ObservationProcessOwsExceptionReport
- If an error occursprivate void addAggregatingDuration(net.opengis.waterml.x20.ObservationProcessType observationProcess, ObservationProcess procedure)
observationProcess
- WaterML 2.0 ObservationProcess XML objectprocedure
- SOS ObservationProcessprivate void addVerticalDatum(net.opengis.waterml.x20.ObservationProcessType observationProcess, ObservationProcess procedure) throws OwsExceptionReport
observationProcess
- WaterML 2.0 ObservationProcess XML objectprocedure
- SOS ObservationProcessOwsExceptionReport
- If an error occursprivate void addComment(net.opengis.waterml.x20.ObservationProcessType observationProcess, ObservationProcess procedure)
observationProcess
- WaterML 2.0 ObservationProcess XML objectprocedure
- SOS ObservationProcessprivate void addProcessReference(net.opengis.waterml.x20.ObservationProcessType observationProcess, ObservationProcess procedure) throws OwsExceptionReport
observationProcess
- WaterML 2.0 ObservationProcess XML objectprocedure
- SOS ObservationProcessOwsExceptionReport
- If an error occursprivate void addInput(net.opengis.waterml.x20.ObservationProcessType observationProcess, ObservationProcess procedure) throws OwsExceptionReport
observationProcess
- WaterML 2.0 ObservationProcess XML objectprocedure
- SOS ObservationProcessOwsExceptionReport
- If an error occursprivate void addParameter(net.opengis.waterml.x20.ObservationProcessType observationProcess, ObservationProcess procedure) throws OwsExceptionReport
observationProcess
- WaterML 2.0 ObservationProcess XML objectprocedure
- SOS ObservationProcessOwsExceptionReport
- If an error occursprivate org.apache.xmlbeans.XmlObject encodeReferenceType(ReferenceType sosReferenceType) throws OwsExceptionReport
sosReferenceType
- SOS ReferenceType objectOwsExceptionReport
- If an error occursprivate void addParameter(net.opengis.waterml.x20.MonitoringPointType monitoringPoint, SamplingFeature sampFeat) throws OwsExceptionReport
monitoringPoint
- WaterML 2.0 XML MonitoringPoint objectsampFeat
- SosSamplingFeatureOwsExceptionReport
- If an error occursprotected String getTimeString(Time time) throws DateTimeFormatException
time
- SOS ITime objectDateTimeFormatException
- If a formatting error occursprivate org.joda.time.DateTime getTime(Time time)
time
- ITime objectCopyright © 2012-2015 52north.org. All Rights Reserved.