T - Document type that will be validated.public abstract class AbstractXmlValidator<T>
extends java.lang.Object
| Constructor and Description |
|---|
AbstractXmlValidator(java.util.Map<java.lang.String,byte[]> xsdDependencies)
Custom constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.net.URL |
getSchema()
Get the URL of the schema to validate against.
|
void |
validate(java.io.InputStream documentStream)
Validation of XJDF Document based on XJDF Schema.
|
protected void |
validate(javax.xml.transform.Source source)
Validation of XJDF Document based on XJDF Schema.
|
public AbstractXmlValidator(java.util.Map<java.lang.String,byte[]> xsdDependencies)
xsdDependencies - Dependencies for the XSD.public final void validate(java.io.InputStream documentStream)
throws javax.xml.bind.ValidationException
documentStream - Stream to read document from.javax.xml.bind.ValidationException - Is thrown in case the underlying document is invalid.protected final void validate(javax.xml.transform.Source source)
throws javax.xml.bind.ValidationException
source - XML source to validatejavax.xml.bind.ValidationException - Is thrown in case the underlying document is invalid.protected abstract java.net.URL getSchema()