Modifier and Type | Field and Description |
---|---|
private static Set<String> |
CONFORMANCE_CLASSES |
private static Set<DecoderKey> |
DECODER_KEYS |
private static org.slf4j.Logger |
LOGGER |
private static Map<ServiceConstants.SupportedTypeKey,Set<String>> |
SUPPORTED_TYPES |
Constructor and Description |
---|
OmDecoderv20() |
Modifier and Type | Method and Description |
---|---|
private AbstractFeature |
checkFeatureWithMap(AbstractFeature featureOfInterest,
Map<String,AbstractFeature> featureMap) |
private SosProcedureDescription |
createProcedure(String procedureIdentifier) |
Object |
decode(Object object)
Decode a object to another representation.
|
Set<String> |
getConformanceClasses() |
Set<DecoderKey> |
getDecoderKeyTypes() |
private CodeWithAuthority |
getIdentifier(net.opengis.om.x20.OMObservationType omObservation) |
private AbstractPhenomenon |
getObservableProperty(net.opengis.om.x20.OMObservationType omObservation) |
private OmObservationConstellation |
getObservationConstellation(net.opengis.om.x20.OMObservationType omObservation) |
private String |
getObservationType(net.opengis.om.x20.OMObservationType omObservation) |
private ObservationValue<?> |
getObservationValue(net.opengis.om.x20.OMObservationType omObservation) |
private Time |
getPhenomenonTime(net.opengis.om.x20.OMObservationType omObservation) |
private String |
getProcedure(net.opengis.om.x20.OMObservationType omObservation) |
private ObservationValue<?> |
getResult(net.opengis.om.x20.OMObservationType omObservation) |
private TimeInstant |
getResultTime(net.opengis.om.x20.OMObservationType omObservation) |
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
Get the ServiceConstants.SupportedTypeKey in the case of having only generic
java types, e.g.
|
private TimePeriod |
getValidTime(net.opengis.om.x20.OMObservationType omObservation) |
private NamedValue<?> |
parseNamedValueType(net.opengis.om.x20.NamedValuePropertyType namedValueProperty) |
private Set<NamedValue<?>> |
parseNamedValueTypeArray(net.opengis.om.x20.NamedValuePropertyType[] namedValuePropertyArray) |
private NamedValue<?> |
parseNamedValueValue(org.apache.xmlbeans.XmlObject xmlObject) |
private OmObservation |
parseOmObservation(net.opengis.om.x20.OMObservationType omObservation) |
private static final org.slf4j.Logger LOGGER
private static final Set<DecoderKey> DECODER_KEYS
private static final Map<ServiceConstants.SupportedTypeKey,Set<String>> SUPPORTED_TYPES
public Set<DecoderKey> getDecoderKeyTypes()
getDecoderKeyTypes
in interface Decoder<Object,Object>
DecoderKey
) is able to decodepublic Map<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
Decoder
getSupportedTypes
in interface Decoder<Object,Object>
public Set<String> getConformanceClasses()
getConformanceClasses
in interface ConformanceClass
public Object decode(Object object) throws OwsExceptionReport
Decoder
decode
in interface Decoder<Object,Object>
object
- the object to encodeOwsExceptionReport
- if an error occursUnsupportedDecoderInputException
- if the supplied type (or any of it's contents) is not
supported by this decoderprivate OmObservation parseOmObservation(net.opengis.om.x20.OMObservationType omObservation) throws OwsExceptionReport
OwsExceptionReport
private Set<NamedValue<?>> parseNamedValueTypeArray(net.opengis.om.x20.NamedValuePropertyType[] namedValuePropertyArray) throws OwsExceptionReport
OwsExceptionReport
private NamedValue<?> parseNamedValueType(net.opengis.om.x20.NamedValuePropertyType namedValueProperty) throws OwsExceptionReport
OwsExceptionReport
private NamedValue<?> parseNamedValueValue(org.apache.xmlbeans.XmlObject xmlObject) throws OwsExceptionReport
OwsExceptionReport
private CodeWithAuthority getIdentifier(net.opengis.om.x20.OMObservationType omObservation) throws OwsExceptionReport
OwsExceptionReport
private OmObservationConstellation getObservationConstellation(net.opengis.om.x20.OMObservationType omObservation) throws OwsExceptionReport
OwsExceptionReport
private String getObservationType(net.opengis.om.x20.OMObservationType omObservation)
private String getProcedure(net.opengis.om.x20.OMObservationType omObservation)
private AbstractPhenomenon getObservableProperty(net.opengis.om.x20.OMObservationType omObservation)
private Time getPhenomenonTime(net.opengis.om.x20.OMObservationType omObservation) throws OwsExceptionReport
OwsExceptionReport
private TimeInstant getResultTime(net.opengis.om.x20.OMObservationType omObservation) throws OwsExceptionReport
OwsExceptionReport
private TimePeriod getValidTime(net.opengis.om.x20.OMObservationType omObservation) throws OwsExceptionReport
OwsExceptionReport
private ObservationValue<?> getObservationValue(net.opengis.om.x20.OMObservationType omObservation) throws OwsExceptionReport
OwsExceptionReport
private ObservationValue<?> getResult(net.opengis.om.x20.OMObservationType omObservation) throws OwsExceptionReport
OwsExceptionReport
private AbstractFeature checkFeatureWithMap(AbstractFeature featureOfInterest, Map<String,AbstractFeature> featureMap)
private SosProcedureDescription createProcedure(String procedureIdentifier)
Copyright © 2012-2015 52north.org. All Rights Reserved.