org.xmlmatchers.validation
Class ConformsToSchema

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeDiagnosingMatcher<Source>
          extended by org.xmlmatchers.validation.ConformsToSchema
All Implemented Interfaces:
org.hamcrest.Matcher<Source>, org.hamcrest.SelfDescribing

public class ConformsToSchema
extends org.hamcrest.TypeSafeDiagnosingMatcher<Source>

possible names: adheres, complies, conforms

Author:
David Ehringer

Constructor Summary
ConformsToSchema(Schema schema)
           
 
Method Summary
static org.hamcrest.Matcher<Source> conformsTo(Schema schema)
           
protected  DOMSource convert(Source source)
           
 void describeTo(org.hamcrest.Description description)
           
protected  boolean matchesSafely(Source source, org.hamcrest.Description mismatchDescription)
           
 
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, 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

ConformsToSchema

public ConformsToSchema(Schema schema)
Method Detail

describeTo

public void describeTo(org.hamcrest.Description description)

matchesSafely

protected boolean matchesSafely(Source source,
                                org.hamcrest.Description mismatchDescription)
Specified by:
matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<Source>

convert

protected DOMSource convert(Source source)

conformsTo

public static org.hamcrest.Matcher<Source> conformsTo(Schema schema)


Copyright © 2010-2011. All Rights Reserved.