public class GetDataAvailabilityXmlDecoder extends AbstractXmlDecoder<GetDataAvailabilityRequest>
Decoder
to handle GetDataAvailabilityRequest
s.Modifier and Type | Field and Description |
---|---|
private static String |
BASE_PATH_GDA |
private static String |
BASE_PATH_SOS |
private static Set<DecoderKey> |
DECODER_KEYS |
private static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
GetDataAvailabilityXmlDecoder()
Constructs a new
GetDataAvailabilityDecoder . |
Modifier and Type | Method and Description |
---|---|
GetDataAvailabilityRequest |
decode(org.apache.xmlbeans.XmlObject xml)
Decode a object to another representation.
|
private static String |
getBasePath(String basePath,
String prefix) |
Set<DecoderKey> |
getDecoderKeyTypes() |
private String |
getPath(String xpathPrefix,
String prefix,
String element)
Create path from values
|
private boolean |
isSweAbstractDataComponent(Object object)
Check if the object is of type
SweAbstractDataComponent |
private SwesExtensions |
parseExtensions(org.apache.xmlbeans.XmlObject xml)
Parse swes:extensions
|
GetDataAvailabilityRequest |
parseGetDataAvailability(org.apache.xmlbeans.XmlObject xml)
Parses a
GetDataAvailabilityRequest . |
private GetDataAvailabilityRequest |
parseGetDataAvailability(org.apache.xmlbeans.XmlObject xml,
String basePath,
String xpathPrefix,
String prefix,
String namespace)
Parse the GetDataAvailability XML request
|
getConformanceClasses, getSupportedTypes
private static final org.slf4j.Logger LOG
private static final String BASE_PATH_SOS
private static final String BASE_PATH_GDA
private static final Set<DecoderKey> DECODER_KEYS
public GetDataAvailabilityXmlDecoder()
GetDataAvailabilityDecoder
.public Set<DecoderKey> getDecoderKeyTypes()
DecoderKey
) is able to decodepublic GetDataAvailabilityRequest decode(org.apache.xmlbeans.XmlObject xml) throws OwsExceptionReport
Decoder
xml
- the object to encodeOwsExceptionReport
- if an error occursUnsupportedDecoderInputException
- if the supplied type (or any of it's contents) is not
supported by this decoderpublic GetDataAvailabilityRequest parseGetDataAvailability(org.apache.xmlbeans.XmlObject xml) throws OwsExceptionReport
GetDataAvailabilityRequest
.xml
- the requestOwsExceptionReport
private GetDataAvailabilityRequest parseGetDataAvailability(org.apache.xmlbeans.XmlObject xml, String basePath, String xpathPrefix, String prefix, String namespace) throws OwsExceptionReport
xml
- GetDataAvailability XML requestbasePath
- XPath base pathxpathPrefix
- XPath prefixprefix
- XML document namespace prefixnamespace
- XML document namespaceGetDataAvailabilityRequest
OwsExceptionReport
- If the document could no be parsedprivate SwesExtensions parseExtensions(org.apache.xmlbeans.XmlObject xml) throws OwsExceptionReport
xml
- swes:extensionSwesExtensions
OwsExceptionReport
- if the swes:extension could not be parsedprivate boolean isSweAbstractDataComponent(Object object)
SweAbstractDataComponent
object
- Object to checktrue
, if the object is of type
SweAbstractDataComponent
Copyright © 2012-2014 52north.org. All Rights Reserved.