public interface XMLValidationSchema
XMLValidationSchemaFactory
instances.
One note about creation of validator instances: since the validation
may be invoked from wide variety of contexts (from parser, from serializer,
from processing pipeline etc), the validation context is abstracted
as ValidationContext
. Instances may make use of additional
knowledge about actual implementing classes if they can safely determine
the type runtime, but should gracefully handle the cases where
the context is created by a caller that is not part of the same
StAX implementation as the validator.
Modifier and Type | Field and Description |
---|---|
static String |
SCHEMA_ID_DTD |
static String |
SCHEMA_ID_RELAXNG |
static String |
SCHEMA_ID_TREX |
static String |
SCHEMA_ID_W3C_SCHEMA |
Modifier and Type | Method and Description |
---|---|
XMLValidator |
createValidator(ValidationContext ctxt) |
String |
getSchemaType()
Returns type of this schema.
|
static final String SCHEMA_ID_DTD
static final String SCHEMA_ID_RELAXNG
static final String SCHEMA_ID_W3C_SCHEMA
static final String SCHEMA_ID_TREX
XMLValidator createValidator(ValidationContext ctxt) throws XMLStreamException
XMLStreamException
String getSchemaType()
SCHEMA_ID_DTD
).Copyright © 2015 fasterxml.com. All Rights Reserved.