Class XPath2FilterContainer

java.lang.Object
org.apache.xml.security.utils.ElementProxy
org.apache.xml.security.transforms.params.XPath2FilterContainer
All Implemented Interfaces:
TransformParam

public class XPath2FilterContainer extends ElementProxy implements TransformParam
Implements the parameters for the XPath Filter v2.0.
See Also:
  • Field Details

  • Method Details

    • newInstanceIntersect

      public static XPath2FilterContainer newInstanceIntersect(Document doc, String xpath2filter)
      Creates a new XPath2FilterContainer with the filter type "intersect".
      Parameters:
      doc -
      xpath2filter -
      Returns:
      the filter.
    • newInstanceSubtract

      public static XPath2FilterContainer newInstanceSubtract(Document doc, String xpath2filter)
      Creates a new XPath2FilterContainer with the filter type "subtract".
      Parameters:
      doc -
      xpath2filter -
      Returns:
      the filter.
    • newInstanceUnion

      public static XPath2FilterContainer newInstanceUnion(Document doc, String xpath2filter)
      Creates a new XPath2FilterContainer with the filter type "union".
      Parameters:
      doc -
      xpath2filter -
      Returns:
      the filter
    • newInstances

      public static NodeList newInstances(Document doc, String[][] params)
      Method newInstances
      Parameters:
      doc -
      params -
      Returns:
      the nodelist with the data
    • newInstance

      public static XPath2FilterContainer newInstance(Element element, String baseURI) throws XMLSecurityException
      Creates a XPath2FilterContainer from an existing Element; needed for verification.
      Parameters:
      element -
      baseURI -
      Returns:
      the filter
      Throws:
      XMLSecurityException
    • isIntersect

      public boolean isIntersect()
      Returns true if the Filter attribute has value "intersect".
      Returns:
      true if the Filter attribute has value "intersect".
    • isSubtract

      public boolean isSubtract()
      Returns true if the Filter attribute has value "subtract".
      Returns:
      true if the Filter attribute has value "subtract".
    • isUnion

      public boolean isUnion()
      Returns true if the Filter attribute has value "union".
      Returns:
      true if the Filter attribute 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.
      Returns:
      the first Text node which contains information from the XPath 2 Filter String
    • getBaseLocalName

      public final String getBaseLocalName()
      Method getBaseLocalName
      Specified by:
      getBaseLocalName in class ElementProxy
      Returns:
      the XPATH2 tag
    • getBaseNamespace

      public final String getBaseNamespace()
      Method getBaseNamespace
      Specified by:
      getBaseNamespace in class ElementProxy
      Returns:
      XPATH2 tag namespace