Class XPathFilterCHGPContainer

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

public class XPathFilterCHGPContainer extends ElementProxy implements TransformParam
Implements the parameters for a custom Transform which has a better performance than the xfilter2.
  • Field Details

  • Constructor Details

    • XPathFilterCHGPContainer

      private XPathFilterCHGPContainer()
      Constructor XPathFilterCHGPContainer
    • XPathFilterCHGPContainer

      private XPathFilterCHGPContainer(Document doc, boolean includeSlashPolicy, String includeButSearch, String excludeButSearch, String exclude)
      Constructor XPathFilterCHGPContainer
      Parameters:
      doc -
      includeSlashPolicy -
      includeButSearch -
      excludeButSearch -
      exclude -
    • XPathFilterCHGPContainer

      private XPathFilterCHGPContainer(Element element, String baseURI) throws XMLSecurityException
      Constructor XPathFilterCHGPContainer
      Parameters:
      element -
      baseURI -
      Throws:
      XMLSecurityException
  • Method Details

    • indentXPathText

      static String indentXPathText(String xp)
      Method indentXPathText
      Parameters:
      xp -
      Returns:
      the string with enters
    • getInstance

      public static XPathFilterCHGPContainer getInstance(Document doc, boolean includeSlashPolicy, String includeButSearch, String excludeButSearch, String exclude)
      Creates a new XPathFilterCHGPContainer; needed for generation.
      Parameters:
      doc -
      includeSlashPolicy -
      includeButSearch -
      excludeButSearch -
      exclude -
      Returns:
      the created object
    • getInstance

      public static XPathFilterCHGPContainer getInstance(Element element, String baseURI) throws XMLSecurityException
      Creates a XPathFilterCHGPContainer from an existing Element; needed for verification.
      Parameters:
      element -
      baseURI -
      Returns:
      the created object.
      Throws:
      XMLSecurityException
    • getXStr

      private String getXStr(String type)
      Method getXStr
      Parameters:
      type -
      Returns:
      The Xstr
    • getIncludeButSearch

      public String getIncludeButSearch()
      Method getIncludeButSearch
      Returns:
      the string
    • getExcludeButSearch

      public String getExcludeButSearch()
      Method getExcludeButSearch
      Returns:
      the string
    • getExclude

      public String getExclude()
      Method getExclude
      Returns:
      the string
    • getIncludeSlashPolicy

      public boolean getIncludeSlashPolicy()
      Method getIncludeSlashPolicy
      Returns:
      the string
    • getHereContextNode

      private Node getHereContextNode(String type)
      Returns the first Text node which contains information from the XPath 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]
      Parameters:
      type -
      Returns:
      the first Text node which contains information from the XPath 2 Filter String
    • selectNodeText

      private static Text selectNodeText(Node sibling, String uri, String nodeName, int number)
    • getHereContextNodeIncludeButSearch

      public Node getHereContextNodeIncludeButSearch()
      Method getHereContextNodeIncludeButSearch
      Returns:
      the string
    • getHereContextNodeExcludeButSearch

      public Node getHereContextNodeExcludeButSearch()
      Method getHereContextNodeExcludeButSearch
      Returns:
      the string
    • getHereContextNodeExclude

      public Node getHereContextNodeExclude()
      Method getHereContextNodeExclude
      Returns:
      the string
    • getBaseLocalName

      public final String getBaseLocalName()
      Method getBaseLocalName 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.
    • getBaseNamespace

      public final String getBaseNamespace()
      Method getBaseNamespace Returns the namespace of the Elements of the sub-class.
      Specified by:
      getBaseNamespace in class ElementProxy
      Returns:
      the namespace of the Elements of the sub-class.