Modifier and Type | Field and Description |
---|---|
private static Set<DecoderKey> |
DECODER_KEYS |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
SweCommonDecoderV20() |
Modifier and Type | Method and Description |
---|---|
private boolean |
checkParameterTypes(SweAbstractDataComponent elementType,
SweAbstractEncoding encoding) |
Object |
decode(Object element)
Decode a object to another representation.
|
Set<String> |
getConformanceClasses() |
Set<DecoderKey> |
getDecoderKeyTypes() |
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
Get the ServiceConstants.SupportedTypeKey in the case of having only generic
java types, e.g.
|
private SweAbstractDataComponent |
parseAbstractDataComponent(net.opengis.swe.x20.AbstractDataComponentType abstractDataComponent) |
private Object |
parseAbstractDataComponentDocument(net.opengis.swe.x20.AbstractDataComponentDocument abstractDataComponentDoc) |
private List<SweField> |
parseAnyScalarPropertyTypeArray(net.opengis.swe.x20.AnyScalarPropertyType[] fieldArray) |
private SweBoolean |
parseBoolean(net.opengis.swe.x20.BooleanType xbBoolean) |
private SweCategory |
parseCategory(net.opengis.swe.x20.CategoryType xbCategory) |
private List<SweCoordinate<?>> |
parseCoordinates(net.opengis.swe.x20.VectorType.Coordinate[] coordinateArray) |
private SweCount |
parseCount(net.opengis.swe.x20.CountType count) |
private SweCountRange |
parseCountRange(net.opengis.swe.x20.CountRangeType countRange) |
private SweDataArray |
parseDataArray(net.opengis.swe.x20.DataArrayType xbDataArray) |
private SweDataRecord |
parseDataRecord(net.opengis.swe.x20.DataRecordType dataRecord) |
private SweCount |
parseElementCount(net.opengis.swe.x20.CountPropertyType elementCount) |
private SweAbstractEncoding |
parseEncoding(net.opengis.swe.x20.AbstractEncodingType abstractEncodingType) |
private Collection<SweQuality> |
parseQuality(org.apache.xmlbeans.XmlObject[] qualityArray) |
private SweQuantity |
parseQuantity(net.opengis.swe.x20.QuantityType xbQuantity) |
private SweQuantityRange |
parseQuantityRange(net.opengis.swe.x20.QuantityRangeType quantityRange) |
private RangeValue<Double> |
parseRangeValue(List<?> value) |
private SweText |
parseText(net.opengis.swe.x20.TextType xbText) |
private SweTextEncoding |
parseTextEncoding(net.opengis.swe.x20.TextEncodingType textEncoding) |
private SweTime |
parseTime(net.opengis.swe.x20.TimeType xbTime) |
private SweTimeRange |
parseTimeRange(net.opengis.swe.x20.TimeRangeType xbTime) |
private List<List<String>> |
parseValues(SweCount elementCount,
SweAbstractDataComponent elementType,
SweAbstractEncoding encoding,
net.opengis.swe.x20.EncodedValuesPropertyType encodedValuesPropertyType) |
private SweAbstractDataComponent |
parseVector(net.opengis.swe.x20.VectorType vector) |
private static final org.slf4j.Logger LOGGER
private static final Set<DecoderKey> DECODER_KEYS
public Set<DecoderKey> getDecoderKeyTypes()
getDecoderKeyTypes
in interface Decoder<Object,Object>
DecoderKey
) is able to decodepublic Map<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
Decoder
getSupportedTypes
in interface Decoder<Object,Object>
public Set<String> getConformanceClasses()
getConformanceClasses
in interface ConformanceClass
public Object decode(Object element) throws OwsExceptionReport
Decoder
decode
in interface Decoder<Object,Object>
element
- the object to encodeOwsExceptionReport
- if an error occursUnsupportedDecoderInputException
- if the supplied type (or any of it's contents) is not
supported by this decoderprivate SweAbstractDataComponent parseAbstractDataComponent(net.opengis.swe.x20.AbstractDataComponentType abstractDataComponent) throws OwsExceptionReport
OwsExceptionReport
private Object parseAbstractDataComponentDocument(net.opengis.swe.x20.AbstractDataComponentDocument abstractDataComponentDoc) throws OwsExceptionReport
OwsExceptionReport
private SweDataArray parseDataArray(net.opengis.swe.x20.DataArrayType xbDataArray) throws OwsExceptionReport
OwsExceptionReport
private List<List<String>> parseValues(SweCount elementCount, SweAbstractDataComponent elementType, SweAbstractEncoding encoding, net.opengis.swe.x20.EncodedValuesPropertyType encodedValuesPropertyType) throws OwsExceptionReport
OwsExceptionReport
private boolean checkParameterTypes(SweAbstractDataComponent elementType, SweAbstractEncoding encoding) throws OwsExceptionReport
OwsExceptionReport
private SweAbstractEncoding parseEncoding(net.opengis.swe.x20.AbstractEncodingType abstractEncodingType) throws OwsExceptionReport
OwsExceptionReport
private SweDataRecord parseDataRecord(net.opengis.swe.x20.DataRecordType dataRecord) throws OwsExceptionReport
OwsExceptionReport
private SweBoolean parseBoolean(net.opengis.swe.x20.BooleanType xbBoolean) throws OwsExceptionReport
OwsExceptionReport
private SweCategory parseCategory(net.opengis.swe.x20.CategoryType xbCategory) throws OwsExceptionReport
OwsExceptionReport
private SweCount parseCount(net.opengis.swe.x20.CountType count) throws OwsExceptionReport
OwsExceptionReport
private SweCountRange parseCountRange(net.opengis.swe.x20.CountRangeType countRange) throws OwsExceptionReport
OwsExceptionReport
private SweQuantity parseQuantity(net.opengis.swe.x20.QuantityType xbQuantity) throws OwsExceptionReport
OwsExceptionReport
private SweQuantityRange parseQuantityRange(net.opengis.swe.x20.QuantityRangeType quantityRange) throws OwsExceptionReport
OwsExceptionReport
private RangeValue<Double> parseRangeValue(List<?> value) throws CodedException
CodedException
private SweText parseText(net.opengis.swe.x20.TextType xbText)
private SweTime parseTime(net.opengis.swe.x20.TimeType xbTime) throws OwsExceptionReport
OwsExceptionReport
private SweTimeRange parseTimeRange(net.opengis.swe.x20.TimeRangeType xbTime) throws OwsExceptionReport
OwsExceptionReport
private Collection<SweQuality> parseQuality(org.apache.xmlbeans.XmlObject[] qualityArray) throws OwsExceptionReport
OwsExceptionReport
private SweAbstractDataComponent parseVector(net.opengis.swe.x20.VectorType vector) throws OwsExceptionReport
OwsExceptionReport
private List<SweCoordinate<?>> parseCoordinates(net.opengis.swe.x20.VectorType.Coordinate[] coordinateArray) throws OwsExceptionReport
OwsExceptionReport
private List<SweField> parseAnyScalarPropertyTypeArray(net.opengis.swe.x20.AnyScalarPropertyType[] fieldArray) throws OwsExceptionReport
OwsExceptionReport
private SweTextEncoding parseTextEncoding(net.opengis.swe.x20.TextEncodingType textEncoding)
private SweCount parseElementCount(net.opengis.swe.x20.CountPropertyType elementCount) throws OwsExceptionReport
OwsExceptionReport
Copyright © 2012-2015 52north.org. All Rights Reserved.