public class SweCommonEncoderv20 extends AbstractXmlEncoder<Object>
Modifier and Type | Field and Description |
---|---|
private static Set<String> |
CONFORMANCE_CLASSES |
private static Set<EncoderKey> |
ENCODER_KEYS |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
SweCommonEncoderv20() |
Modifier and Type | Method and Description |
---|---|
void |
addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
|
private org.apache.xmlbeans.XmlObject |
createAbstractDataComponent(SweAbstractDataComponent sosSweAbstractDataComponent,
Map<SosConstants.HelperValues,String> additionalValues) |
private net.opengis.swe.x20.AbstractEncodingType |
createAbstractEncoding(SweAbstractEncoding sosSweAbstractEncoding,
Map<SosConstants.HelperValues,String> additionalValues) |
private net.opengis.swe.x20.BooleanType |
createBoolean(SweBoolean sosElement) |
private net.opengis.swe.x20.CategoryType |
createCategory(SweCategory sosCategory) |
private net.opengis.swe.x20.VectorType.Coordinate |
createCoordinate(SweCoordinate<?> coordinate) |
private net.opengis.swe.x20.CountType |
createCount(SweCount sosCount) |
private net.opengis.swe.x20.DataArrayType |
createDataArray(SweDataArray sosDataArray) |
private net.opengis.swe.x20.DataRecordType |
createDataRecord(SweDataRecord sosDataRecord) |
private net.opengis.swe.x20.DataRecordType.Field |
createField(SweField sweField) |
private net.opengis.swe.x20.AbstractDataComponentType |
createObservableProperty(SweObservableProperty sosSweAbstractDataComponent) |
protected net.opengis.swe.x20.QuantityType |
createQuantity(SweQuantity quantity) |
protected net.opengis.swe.x20.QuantityRangeType |
createQuantityRange(SweQuantityRange quantityRange) |
private net.opengis.swe.x20.AbstractDataComponentType |
createSimpleType(SweAbstractSimpleType<?> sosSimpleType) |
private net.opengis.swe.x20.TextType |
createText(SweText text) |
private net.opengis.swe.x20.TextEncodingType |
createTextEncoding(SweTextEncoding sosTextEncoding) |
private net.opengis.swe.x20.TimeType |
createTime(SweTime sosTime) |
private net.opengis.swe.x20.TimeRangeType |
createTimeRange(SweTimeRange sosTimeRange) |
private net.opengis.swe.x20.UnitReference |
createUnitReference(String uom) |
private net.opengis.swe.x20.UnitReference |
createUnknownUnitReference() |
private org.apache.xmlbeans.XmlString |
createValues(List<List<String>> values,
SweAbstractEncoding encoding) |
private net.opengis.swe.x20.VectorType |
createVector(SweVector sweVector) |
org.apache.xmlbeans.XmlObject |
encode(Object sosSweType,
Map<SosConstants.HelperValues,String> additionalValues)
Encodes the specified object with the specified SosConstants.HelperValues
.
|
Set<String> |
getConformanceClasses() |
Set<EncoderKey> |
getEncoderKeyType() |
Set<SchemaLocation> |
getSchemaLocations() |
private void |
logWarnQualityNotSupported(org.apache.xmlbeans.SchemaType schemaType) |
encode, getContentType, getSupportedTypes
private static final org.slf4j.Logger LOGGER
private static final Set<EncoderKey> ENCODER_KEYS
public Set<EncoderKey> getEncoderKeyType()
EncoderKey
)public Set<String> getConformanceClasses()
getConformanceClasses
in interface ConformanceClass
getConformanceClasses
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 Set<SchemaLocation> getSchemaLocations()
getSchemaLocations
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
getSchemaLocations
in class AbstractXmlEncoder<Object>
public org.apache.xmlbeans.XmlObject encode(Object sosSweType, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
Encoder
sosSweType
- 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 createAbstractDataComponent(SweAbstractDataComponent sosSweAbstractDataComponent, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x20.DataRecordType createDataRecord(SweDataRecord sosDataRecord) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x20.DataArrayType createDataArray(SweDataArray sosDataArray) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlString createValues(List<List<String>> values, SweAbstractEncoding encoding)
private net.opengis.swe.x20.DataRecordType.Field createField(SweField sweField) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x20.AbstractDataComponentType createSimpleType(SweAbstractSimpleType<?> sosSimpleType) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x20.BooleanType createBoolean(SweBoolean sosElement)
private net.opengis.swe.x20.CategoryType createCategory(SweCategory sosCategory)
private net.opengis.swe.x20.CountType createCount(SweCount sosCount)
private net.opengis.swe.x20.AbstractDataComponentType createObservableProperty(SweObservableProperty sosSweAbstractDataComponent)
protected net.opengis.swe.x20.QuantityType createQuantity(SweQuantity quantity)
protected net.opengis.swe.x20.QuantityRangeType createQuantityRange(SweQuantityRange quantityRange)
private net.opengis.swe.x20.TextType createText(SweText text)
private net.opengis.swe.x20.TimeType createTime(SweTime sosTime)
private net.opengis.swe.x20.TimeRangeType createTimeRange(SweTimeRange sosTimeRange)
private net.opengis.swe.x20.VectorType createVector(SweVector sweVector) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x20.VectorType.Coordinate createCoordinate(SweCoordinate<?> coordinate) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x20.AbstractEncodingType createAbstractEncoding(SweAbstractEncoding sosSweAbstractEncoding, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.swe.x20.TextEncodingType createTextEncoding(SweTextEncoding sosTextEncoding)
private net.opengis.swe.x20.UnitReference createUnitReference(String uom)
private net.opengis.swe.x20.UnitReference createUnknownUnitReference()
private void logWarnQualityNotSupported(org.apache.xmlbeans.SchemaType schemaType)
Copyright © 2012-2015 52north.org. All Rights Reserved.