Package org.n52.svalbard.encode
Class AqdEncoder
- java.lang.Object
-
- org.n52.svalbard.encode.AbstractDelegatingEncoder<T,S>
-
- org.n52.svalbard.encode.AbstractXmlEncoder<org.apache.xmlbeans.XmlObject,Object>
-
- org.n52.svalbard.encode.AqdEncoder
-
- All Implemented Interfaces:
Component<EncoderKey>,Keyed<EncoderKey>,ConformanceClass,Encoder<org.apache.xmlbeans.XmlObject,Object>,ObservationEncoder<org.apache.xmlbeans.XmlObject,Object>,SchemaAwareEncoder<org.apache.xmlbeans.XmlObject,Object>
@Configurable public class AqdEncoder extends AbstractXmlEncoder<org.apache.xmlbeans.XmlObject,Object> implements ObservationEncoder<org.apache.xmlbeans.XmlObject,Object>
-
-
Constructor Summary
Constructors Constructor Description AqdEncoder()
-
Method Summary
-
Methods inherited from class org.n52.svalbard.encode.AbstractXmlEncoder
encode, encodeObjectToXml, encodeObjectToXml, encodeObjectToXmlDocument, encodeObjectToXmlDocument, encodeObjectToXmlPropertyType, encodeObjectToXmlPropertyType, encodeObjectToXmlText, encodeObjectToXmlText, getAndCheck, getContentType, getDocumentEncoder, getDocumentEncoder, getDocumentEncoderKey, getDocumentEncoderKey, getEncoder, getEncoder, getEncoderKey, getEncoderKey, getPropertyTypeEncoder, getPropertyTypeEncoder, getPropertyTypeEncoderKey, getPropertyTypeEncoderKey, getXmlOptions, setXmlOptions, substitute
-
Methods inherited from class org.n52.svalbard.encode.AbstractDelegatingEncoder
getEncoder, getEncoderRepository, setEncoderRepository
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.svalbard.ConformanceClass
getConformanceClasses
-
Methods inherited from interface org.n52.svalbard.encode.Encoder
encode, getContentType, getSupportedTypes
-
Methods inherited from interface org.n52.svalbard.encode.ObservationEncoder
getProcedureEncodingNamspace, getSupportedResponseFormats
-
-
-
-
Method Detail
-
getKeys
public Set<EncoderKey> getKeys()
- Specified by:
getKeysin interfaceKeyed<EncoderKey>
-
getSchemaLocations
public Set<SchemaLocation> getSchemaLocations()
- Specified by:
getSchemaLocationsin interfaceSchemaAwareEncoder<org.apache.xmlbeans.XmlObject,Object>
-
addNamespacePrefixToMap
public void addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
- Specified by:
addNamespacePrefixToMapin interfaceSchemaAwareEncoder<org.apache.xmlbeans.XmlObject,Object>
-
isObservationAndMeasurmentV20Type
public boolean isObservationAndMeasurmentV20Type()
- Specified by:
isObservationAndMeasurmentV20Typein interfaceObservationEncoder<org.apache.xmlbeans.XmlObject,Object>
-
shouldObservationsWithSameXBeMerged
public boolean shouldObservationsWithSameXBeMerged()
- Specified by:
shouldObservationsWithSameXBeMergedin interfaceObservationEncoder<org.apache.xmlbeans.XmlObject,Object>
-
supportsResultStreamingForMergedValues
public boolean supportsResultStreamingForMergedValues()
- Specified by:
supportsResultStreamingForMergedValuesin interfaceObservationEncoder<org.apache.xmlbeans.XmlObject,Object>
-
getSupportedResponseFormats
public Set<String> getSupportedResponseFormats(String service, String version)
- Specified by:
getSupportedResponseFormatsin interfaceObservationEncoder<org.apache.xmlbeans.XmlObject,Object>
-
getSupportedResponseFormatObservationTypes
public Map<String,Set<SupportedType>> getSupportedResponseFormatObservationTypes()
- Specified by:
getSupportedResponseFormatObservationTypesin interfaceObservationEncoder<org.apache.xmlbeans.XmlObject,Object>
-
encode
public org.apache.xmlbeans.XmlObject encode(Object element, EncodingContext ctx) throws EncodingException, UnsupportedEncoderInputException
- Specified by:
encodein interfaceEncoder<org.apache.xmlbeans.XmlObject,Object>- Throws:
EncodingExceptionUnsupportedEncoderInputException
-
processObservation
protected void processObservation(OmObservation observation, TimePeriod timePeriod, TimeInstant resultTime, FeatureCollection featureCollection, AbstractEReportingHeader eReportingHeader, int counter)
-
getObservationId
protected String getObservationId(int counter)
-
getEReportingNamespace
public String getEReportingNamespace()
-
setEReportingNamespace
@Setting(value="eReporting.namespace", required=false) public void setEReportingNamespace(String namespace) throws ConfigurationError
- Throws:
ConfigurationError
-
isSetEReportingNamespace
protected boolean isSetEReportingNamespace()
-
setEReportingObservationPrefix
@Setting(value="eReporting.observation.prefix", required=false) public void setEReportingObservationPrefix(String observationPrefix) throws ConfigurationError
- Throws:
ConfigurationError
-
getEReportingObservationPrefix
protected String getEReportingObservationPrefix()
-
isSetEReportingObservationPrefix
protected boolean isSetEReportingObservationPrefix()
-
getEReportingHeader
protected EReportingHeader getEReportingHeader(ReportObligationType type) throws OwsExceptionReport, EncodingException
- Throws:
OwsExceptionReportEncodingException
-
setReportObligationRepository
@Inject public void setReportObligationRepository(Optional<EReportObligationRepository> reportObligationRepository)
-
-