Class XPathAttributeMatcher

    • Constructor Detail

    • Method Detail

      • match

        public boolean match​(Node testNode,
                             Collection<String> wildcardValues)
        Description copied from interface: IXPathNodeMatcher
        Match the Node and fill wildcard values if node matcher define widcard.
        Parameters:
        testNode - node to test.
        wildcardValues - wildcard values if node matcher define widcard.
        Returns:
      • getAttrName

        public String getAttrName()
        Returns the attribute name to match.
        Returns:
      • getAttrValue

        public String getAttrValue()
        Returns the attribute value to match.
        Returns:
      • hasWildcard

        public boolean hasWildcard()
        Returns true if attrValue is wilcard or false otherwise.
        Returns:
      • getIndexWildcard

        public int getIndexWildcard()
        Returns the wildcard index and -1 if no wildcard is defined.
        Returns:
      • isAny

        public boolean isAny()
        Description copied from interface: IXPathNodeMatcher
        Returns true if matcher is any (Node is every time matched) and false otherwise.
        Returns: