public abstract class AbstractXsdValidator
extends java.lang.Object
| Constructor and Description |
|---|
AbstractXsdValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.xml.transform.stream.StreamSource |
resolveResourcePaths(java.lang.String resourceName)
The method simplifies the search for a resource and returns the
streamsource with the searched source
|
abstract void |
validateAgainstXsd(java.io.File xmlFile,
ValidationResult validationResult)
Validates the given xmlFile with the xsd files and writes violations to
the given validation result
|
public abstract void validateAgainstXsd(java.io.File xmlFile,
ValidationResult validationResult)
throws java.io.IOException,
org.xml.sax.SAXException,
ValidationException
xmlFile - the xml file which should be validatedvalidationResult - the result object of the validationjava.io.IOException - when xmlFile can't be readorg.xml.sax.SAXException - when validation process fails somehowValidationException - thrown if checked file is not well-formed or does not have a valid encodingprotected javax.xml.transform.stream.StreamSource resolveResourcePaths(java.lang.String resourceName)
throws java.io.FileNotFoundException
resourceName - the name of the resource filejava.io.FileNotFoundException - if the resource file doesn't exist there