org.apache.xml.security.transforms.params
Class XPathContainer

java.lang.Object
  |
  +--org.apache.xml.security.utils.ElementProxy
        |
        +--org.apache.xml.security.utils.SignatureElementProxy
              |
              +--org.apache.xml.security.transforms.params.XPathContainer
All Implemented Interfaces:
TransformParam

public class XPathContainer
extends SignatureElementProxy
implements TransformParam

This Object serves both as namespace prefix resolver and as container for the ds:XPath Element. It implements the Element interface and can be used directly in a DOM tree.

Author:
Christian Geuer-Pollmann

Field Summary
 
Fields inherited from class org.apache.xml.security.utils.ElementProxy
_baseURI, _constructionElement, _doc, _state, MODE_CREATE, MODE_DECRYPT, MODE_ENCRYPT, MODE_PROCESS, MODE_SIGN, MODE_UNKNOWN, MODE_VERIFY
 
Constructor Summary
XPathContainer(org.w3c.dom.Document doc)
          Constructor XPathContainer
 
Method Summary
 java.lang.String getBaseLocalName()
          Returns the localname of the Elements of the sub-class.
 java.lang.String getXPath()
          Returns the TEXT value of the ds:XPath Element.
 void setXPath(java.lang.String xpath)
          Sets the TEXT value of the ds:XPath Element.
 
Methods inherited from class org.apache.xml.security.utils.SignatureElementProxy
getBaseNamespace
 
Methods inherited from class org.apache.xml.security.utils.ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addText, addTextElement, createElementForFamily, getBaseURI, getBigIntegerFromChildElement, getBytesFromChildElement, getBytesFromTextChild, getChildElementLocalName, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getTextFromChildElement, getTextFromTextChild, guaranteeThatElementInCorrectSpace, length, setDefaultPrefix, setElement, setXPathNamespaceContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathContainer

public XPathContainer(org.w3c.dom.Document doc)
Constructor XPathContainer

Parameters:
doc -
Method Detail

setXPath

public void setXPath(java.lang.String xpath)
Sets the TEXT value of the ds:XPath Element.

Parameters:
xpath -

getXPath

public java.lang.String getXPath()
Returns the TEXT value of the ds:XPath Element.

Returns:
the TEXT value of the ds:XPath Element.

getBaseLocalName

public java.lang.String getBaseLocalName()
Description copied from class: ElementProxy
Returns the localname of the Elements of the sub-class.

Specified by:
getBaseLocalName in class ElementProxy
Returns:
the localname of the Elements of the sub-class.