@Test public void shouldUseParsingForDTD() { Assert.assertTrue(Validator.forLanguage(Languages.XML_DTD_NS_URI) instanceof ParsingValidator); }
public static Validator forLanguage(String language) { if (!Languages.XML_DTD_NS_URI.equals(language)) { return new JAXPValidator(language); } return new ParsingValidator(Languages.XML_DTD_NS_URI); }
Validator { public static Validator forLanguage(String language) { if (!Languages.XML_DTD_NS_URI.equals(language)) { return new JAXPValidator(language); } return new ParsingValidator(Languages.XML_DTD_NS_URI); } }
Validator { public static Validator forLanguage(String language) { if (!Languages.XML_DTD_NS_URI.equals(language)) { return new JAXPValidator(language); } return new ParsingValidator(Languages.XML_DTD_NS_URI); } protected  Validator(); }
Validator { public static Validator forLanguage(String language) { if (!Languages.XML_DTD_NS_URI.equals(language)) { return new JAXPValidator(language); } return new ParsingValidator(Languages.XML_DTD_NS_URI); } protected  Validator(); void setSchemaSources(Source... s); final void setSchemaSource(Source s); abstract ValidationResult validateSchema(); abstract ValidationResult validateInstance(Source instance); static Validator forLanguage(String language); }
Validator { public static Validator forLanguage(String language) { if (!Languages.XML_DTD_NS_URI.equals(language)) { return new JAXPValidator(language); } return new ParsingValidator(Languages.XML_DTD_NS_URI); } protected  Validator(); void setSchemaSources(Source... s); final void setSchemaSource(Source s); abstract ValidationResult validateSchema(); abstract ValidationResult validateInstance(Source instance); static Validator forLanguage(String language);  }