|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.xml.validation.XmlValidatorFactory
public abstract class XmlValidatorFactory
Factory for XmlValidator objects, being aware of JAXP 1.3 Validators, and JAXP 1.0 parsing
capababilities. Mainly for internal use within the framework.
XmlValidator implementations to a custom, SAX-based implementation.
XmlValidator| Field Summary | |
|---|---|
static String |
SCHEMA_RELAX_NG
Constant that defines a RELAX NG Schema. |
static String |
SCHEMA_W3C_XML
Constant that defines a W3C XML Schema. |
| Constructor Summary | |
|---|---|
XmlValidatorFactory()
|
|
| Method Summary | |
|---|---|
static XmlValidator |
createValidator(Resource[] schemaResources,
String schemaLanguage)
Create a XmlValidator with the given schema resources and schema language type. |
static XmlValidator |
createValidator(Resource schemaResource,
String schemaLanguage)
Create a XmlValidator with the given schema resource and schema language type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SCHEMA_W3C_XML
public static final String SCHEMA_RELAX_NG
| Constructor Detail |
|---|
public XmlValidatorFactory()
| Method Detail |
|---|
public static XmlValidator createValidator(Resource schemaResource,
String schemaLanguage)
throws IOException
XmlValidator with the given schema resource and schema language type. The schema language must
be one of the SCHEMA_XXX constants.
schemaResource - a resource that locates the schema to validate againstschemaLanguage - the language of the schema
IOException - if the schema resource cannot be read
IllegalArgumentException - if the schema language is not supported
IllegalStateException - if JAXP 1.0 cannot be located
XmlValidationException - if a XmlValidator cannot be createdSCHEMA_RELAX_NG,
SCHEMA_W3C_XML
public static XmlValidator createValidator(Resource[] schemaResources,
String schemaLanguage)
throws IOException
XmlValidator with the given schema resources and schema language type. The schema language must
be one of the SCHEMA_XXX constants.
schemaResources - an array of resource that locate the schemas to validate againstschemaLanguage - the language of the schemas
IOException - if the schema resource cannot be read
IllegalArgumentException - if the schema language is not supported
IllegalStateException - if JAXP 1.0 cannot be located
XmlValidationException - if a XmlValidator cannot be createdSCHEMA_RELAX_NG,
SCHEMA_W3C_XML
|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||