Class 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 Detail

      • TRANSFORM_XPATHFILTERCHGP

        public static final java.lang.String TRANSFORM_XPATHFILTERCHGP
        See Also:
        Constant Field Values
      • _TAG_INCLUDE_BUT_SEARCH

        private static final java.lang.String _TAG_INCLUDE_BUT_SEARCH
        Field _ATT_FILTER_VALUE_INTERSECT
        See Also:
        Constant Field Values
      • _TAG_EXCLUDE_BUT_SEARCH

        private static final java.lang.String _TAG_EXCLUDE_BUT_SEARCH
        Field _ATT_FILTER_VALUE_SUBTRACT
        See Also:
        Constant Field Values
      • _TAG_EXCLUDE

        private static final java.lang.String _TAG_EXCLUDE
        Field _ATT_FILTER_VALUE_UNION
        See Also:
        Constant Field Values
      • _TAG_XPATHCHGP

        public static final java.lang.String _TAG_XPATHCHGP
        Field _TAG_XPATHCHGP
        See Also:
        Constant Field Values
      • _ATT_INCLUDESLASH

        public static final java.lang.String _ATT_INCLUDESLASH
        Field _ATT_INCLUDESLASH
        See Also:
        Constant Field Values
      • IncludeSlash

        public static final boolean IncludeSlash
        Field IncludeSlash
        See Also:
        Constant Field Values
      • ExcludeSlash

        public static final boolean ExcludeSlash
        Field ExcludeSlash
        See Also:
        Constant Field Values
    • Constructor Detail

      • XPathFilterCHGPContainer

        private XPathFilterCHGPContainer()
        Constructor XPathFilterCHGPContainer
      • XPathFilterCHGPContainer

        private XPathFilterCHGPContainer​(org.w3c.dom.Document doc,
                                         boolean includeSlashPolicy,
                                         java.lang.String includeButSearch,
                                         java.lang.String excludeButSearch,
                                         java.lang.String exclude)
        Constructor XPathFilterCHGPContainer
        Parameters:
        doc -
        includeSlashPolicy -
        includeButSearch -
        excludeButSearch -
        exclude -
      • XPathFilterCHGPContainer

        private XPathFilterCHGPContainer​(org.w3c.dom.Element element,
                                         java.lang.String baseURI)
                                  throws XMLSecurityException
        Constructor XPathFilterCHGPContainer
        Parameters:
        element -
        baseURI -
        Throws:
        XMLSecurityException
    • Method Detail

      • indentXPathText

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

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

        public static XPathFilterCHGPContainer getInstance​(org.w3c.dom.Element element,
                                                           java.lang.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 java.lang.String getXStr​(java.lang.String type)
        Method getXStr
        Parameters:
        type -
        Returns:
        The Xstr
      • getIncludeButSearch

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

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

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

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

        private org.w3c.dom.Node getHereContextNode​(java.lang.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 org.w3c.dom.Text selectNodeText​(org.w3c.dom.Node sibling,
                                                       java.lang.String uri,
                                                       java.lang.String nodeName,
                                                       int number)
      • getHereContextNodeIncludeButSearch

        public org.w3c.dom.Node getHereContextNodeIncludeButSearch()
        Method getHereContextNodeIncludeButSearch
        Returns:
        the string
      • getHereContextNodeExcludeButSearch

        public org.w3c.dom.Node getHereContextNodeExcludeButSearch()
        Method getHereContextNodeExcludeButSearch
        Returns:
        the string
      • getHereContextNodeExclude

        public org.w3c.dom.Node getHereContextNodeExclude()
        Method getHereContextNodeExclude
        Returns:
        the string
      • getBaseLocalName

        public final java.lang.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 java.lang.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.