Modifier and Type | Field and Description |
---|---|
private static Set<DecoderKey> |
DECODER_KEYS |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
FesDecoderv20() |
Modifier and Type | Method and Description |
---|---|
Object |
decode(org.apache.xmlbeans.XmlObject xmlObject)
Decode a object to another representation.
|
Set<String> |
getConformanceClasses() |
Set<DecoderKey> |
getDecoderKeyTypes() |
private Set<Filter<?>> |
getFilterPredicates(net.opengis.fes.x20.BinaryLogicOpType binaryLogicOpType)
Get the predicate filters from binary logic filter
|
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
Get the ServiceConstants.SupportedTypeKey in the case of having only generic
java types, e.g.
|
private boolean |
isValueReferenceExpression(org.apache.xmlbeans.XmlObject xmlObject)
Check if the XmlObject is a valueReference element
|
private ComparisonFilter |
parseBinaryComparisonFilter(net.opengis.fes.x20.BinaryComparisonOpType comparisonOpsType) |
private BinaryLogicFilter |
parseBinaryLogicalFilter(net.opengis.fes.x20.BinaryLogicOpType binaryLogicOpType)
parses a single binary logic filter of the requests and returns service
binary logic filter
|
private Collection<? extends Filter<?>> |
parseComparisonFilterArray(net.opengis.fes.x20.ComparisonOpsType[] comparisonOpsArray)
Parse single comparison filter from comparison filter array
|
private ComparisonFilter |
parseComparisonFilterType(net.opengis.fes.x20.ComparisonOpsType comparisonOpsType)
parses a single comparison filter of the requests and returns service
comparison filter
|
private void |
parseExpressions(org.apache.xmlbeans.XmlObject[] expressionArray,
ComparisonFilter comparisonFilter)
Parse XML expression array
|
private Filter<?> |
parseFilterType(net.opengis.fes.x20.FilterType filterType)
Parse XML FilterType element
|
private Collection<? extends Filter<?>> |
parseLogicFilterArray(net.opengis.fes.x20.LogicOpsType[] logicOpsArray)
Parse single logic filter from logic filter array
|
private Filter<?> |
parseLogicFilterType(net.opengis.fes.x20.LogicOpsType logicOpsType)
parses a single logic filter of the requests and returns service logic
filter
|
private ComparisonFilter |
parsePropertyIsBetweenFilter(net.opengis.fes.x20.PropertyIsBetweenType comparisonOpsType)
Parse XML propertyIsBetween element
|
private ComparisonFilter |
parsePropertyIsLikeFilter(net.opengis.fes.x20.PropertyIsLikeType comparisonOpsType)
Parse XML propertyIsLike element
|
private ComparisonFilter |
parsePropertyIsNilFilter(net.opengis.fes.x20.PropertyIsNilType comparisonOpsType)
Parse XML propertyIsNil element
|
private ComparisonFilter |
parsePropertyIsNullFilter(net.opengis.fes.x20.PropertyIsNullType comparisonOpsType)
Parse XML propertyIsNull element
|
private Collection<? extends Filter<?>> |
parseSpatialFilterArray(net.opengis.fes.x20.SpatialOpsType[] spatialOpsArray)
Parse single spatial filter from spatial filter array
|
private SpatialFilter |
parseSpatialFilterType(net.opengis.fes.x20.SpatialOpsType xbSpatialOpsType)
Parses the spatial filter of a request.
|
private Collection<? extends Filter<?>> |
parseTemporalFilterArray(net.opengis.fes.x20.TemporalOpsType[] temporalOpsArray)
Parse single temporal filter from temporal filter array
|
private TemporalFilter |
parseTemporalFilterType(net.opengis.fes.x20.TemporalOpsType xbTemporalOpsType)
parses a single temporal filter of the requests and returns SOS temporal
filter
|
private UnaryLogicFilter |
parseUnaryLogicalFilter(net.opengis.fes.x20.UnaryLogicOpType unaryLogicOpType)
parses a single unary logic filter of the requests and returns service
unary logic filter
|
private String |
parseValueReference(org.apache.xmlbeans.XmlObject xmlObject)
Parse XML valueReference element
|
private static final org.slf4j.Logger LOGGER
private static final Set<DecoderKey> DECODER_KEYS
public Set<DecoderKey> getDecoderKeyTypes()
getDecoderKeyTypes
in interface Decoder<Object,org.apache.xmlbeans.XmlObject>
DecoderKey
) is able to decodepublic Map<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
Decoder
getSupportedTypes
in interface Decoder<Object,org.apache.xmlbeans.XmlObject>
public Set<String> getConformanceClasses()
getConformanceClasses
in interface ConformanceClass
public Object decode(org.apache.xmlbeans.XmlObject xmlObject) throws OwsExceptionReport
Decoder
decode
in interface Decoder<Object,org.apache.xmlbeans.XmlObject>
xmlObject
- the object to encodeOwsExceptionReport
- if an error occursUnsupportedDecoderInputException
- if the supplied type (or any of it's contents) is not
supported by this decoderprivate Filter<?> parseFilterType(net.opengis.fes.x20.FilterType filterType) throws OwsExceptionReport
filterType
- XML element to parseOwsExceptionReport
- If an error occurs or the filter type is not supported!private SpatialFilter parseSpatialFilterType(net.opengis.fes.x20.SpatialOpsType xbSpatialOpsType) throws OwsExceptionReport
xbSpatialOpsType
- XmlBean representing the feature of interest parameter of the
requestOwsExceptionReport
- * if creation of the SpatialFilter failedprivate TemporalFilter parseTemporalFilterType(net.opengis.fes.x20.TemporalOpsType xbTemporalOpsType) throws OwsExceptionReport
xbTemporalOpsType
- XmlObject representing the temporal filterOwsExceptionReport
- * if parsing of the element failedprivate ComparisonFilter parseComparisonFilterType(net.opengis.fes.x20.ComparisonOpsType comparisonOpsType) throws OwsExceptionReport
comparisonOpsType
- XmlObject representing the comparison filterOwsExceptionReport
- if creation of the ComparisonFilter failedprivate ComparisonFilter parseBinaryComparisonFilter(net.opengis.fes.x20.BinaryComparisonOpType comparisonOpsType) throws OwsExceptionReport
OwsExceptionReport
private void parseExpressions(org.apache.xmlbeans.XmlObject[] expressionArray, ComparisonFilter comparisonFilter) throws OwsExceptionReport
expressionArray
- XML expression arraycomparisonFilter
- SOS comparison filterOwsExceptionReport
- if an error occursprivate boolean isValueReferenceExpression(org.apache.xmlbeans.XmlObject xmlObject)
xmlObject
- Element to checktrue
, if XmlObject is a valueReference elementprivate String parseValueReference(org.apache.xmlbeans.XmlObject xmlObject) throws org.apache.xmlbeans.XmlException
xmlObject
- XML valueReferenceorg.apache.xmlbeans.XmlException
- If an error occursprivate ComparisonFilter parsePropertyIsLikeFilter(net.opengis.fes.x20.PropertyIsLikeType comparisonOpsType) throws OwsExceptionReport
comparisonOpsType
- XML propertyIsLike elementOwsExceptionReport
- If an error occurs of the filter is not supported!private ComparisonFilter parsePropertyIsNullFilter(net.opengis.fes.x20.PropertyIsNullType comparisonOpsType) throws OwsExceptionReport
comparisonOpsType
- XML propertyIsNull elementOwsExceptionReport
- If an error occurs of the filter is not supportedprivate ComparisonFilter parsePropertyIsNilFilter(net.opengis.fes.x20.PropertyIsNilType comparisonOpsType) throws OwsExceptionReport
comparisonOpsType
- XML propertyIsNil elementOwsExceptionReport
- If an error occurs of the filter is not supportedprivate ComparisonFilter parsePropertyIsBetweenFilter(net.opengis.fes.x20.PropertyIsBetweenType comparisonOpsType) throws OwsExceptionReport
comparisonOpsType
- XML propertyIsBetween elementOwsExceptionReport
- If an error occurs of the filter is not supportedprivate Filter<?> parseLogicFilterType(net.opengis.fes.x20.LogicOpsType logicOpsType) throws OwsExceptionReport
logicOpsType
- XmlObject representing the logic filterOwsExceptionReport
- if creation of the logic filter failedprivate UnaryLogicFilter parseUnaryLogicalFilter(net.opengis.fes.x20.UnaryLogicOpType unaryLogicOpType) throws OwsExceptionReport
unaryLogicOpType
- XmlObject representing the unary logic filterOwsExceptionReport
- if creation of the UnaryLogicFilter failedprivate BinaryLogicFilter parseBinaryLogicalFilter(net.opengis.fes.x20.BinaryLogicOpType binaryLogicOpType) throws OwsExceptionReport
binaryLogicOpType
- XmlObject representing the binary logic filterOwsExceptionReport
- if creation of the BinaryLogicFilter failed or filter size is
less than twoprivate Set<Filter<?>> getFilterPredicates(net.opengis.fes.x20.BinaryLogicOpType binaryLogicOpType) throws OwsExceptionReport
binaryLogicOpType
- XmlObject representing the binary logic filterOwsExceptionReport
- if creation of the predicate filters failedprivate Collection<? extends Filter<?>> parseComparisonFilterArray(net.opengis.fes.x20.ComparisonOpsType[] comparisonOpsArray) throws OwsExceptionReport
comparisonOpsArray
- XmlBeans comparison filter arrayOwsExceptionReport
- if creation of the comparison filters failedprivate Collection<? extends Filter<?>> parseLogicFilterArray(net.opengis.fes.x20.LogicOpsType[] logicOpsArray) throws OwsExceptionReport
logicOpsArray
- XmlBeans logic filter arrayOwsExceptionReport
- if creation of the logic filters failedprivate Collection<? extends Filter<?>> parseSpatialFilterArray(net.opengis.fes.x20.SpatialOpsType[] spatialOpsArray) throws OwsExceptionReport
spatialOpsArray
- XmlBeans spatial filter arrayOwsExceptionReport
- if creation of the spatial filters failedprivate Collection<? extends Filter<?>> parseTemporalFilterArray(net.opengis.fes.x20.TemporalOpsType[] temporalOpsArray) throws OwsExceptionReport
temporalOpsArray
- XmlBeans temporal filter arrayOwsExceptionReport
- if creation of the temporal filters failedCopyright © 2012-2015 52north.org. All Rights Reserved.