Package org.n52.svalbard.decode.json
Class ObservationDecoder
- java.lang.Object
-
- org.n52.svalbard.decode.AbstractDelegatingDecoder<T,com.fasterxml.jackson.databind.JsonNode>
-
- org.n52.svalbard.decode.json.JSONDecoder<OmObservation>
-
- org.n52.svalbard.decode.json.ObservationDecoder
-
- All Implemented Interfaces:
Component<DecoderKey>,Keyed<DecoderKey>,Decoder<OmObservation,com.fasterxml.jackson.databind.JsonNode>
public class ObservationDecoder extends JSONDecoder<OmObservation>
TODO JavaDoc- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description ObservationDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OmObservationdecodeJSON(com.fasterxml.jackson.databind.JsonNode node)OmObservationdecodeJSON(com.fasterxml.jackson.databind.JsonNode node, boolean validate)Set<SupportedType>getSupportedTypes()protected AbstractFeatureparseFeatureOfInterest(com.fasterxml.jackson.databind.JsonNode node)protected ObservationValue<?>parseMeasurementValue(com.fasterxml.jackson.databind.JsonNode node)OmObservationConstellationparseObservationConstellation(com.fasterxml.jackson.databind.JsonNode node)protected StringparseObservationType(com.fasterxml.jackson.databind.JsonNode node)protected Collection<NamedValue<?>>parseParameter(com.fasterxml.jackson.databind.JsonNode node)protected AbstractFeatureparseProcedure(com.fasterxml.jackson.databind.JsonNode node)protected TimeInstantparseResultTime(com.fasterxml.jackson.databind.JsonNode node)protected TimePeriodparseValidTime(com.fasterxml.jackson.databind.JsonNode node)-
Methods inherited from class org.n52.svalbard.decode.json.JSONDecoder
decode, decodeJsonToObject, decodeJsonToObjectList, getKeys, parseCodeType, parseCodeWithAuthority, parseDateTime, parseTime, parseTimeInstant, parseTimePeriod
-
Methods inherited from class org.n52.svalbard.decode.AbstractDelegatingDecoder
getDecoder, getDecoderRepository, setDecoderRepository
-
-
-
-
Method Detail
-
getSupportedTypes
public Set<SupportedType> getSupportedTypes()
-
decodeJSON
public OmObservation decodeJSON(com.fasterxml.jackson.databind.JsonNode node, boolean validate) throws DecodingException
- Specified by:
decodeJSONin classJSONDecoder<OmObservation>- Throws:
DecodingException
-
decodeJSON
protected OmObservation decodeJSON(com.fasterxml.jackson.databind.JsonNode node) throws DecodingException
- Throws:
DecodingException
-
parseObservationConstellation
public OmObservationConstellation parseObservationConstellation(com.fasterxml.jackson.databind.JsonNode node) throws DecodingException
- Throws:
DecodingException
-
parseProcedure
protected AbstractFeature parseProcedure(com.fasterxml.jackson.databind.JsonNode node)
-
parseObservationType
protected String parseObservationType(com.fasterxml.jackson.databind.JsonNode node)
-
parseValidTime
protected TimePeriod parseValidTime(com.fasterxml.jackson.databind.JsonNode node) throws DecodingException
- Throws:
DecodingException
-
parseResultTime
protected TimeInstant parseResultTime(com.fasterxml.jackson.databind.JsonNode node) throws DecodingException
- Throws:
DecodingException
-
parseParameter
protected Collection<NamedValue<?>> parseParameter(com.fasterxml.jackson.databind.JsonNode node) throws DecodingException
- Throws:
DecodingException
-
parseFeatureOfInterest
protected AbstractFeature parseFeatureOfInterest(com.fasterxml.jackson.databind.JsonNode node) throws DecodingException
- Throws:
DecodingException
-
parseMeasurementValue
protected ObservationValue<?> parseMeasurementValue(com.fasterxml.jackson.databind.JsonNode node) throws DecodingException
- Throws:
DecodingException
-
-