Class XPathElementMatcher

java.lang.Object
org.eclipse.lemminx.xpath.matcher.AbstractXPathNodeMatcher
org.eclipse.lemminx.xpath.matcher.XPathElementMatcher
All Implemented Interfaces:
IXPathNodeMatcher

public class XPathElementMatcher extends AbstractXPathNodeMatcher
XPath element matcher matches Attr of Element and element name.
  • Field Details

  • Constructor Details

  • Method Details

    • getType

      Description copied from interface: IXPathNodeMatcher
      Returns matcher type.
      Returns:
    • 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:
    • getPrefix

      public String getPrefix()
      Returns the prefix.
      Returns:
    • getLocalName

      public String getLocalName()
      Returns the element name to match.
      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:
    • add

      public void add(XPathAttributeMatcher matcher)
      Add XPath attribute matcher.
      Parameters:
      matcher -