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

java.lang.Object
  extended by org.apache.xml.security.utils.ElementProxy
      extended by org.apache.xml.security.utils.SignatureElementProxy
          extended by 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, log
 
Constructor Summary
XPathContainer(Document doc)
          Constructor XPathContainer
 
Method Summary
 String getBaseLocalName()
          Returns the localname of the Elements of the sub-class.
 String getXPath()
          Returns the TEXT value of the ds:XPath Element.
 void setXPath(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, addReturnToSelf, addText, addTextElement, appendOther, appendSelf, appendSelf, createElementForFamily, createElementForFamilyLocal, createText, getBaseURI, getBigIntegerFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getFirstChild, getLocalAttribute, getTextFromChildElement, getTextFromTextChild, length, registerDefaultPrefixes, setDefaultPrefix, setDocument, setElement, setElement, setLocalAttribute, setLocalIdAttribute, setXPathNamespaceContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathContainer

public XPathContainer(Document doc)
Constructor XPathContainer

Parameters:
doc -
Method Detail

setXPath

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

Parameters:
xpath -

getXPath

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

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

getBaseLocalName

public 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.


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.