public abstract class Validator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private javax.xml.transform.Source[] |
sourceLocations |
Modifier | Constructor and Description |
---|---|
protected |
Validator() |
Modifier and Type | Method and Description |
---|---|
static Validator |
forLanguage(java.lang.String language)
Factory that obtains a Validator instance based on the schema language.
|
protected javax.xml.transform.Source[] |
getSchemaSources()
Where to find the schema.
|
void |
setSchemaSource(javax.xml.transform.Source s)
Where to find the schema.
|
void |
setSchemaSources(javax.xml.transform.Source... s)
Where to find the schema.
|
abstract ValidationResult |
validateInstance(javax.xml.transform.Source instance)
Validates an instance against the schema.
|
abstract ValidationResult |
validateSchema()
Validates a schema.
|
public void setSchemaSources(javax.xml.transform.Source... s)
public final void setSchemaSource(javax.xml.transform.Source s)
protected javax.xml.transform.Source[] getSchemaSources()
public abstract ValidationResult validateSchema()
java.lang.UnsupportedOperationException
- if the language's
implementation doesn't support schema validationpublic abstract ValidationResult validateInstance(javax.xml.transform.Source instance)