Class NamedAttributeMatcher

  • public class NamedAttributeMatcher
    extends Matcher
    Final evaluation state of a .../@name XPath expression. Matches the named attributes of the current element.
    • Constructor Detail

      • NamedAttributeMatcher

        public NamedAttributeMatcher​(String namespace,
                                     String name)
    • 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.
        matchesAttribute in class Matcher
        namespace - attribute namespace or null
        name - attribute name
        XPath evaluation state for named attribute of this element