org.deegree.services.wcs
Class WCSRequest100XMLAdapter

java.lang.Object
  extended by org.deegree.commons.xml.XMLAdapter
      extended by org.deegree.services.wcs.WCSRequest100XMLAdapter
Direct Known Subclasses:
DescribeCoverage100XMLAdapter, GetCapabilities100XMLAdapter, GetCoverage100XMLAdapter

public class WCSRequest100XMLAdapter
extends XMLAdapter

Base class for all WCS 1.0.0 XMLAdapter. Defines the WCS XML namespace.

Version:
$Revision: 31688 $, $Date: 2011-08-30 15:05:12 +0200 (Tue, 30 Aug 2011) $
Author:
Oliver Tonnhofer, last edited by: $Author: mschneider $

Field Summary
protected static String WCS_PREFIX
          Prefix which is bound to the wcs_100 namespace
protected static NamespaceBindings wcsNSContext
          namespace context with wcs ns
 
Fields inherited from class org.deegree.commons.xml.XMLAdapter
DEFAULT_URL, nsContext, rootElement, XLN_NS
 
Constructor Summary
WCSRequest100XMLAdapter()
           
 
Method Summary
protected  void checkRequiredElement(String nodeName, org.apache.axiom.om.OMElement requiredElem)
          Check that the requiredElem is not null, throws OWSException otherwise.
protected  void checkRequiredString(String nodeName, String requiredValue)
          Check that the value is not null, throws OWSException otherwise.
protected  Version checkVersion(org.apache.axiom.om.OMElement root)
          Checks that the given element contains a version attribute.
 
Methods inherited from class org.deegree.commons.xml.XMLAdapter
evaluateXPath, getElement, getElements, getNamespaceContext, getNode, getNodeAsBigInt, getNodeAsBoolean, getNodeAsDouble, getNodeAsFloat, getNodeAsInt, getNodeAsQName, getNodeAsString, getNodeAsURL, getNodeAsVersion, getNodes, getNodesAsQNames, getNodesAsStrings, getRequiredElement, getRequiredElements, getRequiredNode, getRequiredNodeAsBoolean, getRequiredNodeAsDouble, getRequiredNodeAsFloat, getRequiredNodeAsInteger, getRequiredNodeAsQName, getRequiredNodeAsString, getRequiredNodeAsURL, getRequiredNodeAsVersion, getRequiredNodes, getRootElement, getSchemas, getSystemId, hasSchemas, load, load, load, load, load, load, load, maybeWriteElement, maybeWriteElementNS, parseBoolean, parseDouble, parseFloat, parseInt, parseQName, parseSimpleLink, parseURL, resolve, setRootElement, setSystemId, toString, writeElement, writeElement, writeElement, writeElement, writeElement, writeOptionalAttribute, writeOptionalElement, writeOptionalNSAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WCS_PREFIX

protected static final String WCS_PREFIX
Prefix which is bound to the wcs_100 namespace

See Also:
Constant Field Values

wcsNSContext

protected static final NamespaceBindings wcsNSContext
namespace context with wcs ns

Constructor Detail

WCSRequest100XMLAdapter

public WCSRequest100XMLAdapter()
Method Detail

checkRequiredString

protected void checkRequiredString(String nodeName,
                                   String requiredValue)
                            throws OWSException
Check that the value is not null, throws OWSException otherwise.

Parameters:
nodeName - the name of the required node, used in the exception
requiredValue - the value to check
Throws:
OWSException - if requiredValue is null

checkRequiredElement

protected void checkRequiredElement(String nodeName,
                                    org.apache.axiom.om.OMElement requiredElem)
                             throws OWSException
Check that the requiredElem is not null, throws OWSException otherwise.

Parameters:
nodeName - the name of the required node, used in the exception
requiredElem - the element to check
Throws:
OWSException - if requiredElement is null

checkVersion

protected Version checkVersion(org.apache.axiom.om.OMElement root)
                        throws OWSException
Checks that the given element contains a version attribute.

Parameters:
root -
Returns:
the WCSConstants.VERSION_100 if it was valid.
Throws:
OWSException


Copyright © 2011. All Rights Reserved.