Class XPath2FilterContainer04
- java.lang.Object
-
- org.apache.xml.security.utils.ElementProxy
-
- org.apache.xml.security.transforms.params.XPath2FilterContainer04
-
- All Implemented Interfaces:
TransformParam
public class XPath2FilterContainer04 extends ElementProxy implements TransformParam
Implements the parameters for the XPath Filter v2.0.- Author:
- $Author: coheigea $
- See Also:
- XPath Filter v2.0 (TR)
-
-
Field Summary
Fields Modifier and Type Field Description static String_TAG_XPATH2Field _TAG_XPATH2static StringXPathFilter2NSField XPathFiler2NS-
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, log
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseLocalName()Returns the localname of the Elements of the sub-class.StringgetBaseNamespace()Returns the namespace of the Elements of the sub-class.StringgetXPathFilterStr()Returns the XPath 2 Filter StringNodegetXPathFilterTextNode()Returns the first Text node which contains information from the XPath 2 Filter String.booleanisIntersect()Returnstrueif theFilterattribute has value "intersect".booleanisSubtract()Returnstrueif theFilterattribute has value "subtract".booleanisUnion()Returnstrueif theFilterattribute has value "union".static XPath2FilterContainer04newInstance(Element element, String baseURI)Creates a XPath2FilterContainer04 from an existing Element; needed for verification.static XPath2FilterContainer04newInstanceIntersect(Document doc, String xpath2filter)Creates a new XPath2FilterContainer04 with the filter type "intersect".static XPath2FilterContainer04newInstanceSubtract(Document doc, String xpath2filter)Creates a new XPath2FilterContainer04 with the filter type "subtract".static XPath2FilterContainer04newInstanceUnion(Document doc, String xpath2filter)Creates a new XPath2FilterContainer04 with the filter type "union".-
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
-
-
-
-
Field Detail
-
_TAG_XPATH2
public static final String _TAG_XPATH2
Field _TAG_XPATH2- See Also:
- Constant Field Values
-
XPathFilter2NS
public static final String XPathFilter2NS
Field XPathFiler2NS- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstanceIntersect
public static XPath2FilterContainer04 newInstanceIntersect(Document doc, String xpath2filter)
Creates a new XPath2FilterContainer04 with the filter type "intersect".- Parameters:
doc-xpath2filter-- Returns:
- the instance
-
newInstanceSubtract
public static XPath2FilterContainer04 newInstanceSubtract(Document doc, String xpath2filter)
Creates a new XPath2FilterContainer04 with the filter type "subtract".- Parameters:
doc-xpath2filter-- Returns:
- the instance
-
newInstanceUnion
public static XPath2FilterContainer04 newInstanceUnion(Document doc, String xpath2filter)
Creates a new XPath2FilterContainer04 with the filter type "union".- Parameters:
doc-xpath2filter-- Returns:
- the instance
-
newInstance
public static XPath2FilterContainer04 newInstance(Element element, String baseURI) throws XMLSecurityException
Creates a XPath2FilterContainer04 from an existing Element; needed for verification.- Parameters:
element-baseURI-- Returns:
- the instance
- Throws:
XMLSecurityException
-
isIntersect
public boolean isIntersect()
Returnstrueif theFilterattribute has value "intersect".- Returns:
trueif theFilterattribute has value "intersect".
-
isSubtract
public boolean isSubtract()
Returnstrueif theFilterattribute has value "subtract".- Returns:
trueif theFilterattribute has value "subtract".
-
isUnion
public boolean isUnion()
Returnstrueif theFilterattribute has value "union".- Returns:
trueif theFilterattribute has value "union".
-
getXPathFilterStr
public String getXPathFilterStr()
Returns the XPath 2 Filter String- Returns:
- the XPath 2 Filter String
-
getXPathFilterTextNode
public Node getXPathFilterTextNode()
Returns the first Text node which contains information from the XPath 2 Filter String. We must use this stupid hook to enable the here() function to work. $todo$ I dunno whether this crashes:here()/ds:Signature[1] - Returns:
- the first Text node which contains information from the XPath 2 Filter String
-
getBaseLocalName
public final String getBaseLocalName()
Description copied from class:ElementProxyReturns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalNamein classElementProxy- Returns:
- the localname of the Elements of the sub-class.
-
getBaseNamespace
public final String getBaseNamespace()
Description copied from class:ElementProxyReturns the namespace of the Elements of the sub-class.- Specified by:
getBaseNamespacein classElementProxy- Returns:
- the namespace of the Elements of the sub-class.
-
-