public class SensorMLEncoderv20 extends AbstractSensorMLEncoder
AbstractSensorMLEncoder
class to encode OGC SensorML 2.0Modifier and Type | Field and Description |
---|---|
private static Set<EncoderKey> |
ENCODER_KEYS |
private static org.slf4j.Logger |
LOGGER |
private static Map<String,com.google.common.collect.ImmutableMap<String,Set<String>>> |
SUPPORTED_PROCEDURE_DESCRIPTION_FORMATS |
private static Map<ServiceConstants.SupportedTypeKey,Set<String>> |
SUPPORTED_TYPES |
Constructor and Description |
---|
SensorMLEncoderv20() |
Modifier and Type | Method and Description |
---|---|
private void |
addAbstractPhysicalProcessValues(net.opengis.sensorml.x20.AbstractPhysicalProcessType appt,
AbstractPhysicalProcess absPhysicalProcess) |
private void |
addAbstractProcessValues(net.opengis.sensorml.x20.AbstractProcessType apt,
AbstractProcessV20 sosAbstractProcess) |
private void |
addAggregateProcessValues(net.opengis.sensorml.x20.AggregateProcessType apt,
AggregateProcess abstractProcess) |
private void |
addDescribedObjectValues(net.opengis.sensorml.x20.DescribedObjectType dot,
DescribedObject describedObject) |
private void |
addFeatures(net.opengis.sensorml.x20.FeatureListType featureList,
SmlFeatureOfInterest feature) |
private void |
addInput(net.opengis.sensorml.x20.InputListType.Input input,
SmlIo<?> sosSMLIO)
Adds a SOS SWE simple type to a XML SML Input.
|
void |
addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
|
private void |
addNamesToAbstractProcess(net.opengis.sensorml.x20.DescribedObjectType dot,
List<CodeType> names) |
private void |
addOutput(net.opengis.sensorml.x20.OutputListType.Output output,
SmlIo<?> sosSMLIO)
Adds a SOS SWE simple type to a XML SML Output.
|
private void |
addPhysicalComponentValues(net.opengis.sensorml.x20.PhysicalComponentType pct,
PhysicalComponent abstractPhysicalProcess) |
private void |
addPhysicalSystemValues(net.opengis.sensorml.x20.PhysicalSystemType pst,
PhysicalSystem abstractPhysicalProcess) |
private void |
addSimpleProcessValues(net.opengis.sensorml.x20.SimpleProcessType spt,
SimpleProcess abstractProcess) |
private void |
addValuesToXmlObject(org.apache.xmlbeans.XmlObject element,
SosProcedureDescription description) |
private void |
addValueToObservableProperty(net.opengis.sensorml.x20.ObservablePropertyType opt,
SweAbstractDataComponent observableProperty) |
private org.apache.xmlbeans.XmlObject |
checkForAdditionalValues(org.apache.xmlbeans.XmlObject element,
Map<SosConstants.HelperValues,String> additionalValues) |
private List<SmlComponent> |
checkForComponents(AbstractProcess abstractProcess) |
private net.opengis.sensorml.x20.DescribedObjectType.Capabilities |
createCapability(SmlCapabilities capabilities) |
private net.opengis.sensorml.x20.DescribedObjectType.Characteristics[] |
createCharacteristics(List<SmlCharacteristics> smlCharacteristics)
Creates the characteristics section of the SensorML description.
|
private net.opengis.sensorml.x20.ClassifierListPropertyType[] |
createClassification(List<SmlClassifier> classifications)
Creates the classification section of the SensorML description.
|
private net.opengis.sensorml.x20.ComponentListPropertyType |
createComponents(List<SmlComponent> sosComponents)
Creates the components section of the SensorML description.
|
private net.opengis.sensorml.x20.DocumentListType |
createDocument(SmlDocumentation sosDocumentation)
Create a XML Documentation element from SOS documentation
|
protected net.opengis.sensorml.x20.DocumentListPropertyType[] |
createDocumentationArray(List<AbstractSmlDocumentation> sosDocumentation)
Create XML Documentation array from SOS documentations
|
private net.opengis.sensorml.x20.DocumentListType |
createDocumentationList(SmlDocumentationList sosDocumentationList)
Create a XML DocuemntList from SOS documentList
|
private net.opengis.sensorml.x20.AbstractProcessType.FeaturesOfInterest |
createFeatureOfInterest(SmlFeatureOfInterest feature) |
protected net.opengis.sensorml.x20.IdentifierListPropertyType[] |
createIdentification(List<SmlIdentifier> identifications)
Creates the valueentification section of the SensorML description.
|
private net.opengis.sensorml.x20.AbstractProcessType.Inputs |
createInputs(List<SmlIo<?>> inputs)
Creates the inputs section of the SensorML description.
|
private void |
createLocation(net.opengis.sensorml.x20.DescribedObjectType dot,
SmlLocation location)
Creates the location section of the SensorML description.
|
private net.opengis.sensorml.x20.AbstractProcessType.Outputs |
createOutputs(List<SmlIo<?>> sosOutputs)
Creates the outputs section of the SensorML description.
|
private void |
createPosition(net.opengis.sensorml.x20.PositionUnionPropertyType pupt,
SmlPosition position)
Creates the position section of the SensorML description.
|
private net.opengis.sensorml.x20.ProcessMethodType |
createProcessMethod(HasProcessMethod processMethod) |
org.apache.xmlbeans.XmlObject |
encode(Object objectToEncode,
Map<SosConstants.HelperValues,String> additionalValues)
Encodes the specified object with the specified SosConstants.HelperValues
.
|
private org.apache.xmlbeans.XmlObject |
encodeAbstractPhysicalProcess(AbstractPhysicalProcess abstractPhysicalProcess,
Map<SosConstants.HelperValues,String> additionalValues) |
private org.apache.xmlbeans.XmlObject |
encodeAggregateProcess(AggregateProcess abstractProcess,
Map<SosConstants.HelperValues,String> additionalValues) |
private org.apache.xmlbeans.XmlObject |
encodeDescription(SosProcedureDescription description,
Map<SosConstants.HelperValues,String> additionalValues) |
private org.apache.xmlbeans.XmlObject |
encodePhysicalComponent(PhysicalComponent abstractPhysicalProcess,
Map<SosConstants.HelperValues,String> additionalValues) |
private org.apache.xmlbeans.XmlObject |
encodePhysicalSystem(PhysicalSystem abstractPhysicalProcess,
Map<SosConstants.HelperValues,String> additionalValues) |
private org.apache.xmlbeans.XmlObject |
encodeSimpleProcess(SimpleProcess abstractProcess,
Map<SosConstants.HelperValues,String> additionalValues) |
private void |
extendOutputs(AbstractProcess abstractProcess) |
MediaType |
getContentType() |
Set<EncoderKey> |
getEncoderKeyType() |
Set<SchemaLocation> |
getSchemaLocations() |
Set<String> |
getSupportedProcedureDescriptionFormats(String service,
String version)
Get the supported procedure description formats for this
ProcedureEncoder and the specified service and version.
|
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
|
private void |
removeCapability(net.opengis.sensorml.x20.DescribedObjectType dot,
net.opengis.sensorml.x20.DescribedObjectType.Capabilities c) |
addSpecialCapabilities, convertFeaturesToSet, convertOfferingsToMap, convertOfferingsToSet, createCapabilitiesFrom, createCapabilitiesFrom, createComponentsForChildProcedures, createValueNamePairs, getFeaturesFromChild, getOptions, getOutputsFromChilds, getValidOutputName, isIdentical, mergeCapabilities
encode, getConformanceClasses
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConformanceClasses
private static final org.slf4j.Logger LOGGER
private static final Map<ServiceConstants.SupportedTypeKey,Set<String>> SUPPORTED_TYPES
private static final Map<String,com.google.common.collect.ImmutableMap<String,Set<String>>> SUPPORTED_PROCEDURE_DESCRIPTION_FORMATS
private static final Set<EncoderKey> ENCODER_KEYS
public Set<EncoderKey> getEncoderKeyType()
EncoderKey
)public Map<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
Encoder
getSupportedTypes
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
getSupportedTypes
in class AbstractXmlEncoder<Object>
public void addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
Encoder
addNamespacePrefixToMap
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
addNamespacePrefixToMap
in class AbstractXmlEncoder<Object>
public MediaType getContentType()
getContentType
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
getContentType
in class AbstractXmlEncoder<Object>
public Set<SchemaLocation> getSchemaLocations()
getSchemaLocations
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
getSchemaLocations
in class AbstractXmlEncoder<Object>
public Set<String> getSupportedProcedureDescriptionFormats(String service, String version)
ProcedureEncoder
service
- the serviceversion
- the versionpublic org.apache.xmlbeans.XmlObject encode(Object objectToEncode, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport, UnsupportedEncoderInputException
Encoder
objectToEncode
- the object to encodeadditionalValues
- the helper valuesOwsExceptionReport
- if an error occursUnsupportedEncoderInputException
- if the supplied object (or any of it's contents) is not
supported by this encoderprivate org.apache.xmlbeans.XmlObject checkForAdditionalValues(org.apache.xmlbeans.XmlObject element, Map<SosConstants.HelperValues,String> additionalValues)
private void addValuesToXmlObject(org.apache.xmlbeans.XmlObject element, SosProcedureDescription description) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject encodeDescription(SosProcedureDescription description, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject encodeSimpleProcess(SimpleProcess abstractProcess, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private void addSimpleProcessValues(net.opengis.sensorml.x20.SimpleProcessType spt, SimpleProcess abstractProcess) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject encodeAggregateProcess(AggregateProcess abstractProcess, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private void addAggregateProcessValues(net.opengis.sensorml.x20.AggregateProcessType apt, AggregateProcess abstractProcess) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject encodeAbstractPhysicalProcess(AbstractPhysicalProcess abstractPhysicalProcess, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject encodePhysicalComponent(PhysicalComponent abstractPhysicalProcess, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private void addPhysicalComponentValues(net.opengis.sensorml.x20.PhysicalComponentType pct, PhysicalComponent abstractPhysicalProcess) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject encodePhysicalSystem(PhysicalSystem abstractPhysicalProcess, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private void addPhysicalSystemValues(net.opengis.sensorml.x20.PhysicalSystemType pst, PhysicalSystem abstractPhysicalProcess) throws OwsExceptionReport
OwsExceptionReport
private void addDescribedObjectValues(net.opengis.sensorml.x20.DescribedObjectType dot, DescribedObject describedObject) throws OwsExceptionReport
OwsExceptionReport
private void addAbstractProcessValues(net.opengis.sensorml.x20.AbstractProcessType apt, AbstractProcessV20 sosAbstractProcess) throws OwsExceptionReport
OwsExceptionReport
private void addAbstractPhysicalProcessValues(net.opengis.sensorml.x20.AbstractPhysicalProcessType appt, AbstractPhysicalProcess absPhysicalProcess) throws OwsExceptionReport
OwsExceptionReport
private List<SmlComponent> checkForComponents(AbstractProcess abstractProcess) throws CodedException
CodedException
private void addNamesToAbstractProcess(net.opengis.sensorml.x20.DescribedObjectType dot, List<CodeType> names) throws OwsExceptionReport
OwsExceptionReport
private void removeCapability(net.opengis.sensorml.x20.DescribedObjectType dot, net.opengis.sensorml.x20.DescribedObjectType.Capabilities c)
private net.opengis.sensorml.x20.DescribedObjectType.Capabilities createCapability(SmlCapabilities capabilities) throws OwsExceptionReport
OwsExceptionReport
private void extendOutputs(AbstractProcess abstractProcess)
private net.opengis.sensorml.x20.ProcessMethodType createProcessMethod(HasProcessMethod processMethod)
protected net.opengis.sensorml.x20.IdentifierListPropertyType[] createIdentification(List<SmlIdentifier> identifications)
identifications
- SOS valueentificationsprivate net.opengis.sensorml.x20.ClassifierListPropertyType[] createClassification(List<SmlClassifier> classifications)
classifications
- SOS classificationsprivate net.opengis.sensorml.x20.DescribedObjectType.Characteristics[] createCharacteristics(List<SmlCharacteristics> smlCharacteristics) throws OwsExceptionReport
smlCharacteristics
- SOS characteristics listOwsExceptionReport
- If an error occursprotected net.opengis.sensorml.x20.DocumentListPropertyType[] createDocumentationArray(List<AbstractSmlDocumentation> sosDocumentation)
sosDocumentation
- SOS documentation listprivate net.opengis.sensorml.x20.DocumentListType createDocument(SmlDocumentation sosDocumentation)
sosDocumentation
- SOS documentationprivate net.opengis.sensorml.x20.DocumentListType createDocumentationList(SmlDocumentationList sosDocumentationList)
sosDocumentationList
- SOS documentListprivate void createPosition(net.opengis.sensorml.x20.PositionUnionPropertyType pupt, SmlPosition position) throws OwsExceptionReport
pupt
- position
- SOS positionOwsExceptionReport
- if an error occursprivate void createLocation(net.opengis.sensorml.x20.DescribedObjectType dot, SmlLocation location) throws OwsExceptionReport
location
- SOS location representation.OwsExceptionReport
- if an error occursprivate net.opengis.sensorml.x20.AbstractProcessType.Inputs createInputs(List<SmlIo<?>> inputs) throws OwsExceptionReport
inputs
- SOS SWE representation.OwsExceptionReport
- if an error occursprivate net.opengis.sensorml.x20.AbstractProcessType.Outputs createOutputs(List<SmlIo<?>> sosOutputs) throws OwsExceptionReport
sosOutputs
- SOS SWE representation.OwsExceptionReport
private net.opengis.sensorml.x20.AbstractProcessType.FeaturesOfInterest createFeatureOfInterest(SmlFeatureOfInterest feature)
private void addFeatures(net.opengis.sensorml.x20.FeatureListType featureList, SmlFeatureOfInterest feature)
private net.opengis.sensorml.x20.ComponentListPropertyType createComponents(List<SmlComponent> sosComponents) throws OwsExceptionReport
sosComponents
- SOS SWE representation.OwsExceptionReport
private void addInput(net.opengis.sensorml.x20.InputListType.Input input, SmlIo<?> sosSMLIO) throws OwsExceptionReport
input
- SML InputsosSMLIO
- SOS SWE simple type.OwsExceptionReport
private void addValueToObservableProperty(net.opengis.sensorml.x20.ObservablePropertyType opt, SweAbstractDataComponent observableProperty)
private void addOutput(net.opengis.sensorml.x20.OutputListType.Output output, SmlIo<?> sosSMLIO) throws OwsExceptionReport
output
- SML OutputsosSMLIO
- SOS SWE simple type.OwsExceptionReport
Copyright © 2012-2015 52north.org. All Rights Reserved.