org.milyn.xml
Class XsdValidator
java.lang.Object
org.milyn.xml.XsdValidator
- Direct Known Subclasses:
- EclipseFragmentXMLValidator, XsdDOMValidator
public class XsdValidator
- extends Object
XSD Validator.
- Author:
- tom.fennelly@gmail.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCHEMA_FACTORY
public static final String SCHEMA_FACTORY
XsdValidator
public XsdValidator()
setSchemaFactory
public void setSchemaFactory(SchemaFactory installedSchemaFactory)
setSchemaSourceResolver
public void setSchemaSourceResolver(LSResourceResolver schemaSourceResolver)
throws SAXException
- Throws:
SAXException
setXSDSources
public void setXSDSources(Collection<Source> xsdSources)
throws SAXException
- Set the XSD/Schema Sources.
- Parameters:
xsdSources - The schema sources.
- Throws:
SAXException
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
- Set the validation error handler.
- Parameters:
errorHandler - The validation error handler.
validate
public void validate(Source source)
throws SAXException,
IOException
- Validate the supplied source against the namespaces referenced in it.
- Throws:
SAXException - Validation error.
IOException - Error reading the XSD Sources.
Copyright © 2018. All rights reserved.