public class SensorMLEncoderv101 extends AbstractSensorMLEncoder
Modifier 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 |
---|
SensorMLEncoderv101() |
Modifier and Type | Method and Description |
---|---|
private void |
addAbstractProcessValues(net.opengis.sensorML.x101.AbstractProcessType abstractProcess,
AbstractProcess sosAbstractProcess) |
private void |
addIoComponentPropertyType(net.opengis.sensorML.x101.IoComponentPropertyType ioComponentPropertyType,
SmlIo<?> sosSMLIO)
Adds a SOS SWE simple type to a XML SML IO component.
|
void |
addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
|
private void |
addNamesToAbstractProcess(net.opengis.sensorML.x101.AbstractProcessType abstractProcess,
List<CodeType> names) |
private void |
addProcessModelValues(net.opengis.sensorML.x101.ProcessModelType processModel,
ProcessModel sosProcessModel) |
private void |
addSweSimpleTypeToField(net.opengis.swe.x101.AnyScalarPropertyType xbField,
SweAbstractDataComponent sosSweData)
Adds a SOS SWE simple type to a XML SWE field.
|
private void |
addSystemValues(net.opengis.sensorML.x101.SystemType xbSystem,
System system) |
private net.opengis.sensorML.x101.CapabilitiesDocument.Capabilities |
createCapability(SmlCapabilities capabilities) |
private net.opengis.sensorML.x101.CharacteristicsDocument.Characteristics[] |
createCharacteristics(List<SmlCharacteristics> smlCharacteristics)
Creates the characteristics section of the SensorML description.
|
private net.opengis.sensorML.x101.ClassificationDocument.Classification[] |
createClassification(List<SmlClassifier> classifications)
Creates the classification section of the SensorML description.
|
private net.opengis.sensorML.x101.ComponentsDocument.Components |
createComponents(List<SmlComponent> sosComponents)
Creates the components section of the SensorML description.
|
private net.opengis.sensorML.x101.ContactInfoDocument.ContactInfo |
createContactInfo(SmlResponsibleParty smlRespParty) |
private net.opengis.sensorML.x101.ContactListDocument.ContactList |
createContactList(List<SmlContact> contacts) |
private net.opengis.sensorML.x101.DocumentDocument.Document |
createDocument(SmlDocumentation sosDocumentation)
Create a XML Documentation element from SOS documentation
|
protected net.opengis.sensorML.x101.DocumentationDocument.Documentation[] |
createDocumentationArray(List<AbstractSmlDocumentation> sosDocumentation)
Create XML Documentation array from SOS documentations
|
private net.opengis.sensorML.x101.DocumentListDocument.DocumentList |
createDocumentationList(SmlDocumentationList sosDocumentationList)
Create a XML DocuemntList from SOS documentList
|
protected net.opengis.sensorML.x101.IdentificationDocument.Identification[] |
createIdentification(List<SmlIdentifier> identifications)
Creates the valueentification section of the SensorML description.
|
private net.opengis.sensorML.x101.InputsDocument.Inputs |
createInputs(List<SmlIo<?>> inputs)
Creates the inputs section of the SensorML description.
|
private net.opengis.sensorML.x101.SmlLocation.SmlLocation2 |
createLocation(SmlLocation location)
Creates the location section of the SensorML description.
|
private net.opengis.sensorML.x101.MethodPropertyType |
createMethod(ProcessMethod method) |
private net.opengis.sensorML.x101.OutputsDocument.Outputs |
createOutputs(List<SmlIo<?>> sosOutputs)
Creates the outputs section of the SensorML description.
|
private net.opengis.sensorML.x101.PersonDocument.Person |
createPerson(SmlPerson smlPerson) |
private net.opengis.sensorML.x101.PositionDocument.Position |
createPosition(SmlPosition position)
Creates the position section of the SensorML description.
|
private org.apache.xmlbeans.XmlObject |
createProcessDescription(AbstractProcess sensorDesc) |
private org.apache.xmlbeans.XmlObject |
createResponsibleParty(SmlResponsibleParty smlRespParty) |
private org.apache.xmlbeans.XmlObject |
createSensorDescription(AbstractSensorML sensorDesc)
creates sml:System
|
private org.apache.xmlbeans.XmlObject |
createSensorDescriptionFromObject(AbstractSensorML sensorDesc) |
protected org.apache.xmlbeans.XmlObject |
createSensorDescriptionFromString(AbstractSensorML sensorDesc) |
protected net.opengis.sensorML.x101.SensorMLDocument |
createSensorMLDescription(SensorML smlSensorDesc) |
org.apache.xmlbeans.XmlObject |
encode(Object response,
Map<SosConstants.HelperValues,String> additionalValues)
Encodes the specified object with the specified SosConstants.HelperValues
.
|
private void |
extendOutputs(AbstractProcess abstractProcess) |
MediaType |
getContentType() |
Set<EncoderKey> |
getEncoderKeyType() |
private QName |
getQnameForType(org.apache.xmlbeans.SchemaType type)
Get the QName for the SchemaType
|
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 boolean |
isContactListSetAndContainingElements(net.opengis.sensorML.x101.ContactDocument.Contact contact) |
private boolean |
isContained(net.opengis.sensorML.x101.PersonDocument.Person person,
Set<net.opengis.sensorML.x101.PersonDocument.Person> mergedPersons) |
private boolean |
isContained(net.opengis.sensorML.x101.ResponsiblePartyDocument.ResponsibleParty responsibleParty,
Set<net.opengis.sensorML.x101.ResponsiblePartyDocument.ResponsibleParty> mergedResponsibleParties) |
private net.opengis.sensorML.x101.ContactDocument.Contact[] |
mergeContacts(net.opengis.sensorML.x101.ContactDocument.Contact[] contacts,
net.opengis.sensorML.x101.ContactListDocument.ContactList additionalContactsList) |
private void |
removeCapability(net.opengis.sensorML.x101.AbstractProcessType abstractProcess,
net.opengis.sensorML.x101.CapabilitiesDocument.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 response, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
Encoder
response
- 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 createSensorDescription(AbstractSensorML sensorDesc) throws OwsExceptionReport
sensorDesc
- SensorML encoded system descriptionOwsExceptionReport
protected org.apache.xmlbeans.XmlObject createSensorDescriptionFromString(AbstractSensorML sensorDesc) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject createSensorDescriptionFromObject(AbstractSensorML sensorDesc) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject createProcessDescription(AbstractProcess sensorDesc) throws OwsExceptionReport
OwsExceptionReport
protected net.opengis.sensorML.x101.SensorMLDocument createSensorMLDescription(SensorML smlSensorDesc) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.sensorML.x101.ContactListDocument.ContactList createContactList(List<SmlContact> contacts)
private org.apache.xmlbeans.XmlObject createResponsibleParty(SmlResponsibleParty smlRespParty)
private net.opengis.sensorML.x101.ContactInfoDocument.ContactInfo createContactInfo(SmlResponsibleParty smlRespParty)
private net.opengis.sensorML.x101.PersonDocument.Person createPerson(SmlPerson smlPerson)
private void addAbstractProcessValues(net.opengis.sensorML.x101.AbstractProcessType abstractProcess, AbstractProcess sosAbstractProcess) throws OwsExceptionReport
OwsExceptionReport
private void addNamesToAbstractProcess(net.opengis.sensorML.x101.AbstractProcessType abstractProcess, List<CodeType> names) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.sensorML.x101.ContactDocument.Contact[] mergeContacts(net.opengis.sensorML.x101.ContactDocument.Contact[] contacts, net.opengis.sensorML.x101.ContactListDocument.ContactList additionalContactsList)
private boolean isContained(net.opengis.sensorML.x101.ResponsiblePartyDocument.ResponsibleParty responsibleParty, Set<net.opengis.sensorML.x101.ResponsiblePartyDocument.ResponsibleParty> mergedResponsibleParties)
private boolean isContained(net.opengis.sensorML.x101.PersonDocument.Person person, Set<net.opengis.sensorML.x101.PersonDocument.Person> mergedPersons)
private boolean isContactListSetAndContainingElements(net.opengis.sensorML.x101.ContactDocument.Contact contact)
private void removeCapability(net.opengis.sensorML.x101.AbstractProcessType abstractProcess, net.opengis.sensorML.x101.CapabilitiesDocument.Capabilities c)
private net.opengis.sensorML.x101.CapabilitiesDocument.Capabilities createCapability(SmlCapabilities capabilities) throws OwsExceptionReport
OwsExceptionReport
private void addSystemValues(net.opengis.sensorML.x101.SystemType xbSystem, System system) throws OwsExceptionReport
OwsExceptionReport
private void extendOutputs(AbstractProcess abstractProcess)
private void addProcessModelValues(net.opengis.sensorML.x101.ProcessModelType processModel, ProcessModel sosProcessModel) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.sensorML.x101.MethodPropertyType createMethod(ProcessMethod method) throws CodedException
CodedException
protected net.opengis.sensorML.x101.IdentificationDocument.Identification[] createIdentification(List<SmlIdentifier> identifications)
identifications
- SOS valueentificationsprivate net.opengis.sensorML.x101.ClassificationDocument.Classification[] createClassification(List<SmlClassifier> classifications)
classifications
- SOS classificationsprivate net.opengis.sensorML.x101.CharacteristicsDocument.Characteristics[] createCharacteristics(List<SmlCharacteristics> smlCharacteristics) throws OwsExceptionReport
smlCharacteristics
- SOS characteristics listOwsExceptionReport
- If an error occursprotected net.opengis.sensorML.x101.DocumentationDocument.Documentation[] createDocumentationArray(List<AbstractSmlDocumentation> sosDocumentation)
sosDocumentation
- SOS documentation listprivate net.opengis.sensorML.x101.DocumentDocument.Document createDocument(SmlDocumentation sosDocumentation)
sosDocumentation
- SOS documentationprivate net.opengis.sensorML.x101.DocumentListDocument.DocumentList createDocumentationList(SmlDocumentationList sosDocumentationList)
sosDocumentationList
- SOS documentListprivate net.opengis.sensorML.x101.PositionDocument.Position createPosition(SmlPosition position) throws OwsExceptionReport
position
- SOS positionOwsExceptionReport
- if an error occursprivate net.opengis.sensorML.x101.SmlLocation.SmlLocation2 createLocation(SmlLocation location) throws OwsExceptionReport
location
- SOS location representation.OwsExceptionReport
- if an error occursprivate net.opengis.sensorML.x101.InputsDocument.Inputs createInputs(List<SmlIo<?>> inputs) throws OwsExceptionReport
inputs
- SOS SWE representation.OwsExceptionReport
- if an error occursprivate net.opengis.sensorML.x101.OutputsDocument.Outputs createOutputs(List<SmlIo<?>> sosOutputs) throws OwsExceptionReport
sosOutputs
- SOS SWE representation.OwsExceptionReport
private net.opengis.sensorML.x101.ComponentsDocument.Components createComponents(List<SmlComponent> sosComponents) throws OwsExceptionReport
sosComponents
- SOS SWE representation.OwsExceptionReport
private void addSweSimpleTypeToField(net.opengis.swe.x101.AnyScalarPropertyType xbField, SweAbstractDataComponent sosSweData) throws OwsExceptionReport
xbField
- XML SWE fieldsosSweData
- SOS field element contentOwsExceptionReport
- if an error occursprivate void addIoComponentPropertyType(net.opengis.sensorML.x101.IoComponentPropertyType ioComponentPropertyType, SmlIo<?> sosSMLIO) throws OwsExceptionReport
ioComponentPropertyType
- SML IO componentsosSMLIO
- SOS SWE simple type.OwsExceptionReport
private QName getQnameForType(org.apache.xmlbeans.SchemaType type)
type
- Schema typeCopyright © 2012-2015 52north.org. All Rights Reserved.