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.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.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)
private net.opengis.swe.x101.QualityPropertyType[] createQuality(Collection<SweQuality> quality)
private net.opengis.swe.x101.CategoryDocument.Category createCategory(SweCategory category)
private net.opengis.swe.x101.CountDocument.Count createCount(SweCount count)
private net.opengis.swe.x101.ObservablePropertyDocument.ObservableProperty createObservableProperty(SweObservableProperty observableProperty)
protected net.opengis.swe.x101.QuantityDocument.Quantity createQuantity(SweQuantity quantity)
quantity
- SOS internal representationprotected net.opengis.swe.x101.QuantityRangeDocument.QuantityRange createQuantityRange(SweQuantityRange quantityRange)
private net.opengis.swe.x101.TextDocument.Text createText(SweText text)
text
- SOS internal representationprivate net.opengis.swe.x101.TimeDocument.Time createTime(SweTime time)
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.VectorPropertyType createVectorProperty(SweVector sosSweVector)
private net.opengis.swe.x101.VectorType createVector(List<SweCoordinate<?>> coordinates)
private net.opengis.swe.x101.TimeRangeDocument.TimeRange createTimeRange(SweTimeRange timeRange)
private void addAbstractDataComponentValues(net.opengis.swe.x101.AbstractDataComponentType xbComponent, SweAbstractDataComponent component)
private net.opengis.swe.x101.VectorType.Coordinate createCoordinate(SweCoordinate<?> coordinate)
coordinate
- SOS internal representationprivate net.opengis.swe.x101.VectorType.Coordinate[] createCoordinates(List<SweCoordinate<?>> coordinates)
coordinates
- SOS internal representationprivate 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-2014 52north.org. All Rights Reserved.