Class XPath2FilterContainer04
java.lang.Object
org.apache.xml.security.utils.ElementProxy
org.apache.xml.security.transforms.params.XPath2FilterContainer04
- All Implemented Interfaces:
TransformParam
Implements the parameters for the XPath Filter v2.0.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
Field _ATT_FILTERprivate static final String
Field _ATT_FILTER_VALUE_INTERSECTprivate static final String
Field _ATT_FILTER_VALUE_SUBTRACTprivate static final String
Field _ATT_FILTER_VALUE_UNIONstatic final String
Field _TAG_XPATH2static final String
Field XPathFiler2NSFields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, LOG
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Constructor XPath2FilterContainer04private
XPath2FilterContainer04
(Document doc, String xpath2filter, String filterType) Constructor XPath2FilterContainer04private
XPath2FilterContainer04
(Element element, String baseURI) Constructor XPath2FilterContainer04 -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Returns the localname of the Elements of the sub-class.final String
Returns the namespace of the Elements of the sub-class.Returns the XPath 2 Filter StringReturns the first Text node which contains information from the XPath 2 Filter String.boolean
Returnstrue
if theFilter
attribute has value "intersect".boolean
Returnstrue
if theFilter
attribute has value "subtract".boolean
isUnion()
Returnstrue
if theFilter
attribute has value "union".static XPath2FilterContainer04
newInstance
(Element element, String baseURI) Creates a XPath2FilterContainer04 from an existing Element; needed for verification.static XPath2FilterContainer04
newInstanceIntersect
(Document doc, String xpath2filter) Creates a new XPath2FilterContainer04 with the filter type "intersect".static XPath2FilterContainer04
newInstanceSubtract
(Document doc, String xpath2filter) Creates a new XPath2FilterContainer04 with the filter type "subtract".static XPath2FilterContainer04
newInstanceUnion
(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 Details
-
_ATT_FILTER
Field _ATT_FILTER- See Also:
-
_ATT_FILTER_VALUE_INTERSECT
Field _ATT_FILTER_VALUE_INTERSECT- See Also:
-
_ATT_FILTER_VALUE_SUBTRACT
Field _ATT_FILTER_VALUE_SUBTRACT- See Also:
-
_ATT_FILTER_VALUE_UNION
Field _ATT_FILTER_VALUE_UNION- See Also:
-
_TAG_XPATH2
Field _TAG_XPATH2- See Also:
-
XPathFilter2NS
Field XPathFiler2NS- See Also:
-
-
Constructor Details
-
XPath2FilterContainer04
private XPath2FilterContainer04()Constructor XPath2FilterContainer04 -
XPath2FilterContainer04
Constructor XPath2FilterContainer04- Parameters:
doc
-xpath2filter
-filterType
-
-
XPath2FilterContainer04
Constructor XPath2FilterContainer04- Parameters:
element
-baseURI
-- Throws:
XMLSecurityException
-
-
Method Details
-
newInstanceIntersect
Creates a new XPath2FilterContainer04 with the filter type "intersect".- Parameters:
doc
-xpath2filter
-- Returns:
- the instance
-
newInstanceSubtract
Creates a new XPath2FilterContainer04 with the filter type "subtract".- Parameters:
doc
-xpath2filter
-- Returns:
- the instance
-
newInstanceUnion
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()Returnstrue
if theFilter
attribute has value "intersect".- Returns:
true
if theFilter
attribute has value "intersect".
-
isSubtract
public boolean isSubtract()Returnstrue
if theFilter
attribute has value "subtract".- Returns:
true
if theFilter
attribute has value "subtract".
-
isUnion
public boolean isUnion()Returnstrue
if theFilter
attribute has value "union".- Returns:
true
if theFilter
attribute has value "union".
-
getXPathFilterStr
Returns the XPath 2 Filter String- Returns:
- the XPath 2 Filter String
-
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.- Returns:
- the first Text node which contains information from the XPath 2 Filter String
-
getBaseLocalName
Returns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalName
in classElementProxy
- Returns:
- the localname of the Elements of the sub-class.
-
getBaseNamespace
Returns the namespace of the Elements of the sub-class.- Specified by:
getBaseNamespace
in classElementProxy
- Returns:
- the namespace of the Elements of the sub-class.
-