public class ObservationDecoder extends JSONDecoder<OmObservation>
Modifier and Type | Field and Description |
---|---|
private JSONDecoder<AbstractFeature> |
featureDecoder |
private JSONDecoder<com.vividsolutions.jts.geom.Geometry> |
geometryDecoder |
private static Map<ServiceConstants.SupportedTypeKey,Set<String>> |
SUPPORTED_TYPES |
Constructor and Description |
---|
ObservationDecoder() |
Modifier and Type | Method and Description |
---|---|
protected OmObservation |
decodeJSON(com.fasterxml.jackson.databind.JsonNode node) |
OmObservation |
decodeJSON(com.fasterxml.jackson.databind.JsonNode node,
boolean validate) |
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
Get the ServiceConstants.SupportedTypeKey in the case of having only generic
java types, e.g.
|
private ObservationValue<?> |
parseCategoryObservationValue(com.fasterxml.jackson.databind.JsonNode node) |
private ObservationValue<?> |
parseCountObservationValue(com.fasterxml.jackson.databind.JsonNode node) |
protected AbstractFeature |
parseFeatureOfInterest(com.fasterxml.jackson.databind.JsonNode node) |
private ObservationValue<?> |
parseGeometryObservation(com.fasterxml.jackson.databind.JsonNode node) |
private CodeWithAuthority |
parseIdentifier(com.fasterxml.jackson.databind.JsonNode node) |
protected ObservationValue<?> |
parseMeasurementValue(com.fasterxml.jackson.databind.JsonNode node) |
private AbstractPhenomenon |
parseObservableProperty(com.fasterxml.jackson.databind.JsonNode node) |
OmObservationConstellation |
parseObservationConstellation(com.fasterxml.jackson.databind.JsonNode node) |
protected String |
parseObservationType(com.fasterxml.jackson.databind.JsonNode node) |
private Time |
parsePhenomenonTime(com.fasterxml.jackson.databind.JsonNode node) |
protected SosProcedureDescription |
parseProcedure(com.fasterxml.jackson.databind.JsonNode node) |
protected TimeInstant |
parseResultTime(com.fasterxml.jackson.databind.JsonNode node) |
private ObservationValue<?> |
parseTextObservationValue(com.fasterxml.jackson.databind.JsonNode node) |
private ObservationValue<?> |
parseTruthObservationValue(com.fasterxml.jackson.databind.JsonNode node) |
protected TimePeriod |
parseValidTime(com.fasterxml.jackson.databind.JsonNode node) |
private ObservationValue<?> |
parseValue(com.fasterxml.jackson.databind.JsonNode node) |
decode, decodeJsonToObject, decodeJsonToObjectList, getConformanceClasses, getDecoderKeyTypes, parseCodeType, parseCodeWithAuthority, parseDateTime, parseTime, parseTimeInstant, parseTimePeriod
private static final Map<ServiceConstants.SupportedTypeKey,Set<String>> SUPPORTED_TYPES
private final JSONDecoder<AbstractFeature> featureDecoder
private final JSONDecoder<com.vividsolutions.jts.geom.Geometry> geometryDecoder
public Map<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
Decoder
getSupportedTypes
in interface Decoder<OmObservation,com.fasterxml.jackson.databind.JsonNode>
getSupportedTypes
in class JSONDecoder<OmObservation>
public OmObservation decodeJSON(com.fasterxml.jackson.databind.JsonNode node, boolean validate) throws OwsExceptionReport
decodeJSON
in class JSONDecoder<OmObservation>
OwsExceptionReport
protected OmObservation decodeJSON(com.fasterxml.jackson.databind.JsonNode node) throws OwsExceptionReport
OwsExceptionReport
public OmObservationConstellation parseObservationConstellation(com.fasterxml.jackson.databind.JsonNode node) throws OwsExceptionReport
OwsExceptionReport
protected SosProcedureDescription parseProcedure(com.fasterxml.jackson.databind.JsonNode node)
private AbstractPhenomenon parseObservableProperty(com.fasterxml.jackson.databind.JsonNode node)
private CodeWithAuthority parseIdentifier(com.fasterxml.jackson.databind.JsonNode node)
protected String parseObservationType(com.fasterxml.jackson.databind.JsonNode node)
protected TimePeriod parseValidTime(com.fasterxml.jackson.databind.JsonNode node) throws OwsExceptionReport
OwsExceptionReport
protected TimeInstant parseResultTime(com.fasterxml.jackson.databind.JsonNode node) throws OwsExceptionReport
OwsExceptionReport
private Time parsePhenomenonTime(com.fasterxml.jackson.databind.JsonNode node) throws OwsExceptionReport
OwsExceptionReport
protected AbstractFeature parseFeatureOfInterest(com.fasterxml.jackson.databind.JsonNode node) throws OwsExceptionReport
OwsExceptionReport
private ObservationValue<?> parseValue(com.fasterxml.jackson.databind.JsonNode node) throws OwsExceptionReport
OwsExceptionReport
protected ObservationValue<?> parseMeasurementValue(com.fasterxml.jackson.databind.JsonNode node) throws OwsExceptionReport
OwsExceptionReport
private ObservationValue<?> parseTextObservationValue(com.fasterxml.jackson.databind.JsonNode node) throws OwsExceptionReport
OwsExceptionReport
private ObservationValue<?> parseCountObservationValue(com.fasterxml.jackson.databind.JsonNode node) throws OwsExceptionReport
OwsExceptionReport
private ObservationValue<?> parseTruthObservationValue(com.fasterxml.jackson.databind.JsonNode node) throws OwsExceptionReport
OwsExceptionReport
private ObservationValue<?> parseCategoryObservationValue(com.fasterxml.jackson.databind.JsonNode node) throws OwsExceptionReport
OwsExceptionReport
private ObservationValue<?> parseGeometryObservation(com.fasterxml.jackson.databind.JsonNode node) throws OwsExceptionReport
OwsExceptionReport
Copyright © 2012-2014 52north.org. All Rights Reserved.