Class XPathMatcher<T>

  • Type Parameters:
    T - Type of param
    All Implemented Interfaces:
    org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing

    public final class XPathMatcher<T>
    extends org.hamcrest.TypeSafeMatcher<T>
    Matcher of XPath against a plain string.

    Objects of this class are immutable and thread-safe.

    • Constructor Detail

      • XPathMatcher

        public XPathMatcher​(String query,
                            NamespaceContext ctx)
        Public ctor.
        query - The query
        ctx - The context
    • Method Detail

      • matchesSafely

        public boolean matchesSafely​(T input)
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeMatcher<T>
      • describeTo

        public void describeTo​(org.hamcrest.Description description)