public class SensorMLDecoderV101 extends AbstractSensorMLDecoder
Modifier 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 |
---|
SensorMLDecoderV101() |
Modifier and Type | Method and Description |
---|---|
private String |
addSensorMLWrapperForXmlDescription(net.opengis.sensorML.x101.AbstractProcessType xbProcessType) |
private void |
checkAndRemoveEmptyComponents(net.opengis.sensorML.x101.SystemType system) |
private List<Integer> |
checkCapabilitiesForRemoval(net.opengis.sensorML.x101.CapabilitiesDocument.Capabilities[] capabilitiesArray) |
private List<Integer> |
checkComponentsForRemoval(net.opengis.sensorML.x101.ComponentsDocument.Components.ComponentList componentList) |
AbstractSensorML |
decode(org.apache.xmlbeans.XmlObject element)
Decode a object to another representation.
|
Set<String> |
getConformanceClasses() |
Set<DecoderKey> |
getDecoderKeyTypes() |
private QName |
getQnameForType(org.apache.xmlbeans.SchemaType type) |
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
Get the ServiceConstants.SupportedTypeKey in the case of having only generic
java types, e.g.
|
private void |
parseAbstractComponent(net.opengis.sensorML.x101.AbstractComponentType xbAbstractComponent,
AbstractProcess abstractProcess) |
private void |
parseAbstractDerivableComponent(net.opengis.sensorML.x101.AbstractDerivableComponentType xbAbstractDerivableComponent,
AbstractComponent abstractComponent) |
private void |
parseAbstractProcess(net.opengis.sensorML.x101.AbstractProcessType xbAbstractProcess,
AbstractProcess abstractProcess) |
private void |
parseAbstractPureProcess(net.opengis.sensorML.x101.AbstractPureProcessType xbAbstractPureProcess,
ProcessModel processModel) |
private void |
parseCapabilities(AbstractProcess abstractProcess,
net.opengis.sensorML.x101.CapabilitiesDocument.Capabilities[] capabilitiesArray)
Parses the capabilities, processing and removing special insertion
metadata
|
private Map<String,String> |
parseCapabilitiesMetadata(SmlCapabilities caps,
net.opengis.sensorML.x101.CapabilitiesDocument.Capabilities xbCapabilities)
Process standard formatted capabilities insertion metadata into a map
(key=identifier, value=name)
|
private List<SmlCharacteristics> |
parseCharacteristics(net.opengis.sensorML.x101.CharacteristicsDocument.Characteristics[] characteristicsArray)
Parses the characteristics
|
private List<SmlClassifier> |
parseClassification(net.opengis.sensorML.x101.ClassificationDocument.Classification[] classificationArray)
Parses the classification
|
private AbstractProcess |
parseComponent(net.opengis.sensorML.x101.ComponentType componentType) |
private List<SmlComponent> |
parseComponents(net.opengis.sensorML.x101.ComponentsDocument.Components components) |
private List<SmlContact> |
parseContact(net.opengis.sensorML.x101.ContactDocument.Contact[] contactArray) |
private SmlContact |
parseContactListMembers(net.opengis.sensorML.x101.ContactListDocument.ContactList contactList) |
private List<AbstractSmlDocumentation> |
parseDocumentation(net.opengis.sensorML.x101.DocumentationDocument.Documentation[] documentationArray) |
private String |
parseHistory(net.opengis.sensorML.x101.HistoryDocument.History[] historyArray) |
private void |
parseIdentifications(AbstractProcess abstractProcess,
net.opengis.sensorML.x101.IdentificationDocument.Identification[] identificationArray)
Parses the identifications and sets the AbstractProcess' identifiers
|
private List<SmlIo<?>> |
parseInputs(net.opengis.sensorML.x101.InputsDocument.Inputs inputs)
Parses the inputs
|
private SmlIo<?> |
parseIoComponentPropertyType(net.opengis.sensorML.x101.IoComponentPropertyType xbIoCompPropType)
Parses the components
|
private List<String> |
parseKeywords(net.opengis.sensorML.x101.KeywordsDocument.Keywords[] keywordsArray) |
private SmlLocation |
parseLocation(net.opengis.sensorML.x101.SmlLocation.SmlLocation2 location)
Parses the location
|
private List<SmlIo<?>> |
parseOutputs(net.opengis.sensorML.x101.OutputsDocument.Outputs outputs)
Parses the outputs
|
private List<String> |
parseParameters(net.opengis.sensorML.x101.ParametersDocument.Parameters parameters) |
private SmlPerson |
parsePerson(net.opengis.sensorML.x101.PersonDocument.Person person) |
private SmlPosition |
parsePosition(net.opengis.sensorML.x101.PositionDocument.Position position)
Parses the position
|
private ProcessMethod |
parseProcessMethod(net.opengis.sensorML.x101.MethodPropertyType method) |
private ProcessModel |
parseProcessModel(net.opengis.sensorML.x101.ProcessModelType xbProcessModel) |
private SmlResponsibleParty |
parseResponsibleParty(net.opengis.sensorML.x101.ResponsiblePartyDocument.ResponsibleParty responsibleParty) |
private RulesDefinition |
parseRulesDefinition(net.opengis.sensorML.x101.ProcessMethodType.Rules.RulesDefinition xbRulesDefinition) |
private SensorML |
parseSensorML(net.opengis.sensorML.x101.SensorMLDocument xbSensorML) |
private System |
parseSystem(net.opengis.sensorML.x101.SystemType xbSystemType) |
private System |
parseSystem(net.opengis.sensorML.x101.SystemType xbSystemType,
System system) |
private Time |
parseValidTime(net.opengis.sensorML.x101.ValidTimeDocument.ValidTime validTime) |
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
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 SensorML parseSensorML(net.opengis.sensorML.x101.SensorMLDocument xbSensorML) throws OwsExceptionReport
OwsExceptionReport
private void parseAbstractProcess(net.opengis.sensorML.x101.AbstractProcessType xbAbstractProcess, AbstractProcess abstractProcess) throws OwsExceptionReport
OwsExceptionReport
private void parseAbstractDerivableComponent(net.opengis.sensorML.x101.AbstractDerivableComponentType xbAbstractDerivableComponent, AbstractComponent abstractComponent) throws OwsExceptionReport
OwsExceptionReport
private void parseAbstractComponent(net.opengis.sensorML.x101.AbstractComponentType xbAbstractComponent, AbstractProcess abstractProcess) throws OwsExceptionReport
OwsExceptionReport
private void parseAbstractPureProcess(net.opengis.sensorML.x101.AbstractPureProcessType xbAbstractPureProcess, ProcessModel processModel) throws OwsExceptionReport
OwsExceptionReport
private System parseSystem(net.opengis.sensorML.x101.SystemType xbSystemType) throws OwsExceptionReport
OwsExceptionReport
private System parseSystem(net.opengis.sensorML.x101.SystemType xbSystemType, System system) throws OwsExceptionReport
OwsExceptionReport
private AbstractProcess parseComponent(net.opengis.sensorML.x101.ComponentType componentType) throws OwsExceptionReport
OwsExceptionReport
private ProcessModel parseProcessModel(net.opengis.sensorML.x101.ProcessModelType xbProcessModel) throws OwsExceptionReport
OwsExceptionReport
private ProcessMethod parseProcessMethod(net.opengis.sensorML.x101.MethodPropertyType method) throws CodedException
CodedException
private RulesDefinition parseRulesDefinition(net.opengis.sensorML.x101.ProcessMethodType.Rules.RulesDefinition xbRulesDefinition)
private void parseIdentifications(AbstractProcess abstractProcess, net.opengis.sensorML.x101.IdentificationDocument.Identification[] identificationArray)
abstractProcess
- The AbstractProcess to which identifiers are addedidentificationArray
- XML identificationprivate List<SmlClassifier> parseClassification(net.opengis.sensorML.x101.ClassificationDocument.Classification[] classificationArray)
classificationArray
- XML classificationprivate List<SmlCharacteristics> parseCharacteristics(net.opengis.sensorML.x101.CharacteristicsDocument.Characteristics[] characteristicsArray) throws OwsExceptionReport
characteristicsArray
- XML characteristicsOwsExceptionReport
- * if an error occursprivate void parseCapabilities(AbstractProcess abstractProcess, net.opengis.sensorML.x101.CapabilitiesDocument.Capabilities[] capabilitiesArray) throws OwsExceptionReport
abstractProcess
- The AbstractProcess to which capabilities and insertion
metadata are addedcapabilitiesArray
- XML capabilitiesOwsExceptionReport
- * if an error occursprivate Map<String,String> parseCapabilitiesMetadata(SmlCapabilities caps, net.opengis.sensorML.x101.CapabilitiesDocument.Capabilities xbCapabilities) throws OwsExceptionReport
dataRecord
- The DataRecord to examinexbCapabilities
- The original capabilites xml object, used for exception
throwingCodedException
- thrown if the DataRecord fields are in an incorrect formatOwsExceptionReport
private SmlPosition parsePosition(net.opengis.sensorML.x101.PositionDocument.Position position) throws OwsExceptionReport
position
- XML positionOwsExceptionReport
- * if an error occursprivate SmlLocation parseLocation(net.opengis.sensorML.x101.SmlLocation.SmlLocation2 location) throws OwsExceptionReport
location
- XML locationOwsExceptionReport
- * if an error occursprivate Time parseValidTime(net.opengis.sensorML.x101.ValidTimeDocument.ValidTime validTime)
private List<String> parseParameters(net.opengis.sensorML.x101.ParametersDocument.Parameters parameters)
private List<SmlContact> parseContact(net.opengis.sensorML.x101.ContactDocument.Contact[] contactArray)
private SmlContact parseContactListMembers(net.opengis.sensorML.x101.ContactListDocument.ContactList contactList)
private SmlPerson parsePerson(net.opengis.sensorML.x101.PersonDocument.Person person)
private SmlResponsibleParty parseResponsibleParty(net.opengis.sensorML.x101.ResponsiblePartyDocument.ResponsibleParty responsibleParty)
private List<AbstractSmlDocumentation> parseDocumentation(net.opengis.sensorML.x101.DocumentationDocument.Documentation[] documentationArray)
private List<String> parseKeywords(net.opengis.sensorML.x101.KeywordsDocument.Keywords[] keywordsArray)
private String parseHistory(net.opengis.sensorML.x101.HistoryDocument.History[] historyArray)
private List<SmlIo<?>> parseInputs(net.opengis.sensorML.x101.InputsDocument.Inputs inputs) throws OwsExceptionReport
inputs
- XML inputsOwsExceptionReport
- * if an error occursprivate List<SmlIo<?>> parseOutputs(net.opengis.sensorML.x101.OutputsDocument.Outputs outputs) throws OwsExceptionReport
outputs
- XML outputsOwsExceptionReport
- * if an error occursprivate List<SmlComponent> parseComponents(net.opengis.sensorML.x101.ComponentsDocument.Components components) throws OwsExceptionReport
OwsExceptionReport
private SmlIo<?> parseIoComponentPropertyType(net.opengis.sensorML.x101.IoComponentPropertyType xbIoCompPropType) throws OwsExceptionReport
xbIoCompPropType
- XML componentsOwsExceptionReport
- * if an error occursprivate String addSensorMLWrapperForXmlDescription(net.opengis.sensorML.x101.AbstractProcessType xbProcessType)
private QName getQnameForType(org.apache.xmlbeans.SchemaType type)
private List<Integer> checkCapabilitiesForRemoval(net.opengis.sensorML.x101.CapabilitiesDocument.Capabilities[] capabilitiesArray)
private List<Integer> checkComponentsForRemoval(net.opengis.sensorML.x101.ComponentsDocument.Components.ComponentList componentList)
private void checkAndRemoveEmptyComponents(net.opengis.sensorML.x101.SystemType system)
Copyright © 2012-2015 52north.org. All Rights Reserved.