Package com.saxonica.ee.jaxp
Class SchemaReference
java.lang.Object
javax.xml.validation.Schema
com.saxonica.ee.jaxp.SchemaReference
A reference to a Saxon prepared schema. This is a wrapper around the Saxon PreparedSchema class; the wrapper
implements the JAXP Schema interface and thus allows a Saxon schema to be used via the JAXP validation API.
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaReference
(PreparedSchema schema) Create a SchemaReference to wrap a supplied PreparedSchema object -
Method Summary
Modifier and TypeMethodDescriptionGet the PreparedSchema object wrapped by this SchemaReferenceCreates a newValidatorHandler
for thisSchema
.
-
Constructor Details
-
SchemaReference
Create a SchemaReference to wrap a supplied PreparedSchema object- Parameters:
schema
- the PreparedSchema to be wrapped
-
-
Method Details
-
getPreparedSchema
Get the PreparedSchema object wrapped by this SchemaReference- Returns:
- the PreparedSchema object, which gives access to the schema components
-
newValidator
Create a newValidator
for thisSchema
.A validator enforces/checks the set of constraints this object represents.
- Specified by:
newValidator
in classSchema
- Returns:
- Always return a non-null valid object.
-
newValidatorHandler
Creates a newValidatorHandler
for thisSchema
.- Specified by:
newValidatorHandler
in classSchema
- Returns:
- Always return a non-null valid object.
-