public class SensorMLDecoderV20 extends AbstractSensorMLDecoder
AbstractSensorMLDecoder
class to decode OGC SensorML 2.0Modifier and Type | Field and Description |
---|---|
private static Set<DecoderKey> |
DECODER_KEYS |
private static org.slf4j.Logger |
LOGGER |
private static Set<String> |
REMOVABLE_CAPABILITIES_NAMES |
private static Set<String> |
REMOVABLE_COMPONENTS_ROLES |
private static Set<String> |
SUPPORTED_PROCEDURE_DESCRIPTION_FORMATS |
Constructor and Description |
---|
SensorMLDecoderV20() |
Modifier and Type | Method and Description |
---|---|
private List<Integer> |
checkCapabilitiesForRemoval(net.opengis.sensorml.x20.DescribedObjectType.Capabilities[] capabilitiesArray) |
private List<Integer> |
checkComponentsForRemoval(net.opengis.sensorml.x20.ComponentListType componentList) |
private boolean |
checkIdentifierCodeSpace(AbstractProcessV20 ap) |
AbstractSensorML |
decode(org.apache.xmlbeans.XmlObject element)
Decode a object to another representation.
|
Set<String> |
getConformanceClasses() |
Set<DecoderKey> |
getDecoderKeyTypes() |
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
Get the ServiceConstants.SupportedTypeKey in the case of having only generic
java types, e.g.
|
private void |
parseAbstractPhysicalProcess(net.opengis.sensorml.x20.AbstractPhysicalProcessType appt,
AbstractPhysicalProcess abstractPhysicalProcess) |
private void |
parseAbstractProcess(net.opengis.sensorml.x20.AbstractProcessType apt,
AbstractProcessV20 abstractProcess) |
private DescribedObject |
parseAggregateProcess(net.opengis.sensorml.x20.AggregateProcessType describedObject) |
private void |
parseCapabilities(AbstractProcess abstractProcess,
net.opengis.sensorml.x20.DescribedObjectType.Capabilities[] capabilitiesArray)
Parses the capabilities, processing and removing special insertion
metadata
|
private List<SmlCharacteristics> |
parseCharacteristics(net.opengis.sensorml.x20.CharacteristicListPropertyType[] clpts)
Parses the characteristics
|
private List<SmlClassifier> |
parseClassification(net.opengis.sensorml.x20.ClassifierListPropertyType[] clpts)
Parses the classification
|
private List<SmlComponent> |
parseComponents(net.opengis.sensorml.x20.ComponentListPropertyType components) |
private List<SmlContact> |
parseContact(net.opengis.sensorml.x20.ContactListPropertyType[] clpts) |
private SweAbstractDataComponent |
parseDataComponentOrObservablePropertyType(net.opengis.sensorml.x20.DataComponentOrObservablePropertyType adcpt)
Parses the components
|
protected SmlDataInterface |
parseDataInterfaceType(net.opengis.sensorml.x20.DataInterfaceType xbDataInterface) |
protected SmlDataStreamPropertyType |
parseDataStreamPropertyType(net.opengis.swe.x20.DataStreamPropertyType data) |
private void |
parseDescribedObject(net.opengis.sensorml.x20.DescribedObjectType dot,
DescribedObject describedObject) |
private void |
parseFeatureOfInterest(net.opengis.sensorml.x20.AbstractProcessType.FeaturesOfInterest featuresOfInterest,
AbstractProcessV20 abstractProcess) |
private void |
parseIdentifications(DescribedObject describedObject,
net.opengis.sensorml.x20.IdentifierListPropertyType[] identificationArray) |
private SmlIo<?> |
parseInput(net.opengis.sensorml.x20.InputListType.Input xbInput) |
private List<SmlIo<?>> |
parseInputs(net.opengis.sensorml.x20.AbstractProcessType.Inputs inputs) |
private List<String> |
parseKeywords(net.opengis.sensorml.x20.KeywordListPropertyType[] keywordsArray) |
private SweObservableProperty |
parseObservableProperty(net.opengis.sensorml.x20.ObservablePropertyType opt)
Parse
ObservablePropertyType |
private SmlIo<?> |
parseOutput(net.opengis.sensorml.x20.OutputListType.Output xbOutput) |
private List<SmlIo<?>> |
parseOutputs(net.opengis.sensorml.x20.AbstractProcessType.Outputs outputs) |
private DescribedObject |
parsePhysicalComponent(net.opengis.sensorml.x20.PhysicalComponentType describedObject) |
private DescribedObject |
parsePhysicalSystem(net.opengis.sensorml.x20.PhysicalSystemType describedObject) |
private SmlPosition |
parsePositionFrom(net.opengis.sensorml.x20.PositionUnionPropertyType pupt) |
private DescribedObject |
parseSimpleProcess(net.opengis.sensorml.x20.SimpleProcessType describedObject) |
private boolean |
removeEmptyComponents(net.opengis.sensorml.x20.ComponentListPropertyType components) |
private void |
setXmlDescription(org.apache.xmlbeans.XmlObject xml,
AbstractSensorML sml) |
isIdentificationProcedureIdentifier
private static final org.slf4j.Logger LOGGER
private static final Set<DecoderKey> DECODER_KEYS
private static final Set<String> SUPPORTED_PROCEDURE_DESCRIPTION_FORMATS
public Set<DecoderKey> getDecoderKeyTypes()
DecoderKey
) is able to decodepublic Map<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
Decoder
public AbstractSensorML decode(org.apache.xmlbeans.XmlObject element) throws OwsExceptionReport, UnsupportedDecoderInputException
Decoder
element
- the object to encodeOwsExceptionReport
- if an error occursUnsupportedDecoderInputException
- if the supplied type (or any of it's contents) is not
supported by this decoderprivate void setXmlDescription(org.apache.xmlbeans.XmlObject xml, AbstractSensorML sml)
private DescribedObject parsePhysicalSystem(net.opengis.sensorml.x20.PhysicalSystemType describedObject) throws OwsExceptionReport
OwsExceptionReport
private DescribedObject parsePhysicalComponent(net.opengis.sensorml.x20.PhysicalComponentType describedObject) throws OwsExceptionReport
OwsExceptionReport
private DescribedObject parseSimpleProcess(net.opengis.sensorml.x20.SimpleProcessType describedObject) throws OwsExceptionReport
OwsExceptionReport
private DescribedObject parseAggregateProcess(net.opengis.sensorml.x20.AggregateProcessType describedObject) throws OwsExceptionReport
OwsExceptionReport
private void parseDescribedObject(net.opengis.sensorml.x20.DescribedObjectType dot, DescribedObject describedObject) throws OwsExceptionReport
OwsExceptionReport
private void parseAbstractProcess(net.opengis.sensorml.x20.AbstractProcessType apt, AbstractProcessV20 abstractProcess) throws OwsExceptionReport
OwsExceptionReport
private void parseAbstractPhysicalProcess(net.opengis.sensorml.x20.AbstractPhysicalProcessType appt, AbstractPhysicalProcess abstractPhysicalProcess) throws OwsExceptionReport
OwsExceptionReport
private List<String> parseKeywords(net.opengis.sensorml.x20.KeywordListPropertyType[] keywordsArray)
private void parseIdentifications(DescribedObject describedObject, net.opengis.sensorml.x20.IdentifierListPropertyType[] identificationArray)
private List<SmlClassifier> parseClassification(net.opengis.sensorml.x20.ClassifierListPropertyType[] clpts)
classificationArray
- XML classificationprivate List<SmlCharacteristics> parseCharacteristics(net.opengis.sensorml.x20.CharacteristicListPropertyType[] clpts) throws OwsExceptionReport
characteristicsArray
- XML characteristicsOwsExceptionReport
- * if an error occursprivate void parseCapabilities(AbstractProcess abstractProcess, net.opengis.sensorml.x20.DescribedObjectType.Capabilities[] capabilitiesArray) throws OwsExceptionReport
abstractProcess
- The AbstractProcess to which capabilities and insertion
metadata are addedcapabilitiesArray
- XML capabilitiesOwsExceptionReport
- * if an error occursprivate List<SmlContact> parseContact(net.opengis.sensorml.x20.ContactListPropertyType[] clpts) throws OwsExceptionReport
OwsExceptionReport
private List<SmlIo<?>> parseInputs(net.opengis.sensorml.x20.AbstractProcessType.Inputs inputs) throws OwsExceptionReport
OwsExceptionReport
private List<SmlIo<?>> parseOutputs(net.opengis.sensorml.x20.AbstractProcessType.Outputs outputs) throws OwsExceptionReport
OwsExceptionReport
private void parseFeatureOfInterest(net.opengis.sensorml.x20.AbstractProcessType.FeaturesOfInterest featuresOfInterest, AbstractProcessV20 abstractProcess) throws OwsExceptionReport
OwsExceptionReport
private SmlPosition parsePositionFrom(net.opengis.sensorml.x20.PositionUnionPropertyType pupt) throws OwsExceptionReport
OwsExceptionReport
private List<SmlComponent> parseComponents(net.opengis.sensorml.x20.ComponentListPropertyType components) throws UnsupportedDecoderInputException, OwsExceptionReport
private boolean checkIdentifierCodeSpace(AbstractProcessV20 ap) throws InvalidParameterValueException
InvalidParameterValueException
private List<Integer> checkCapabilitiesForRemoval(net.opengis.sensorml.x20.DescribedObjectType.Capabilities[] capabilitiesArray)
private List<Integer> checkComponentsForRemoval(net.opengis.sensorml.x20.ComponentListType componentList)
private boolean removeEmptyComponents(net.opengis.sensorml.x20.ComponentListPropertyType components)
private SmlIo<?> parseInput(net.opengis.sensorml.x20.InputListType.Input xbInput) throws OwsExceptionReport
OwsExceptionReport
private SmlIo<?> parseOutput(net.opengis.sensorml.x20.OutputListType.Output xbOutput) throws OwsExceptionReport
OwsExceptionReport
private SweAbstractDataComponent parseDataComponentOrObservablePropertyType(net.opengis.sensorml.x20.DataComponentOrObservablePropertyType adcpt) throws OwsExceptionReport
adcpt
- XML componentsOwsExceptionReport
- * if an error occursprotected SmlDataInterface parseDataInterfaceType(net.opengis.sensorml.x20.DataInterfaceType xbDataInterface) throws OwsExceptionReport
OwsExceptionReport
protected SmlDataStreamPropertyType parseDataStreamPropertyType(net.opengis.swe.x20.DataStreamPropertyType data)
private SweObservableProperty parseObservableProperty(net.opengis.sensorml.x20.ObservablePropertyType opt)
ObservablePropertyType
opt
- Object to parseSweObservableProperty
Copyright © 2012-2015 52north.org. All Rights Reserved.