org.jboss.metadata.parser.util
Class XMLSchemaValidator
java.lang.Object
org.jboss.metadata.parser.util.XMLSchemaValidator
public class XMLSchemaValidator
- extends Object
Utility class to validate a given XML input stream agains a schema.
Schema object creation is expensive. Therefore they are cached by this class.
- Since:
- 02-Dec-2011
- Author:
- Thomas.Diesler@jboss.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_SCHEMA_VALIDATION
public static final String PROPERTY_SCHEMA_VALIDATION
- See Also:
- Constant Field Values
XMLSchemaValidator
public XMLSchemaValidator(XMLResourceResolver resolver)
XMLSchemaValidator
public XMLSchemaValidator(EntityResolver entityResolver,
LSResourceResolver resourceResolver)
validate
public void validate(String schemaLocation,
InputStream xmlInput)
throws IOException,
SAXException
- Throws:
IOException
SAXException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.