Class AttributeMatcher


  • public class AttributeMatcher
    extends Matcher
    Final evaluation state of a .../@* XPath expression. Matches all attributes of the current element.
    • Field Detail

      • INSTANCE

        public static final Matcher INSTANCE
    • Constructor Detail

      • AttributeMatcher

        public AttributeMatcher()
    • Method Detail

      • matchesAttribute

        public boolean matchesAttribute​(String namespace,
                                        String name)
        Description copied from class: Matcher
        Returns true if the XPath expression matches the named attribute of the element associated with this evaluation state.
        Overrides:
        matchesAttribute in class Matcher
        Parameters:
        namespace - attribute namespace or null
        name - attribute name
        Returns:
        XPath evaluation state for named attribute of this element