Package org.n52.svalbard.encode
Interface ObservationEncoder<S,T>
-
- Type Parameters:
T- the resulting type, the "Target"S- the input type, the "Source"
- All Superinterfaces:
Component<EncoderKey>,ConformanceClass,Encoder<S,T>,Keyed<EncoderKey>
- All Known Implementing Classes:
UVFEncoder
public interface ObservationEncoder<S,T> extends ConformanceClass, Encoder<S,T>
- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetProcedureEncodingNamspace()Indicator whether the procedure is to be encodedMap<String,Set<SupportedType>>getSupportedResponseFormatObservationTypes()Set<String>getSupportedResponseFormats(String service, String version)Get the supported response formats for this ObservationEncoder and the specified service and version.default Set<String>getSupportedResponseFormats(OwsServiceKey key)booleanisObservationAndMeasurmentV20Type()Indicator whether the ObservationEncoder of type or subtype Observation & Measurement 2.0booleanshouldObservationsWithSameXBeMerged()Indicator whether the single observations with the same procedure, observableProperty and featureOfInterest should be merged to one observation.booleansupportsResultStreamingForMergedValues()-
Methods inherited from interface org.n52.svalbard.ConformanceClass
getConformanceClasses
-
Methods inherited from interface org.n52.svalbard.encode.Encoder
encode, encode, getContentType, getSupportedTypes
-
-
-
-
Method Detail
-
isObservationAndMeasurmentV20Type
boolean isObservationAndMeasurmentV20Type()
Indicator whether the ObservationEncoder of type or subtype Observation & Measurement 2.0- Returns:
- Of type or not
-
shouldObservationsWithSameXBeMerged
boolean shouldObservationsWithSameXBeMerged()
Indicator whether the single observations with the same procedure, observableProperty and featureOfInterest should be merged to one observation.- Returns:
- Merge or not
-
supportsResultStreamingForMergedValues
boolean supportsResultStreamingForMergedValues()
-
getSupportedResponseFormats
Set<String> getSupportedResponseFormats(String service, String version)
Get the supported response formats for this ObservationEncoder and the specified service and version.- Parameters:
service- the serviceversion- the version- Returns:
- the response formats
-
getSupportedResponseFormats
default Set<String> getSupportedResponseFormats(OwsServiceKey key)
-
getSupportedResponseFormatObservationTypes
Map<String,Set<SupportedType>> getSupportedResponseFormatObservationTypes()
-
getProcedureEncodingNamspace
default String getProcedureEncodingNamspace()
Indicator whether the procedure is to be encoded- Returns:
- Indicator
-
-