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 org.deegree.commons.xml.XMLAdapter

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

Version:
$Revision: 25749 $, $Date: 2010-08-09 13:34:58 +0200 (Mo, 09. Aug 2010) $
Author:
Oliver Tonnhofer, last edited by: $Author: mschneider $

Field Summary
protected static java.lang.String WCS_PREFIX
          Prefix which is bound to the wcs_100 namespace
protected static org.deegree.commons.xml.NamespaceContext 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(java.lang.String nodeName, org.apache.axiom.om.OMElement requiredElem)
          Check that the requiredElem is not null, throws OWSException otherwise.
protected  void checkRequiredString(java.lang.String nodeName, java.lang.String requiredValue)
          Check that the value is not null, throws OWSException otherwise.
protected  org.deegree.commons.tom.ows.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, 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, 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 java.lang.String WCS_PREFIX
Prefix which is bound to the wcs_100 namespace

See Also:
Constant Field Values

wcsNSContext

protected static final org.deegree.commons.xml.NamespaceContext wcsNSContext
namespace context with wcs ns

Constructor Detail

WCSRequest100XMLAdapter

public WCSRequest100XMLAdapter()
Method Detail

checkRequiredString

protected void checkRequiredString(java.lang.String nodeName,
                                   java.lang.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(java.lang.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 org.deegree.commons.tom.ows.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.