public class SweCommonEncoderv101 extends AbstractXmlEncoder<Object>
Modifier and Type | Field and Description |
---|---|
private static Set<EncoderKey> |
ENCODER_KEYS |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
SweCommonEncoderv101() |
Modifier and Type | Method and Description |
---|---|
private void |
addAbstractDataComponentValues(net.opengis.swe.x101.AbstractDataComponentType xbComponent,
SweAbstractDataComponent component) |
void |
addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
|
private net.opengis.swe.x101.BlockEncodingPropertyType |
createBlockEncoding(SweAbstractEncoding sosSweAbstractEncoding) |
private net.opengis.swe.x101.BooleanDocument.Boolean |
createBoolean(SweBoolean bool) |
private net.opengis.swe.x101.CategoryDocument.Category |
createCategory(SweCategory category) |
private net.opengis.swe.x101.VectorType.Coordinate |
createCoordinate(SweCoordinate<?> coordinate)
Adds values to SWE coordinates
|
private net.opengis.swe.x101.VectorType.Coordinate[] |
createCoordinates(List<SweCoordinate<?>> coordinates)
Adds values to SWE coordinates
|
private net.opengis.swe.x101.CountDocument.Count |
createCount(SweCount count) |
private net.opengis.swe.x101.DataArrayDocument |
createDataArray(SweDataArray sosDataArray) |
private net.opengis.swe.x101.DataRecordType |
createDataRecord(SweDataRecord sosDataRecord) |
private org.apache.xmlbeans.XmlDateTime |
createDateTime(org.joda.time.DateTime sosDateTime) |
private net.opengis.swe.x101.EnvelopeType |
createEnvelope(SweEnvelope sosSweEnvelope) |
private net.opengis.swe.x101.DataComponentPropertyType |
createField(SweField sweField) |
private net.opengis.swe.x101.AnyScalarPropertyType |
createFieldForSimpleDataRecord(SweField sweField) |
private net.opengis.swe.x101.ObservablePropertyDocument.ObservableProperty |
createObservableProperty(SweObservableProperty observableProperty) |
private net.opengis.swe.x101.QualityPropertyType[] |
createQuality(Collection<SweQuality> quality) |
protected net.opengis.swe.x101.QuantityDocument.Quantity |
createQuantity(SweQuantity quantity)
Adds values to SWE quantity
|
protected net.opengis.swe.x101.QuantityRangeDocument.QuantityRange |
createQuantityRange(SweQuantityRange quantityRange) |
private net.opengis.swe.x101.SimpleDataRecordType |
createSimpleDataRecord(SweSimpleDataRecord simpleDataRecord) |
private net.opengis.swe.x101.AbstractDataComponentType |
createSimpleType(SweAbstractSimpleType<?> sosSimpleType) |
private net.opengis.swe.x101.AbstractDataComponentType |
createSimpleType(SweAbstractSimpleType<?> sosSimpleType,
Map<SosConstants.HelperValues,String> additionalValues) |
private net.opengis.swe.x101.TextDocument.Text |
createText(SweText text)
Adds values to SWE text
|
private net.opengis.swe.x101.BlockEncodingPropertyType |
createTextEncoding(SweTextEncoding sosTextEncoding) |
private net.opengis.swe.x101.TimeDocument.Time |
createTime(SweTime time) |
private org.apache.xmlbeans.XmlObject |
createTimeGeometricPrimitivePropertyType(TimePeriod timePeriod) |
private net.opengis.swe.x101.TimeRangeDocument.TimeRange |
createTimeRange(SweTimeRange timeRange) |
private net.opengis.swe.x101.UomPropertyType |
createUom(String uom) |
private org.apache.xmlbeans.XmlString |
createValues(List<List<String>> values,
SweAbstractEncoding encoding) |
private net.opengis.swe.x101.VectorType |
createVector(List<SweCoordinate<?>> coordinates) |
private net.opengis.swe.x101.VectorPropertyType |
createVectorProperty(SweVector sosSweVector) |
org.apache.xmlbeans.XmlObject |
encode(Object element,
Map<SosConstants.HelperValues,String> additionalValues)
Encodes the specified object with the specified SosConstants.HelperValues
.
|
Set<EncoderKey> |
getEncoderKeyType() |
Set<SchemaLocation> |
getSchemaLocations() |
encode, getConformanceClasses, getContentType, getSupportedTypes
private static final org.slf4j.Logger LOGGER
private static final Set<EncoderKey> ENCODER_KEYS
public Set<EncoderKey> getEncoderKeyType()
EncoderKey
)public void addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
Encoder
addNamespacePrefixToMap
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
addNamespacePrefixToMap
in class AbstractXmlEncoder<Object>
public Set<SchemaLocation> getSchemaLocations()
getSchemaLocations
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
getSchemaLocations
in class AbstractXmlEncoder<Object>
public org.apache.xmlbeans.XmlObject encode(Object element, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
Encoder
element
- 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 net.opengis.swe.x101.AbstractDataComponentType createSimpleType(SweAbstractSimpleType<?> sosSimpleType) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.AbstractDataComponentType createSimpleType(SweAbstractSimpleType<?> sosSimpleType, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.SimpleDataRecordType createSimpleDataRecord(SweSimpleDataRecord simpleDataRecord) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.AnyScalarPropertyType createFieldForSimpleDataRecord(SweField sweField) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.DataComponentPropertyType createField(SweField sweField) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.BooleanDocument.Boolean createBoolean(SweBoolean bool) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.QualityPropertyType[] createQuality(Collection<SweQuality> quality) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.CategoryDocument.Category createCategory(SweCategory category) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.CountDocument.Count createCount(SweCount count) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.ObservablePropertyDocument.ObservableProperty createObservableProperty(SweObservableProperty observableProperty) throws OwsExceptionReport
OwsExceptionReport
protected net.opengis.swe.x101.QuantityDocument.Quantity createQuantity(SweQuantity quantity) throws OwsExceptionReport
quantity
- SOS internal representationOwsExceptionReport
protected net.opengis.swe.x101.QuantityRangeDocument.QuantityRange createQuantityRange(SweQuantityRange quantityRange) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.TextDocument.Text createText(SweText text) throws OwsExceptionReport
text
- SOS internal representationOwsExceptionReport
private net.opengis.swe.x101.TimeDocument.Time createTime(SweTime time) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlDateTime createDateTime(org.joda.time.DateTime sosDateTime)
private net.opengis.swe.x101.EnvelopeType createEnvelope(SweEnvelope sosSweEnvelope) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.VectorPropertyType createVectorProperty(SweVector sosSweVector) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.VectorType createVector(List<SweCoordinate<?>> coordinates) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.TimeRangeDocument.TimeRange createTimeRange(SweTimeRange timeRange) throws OwsExceptionReport
OwsExceptionReport
private void addAbstractDataComponentValues(net.opengis.swe.x101.AbstractDataComponentType xbComponent, SweAbstractDataComponent component) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.VectorType.Coordinate createCoordinate(SweCoordinate<?> coordinate) throws OwsExceptionReport
coordinate
- SOS internal representationOwsExceptionReport
private net.opengis.swe.x101.VectorType.Coordinate[] createCoordinates(List<SweCoordinate<?>> coordinates) throws OwsExceptionReport
coordinates
- SOS internal representationOwsExceptionReport
private net.opengis.swe.x101.DataRecordType createDataRecord(SweDataRecord sosDataRecord) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.DataArrayDocument createDataArray(SweDataArray sosDataArray) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlString createValues(List<List<String>> values, SweAbstractEncoding encoding)
private net.opengis.swe.x101.BlockEncodingPropertyType createBlockEncoding(SweAbstractEncoding sosSweAbstractEncoding) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.BlockEncodingPropertyType createTextEncoding(SweTextEncoding sosTextEncoding)
private org.apache.xmlbeans.XmlObject createTimeGeometricPrimitivePropertyType(TimePeriod timePeriod) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x101.UomPropertyType createUom(String uom)
Copyright © 2012-2015 52north.org. All Rights Reserved.