org.xmlmatchers.xpath
Class HasXPath

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<Source>
          extended by org.xmlmatchers.xpath.HasXPath
Type Parameters:
T - The type to execute the XPath against
All Implemented Interfaces:
org.hamcrest.Matcher<Source>, org.hamcrest.SelfDescribing

public class HasXPath
extends org.hamcrest.TypeSafeMatcher<Source>

Author:
David Ehringer

Constructor Summary
protected HasXPath(String xPathExpression)
           
  HasXPath(String xPathExpression, org.hamcrest.Matcher<?> valueMatcher, NamespaceContext namespaceContext, XpathReturnType<?> xPathReturnType)
           
protected HasXPath(String xPathExpression, org.hamcrest.Matcher<? super String> valueMatcher, NamespaceContext namespaceContext)
           
 
Method Summary
 void describeTo(org.hamcrest.Description description)
           
static org.hamcrest.Matcher<Source> hasXPath(String xPath)
           
static org.hamcrest.Matcher<Source> hasXPath(String xPath, org.hamcrest.Matcher<? super String> valueMatcher)
           
static org.hamcrest.Matcher<Source> hasXPath(String xPath, org.hamcrest.Matcher<? super String> valueMatcher, NamespaceContext namespaceContext)
           
static org.hamcrest.Matcher<Source> hasXPath(String xPath, NamespaceContext namespaceContext)
           
static org.hamcrest.Matcher<Source> hasXPath(String xPath, NamespaceContext namespaceContext, org.hamcrest.Matcher<? super String> valueMatcher)
           
static
<T> org.hamcrest.Matcher<Source>
hasXPath(String xPath, NamespaceContext namespaceContext, XpathReturnType<? super T> xpathReturnType, org.hamcrest.Matcher<? super T> valueMatcher)
           
static
<T> org.hamcrest.Matcher<Source>
hasXPath(String xPath, XpathReturnType<? super T> xpathReturnType, org.hamcrest.Matcher<? super T> valueMatcher)
           
 boolean matchesSafely(Source source)
           
 
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matches
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HasXPath

protected HasXPath(String xPathExpression)

HasXPath

protected HasXPath(String xPathExpression,
                   org.hamcrest.Matcher<? super String> valueMatcher,
                   NamespaceContext namespaceContext)

HasXPath

public HasXPath(String xPathExpression,
                org.hamcrest.Matcher<?> valueMatcher,
                NamespaceContext namespaceContext,
                XpathReturnType<?> xPathReturnType)
Method Detail

describeTo

public void describeTo(org.hamcrest.Description description)

matchesSafely

public boolean matchesSafely(Source source)
Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<Source>

hasXPath

public static org.hamcrest.Matcher<Source> hasXPath(String xPath)

hasXPath

public static org.hamcrest.Matcher<Source> hasXPath(String xPath,
                                                    NamespaceContext namespaceContext)

hasXPath

public static org.hamcrest.Matcher<Source> hasXPath(String xPath,
                                                    org.hamcrest.Matcher<? super String> valueMatcher)

hasXPath

public static org.hamcrest.Matcher<Source> hasXPath(String xPath,
                                                    NamespaceContext namespaceContext,
                                                    org.hamcrest.Matcher<? super String> valueMatcher)

hasXPath

public static <T> org.hamcrest.Matcher<Source> hasXPath(String xPath,
                                                        XpathReturnType<? super T> xpathReturnType,
                                                        org.hamcrest.Matcher<? super T> valueMatcher)

hasXPath

public static <T> org.hamcrest.Matcher<Source> hasXPath(String xPath,
                                                        NamespaceContext namespaceContext,
                                                        XpathReturnType<? super T> xpathReturnType,
                                                        org.hamcrest.Matcher<? super T> valueMatcher)

hasXPath

public static org.hamcrest.Matcher<Source> hasXPath(String xPath,
                                                    org.hamcrest.Matcher<? super String> valueMatcher,
                                                    NamespaceContext namespaceContext)


Copyright © 2010-2011. All Rights Reserved.