|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.commons.xml.schema.SchemaValidator
public class SchemaValidator
Provides utility methods for the easy validation of XML instance documents against XML schemas and for the validation of XML schema documents.
xsi:schemaLocation attribute of the document or may be
explicitly specified. The validator uses the RedirectingEntityResolver, so OGC core schemas are not fetched
over the network, but loaded from a local copy.
RedirectingEntityResolver, so OGC core schemas are not fetched over the network, but
loaded from a local copy.
| Constructor Summary | |
|---|---|
SchemaValidator()
|
|
| Method Summary | |
|---|---|
static java.util.List<java.lang.String> |
validate(java.io.InputStream source,
java.lang.String... schemaUris)
Validates the specified XML instance document according to the contained schema references ( xsi:schemaLocation attribute) and/or to the explicitly specified schema references. |
static java.util.List<java.lang.String> |
validate(java.lang.String url,
java.lang.String... schemaUris)
Validates the specified XML instance document according to the contained schema references ( xsi:schemaLocation attribute) and/or to the explicitly specified schema references. |
static java.util.List<java.lang.String> |
validate(org.apache.xerces.xni.parser.XMLInputSource source,
java.lang.String... schemaUris)
Validates the specified XML instance document according to the contained schema references ( xsi:schemaLocation attribute) and/or to explicitly specified schema references. |
static java.util.List<java.lang.String> |
validateSchema(java.io.InputStream inputSchema,
java.lang.String... additionalUris)
Validates the specified XML schema document, additionally in conjunction with more schemas. |
static java.util.List<java.lang.String> |
validateSchema(org.w3c.dom.ls.LSInput inputSchema,
org.w3c.dom.ls.LSInput... additionalSchemas)
Validates the specified XML schema document, additionally in conjunction with more schemas. |
static java.util.List<java.lang.String> |
validateSchema(java.lang.String inputSchemaUri,
java.lang.String... additionalUris)
Validates the specified XML schema document, additionally in conjunction with more schemas. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaValidator()
| Method Detail |
|---|
public static java.util.List<java.lang.String> validate(java.io.InputStream source,
java.lang.String... schemaUris)
xsi:schemaLocation attribute) and/or to the explicitly specified schema references.
source - provides the XML document to be validated, must not be nullschemaUris - URIs of schema documents to be considered, can be null (only the xsi:schemaLocation
attribute is considered then)
public static java.util.List<java.lang.String> validate(java.lang.String url,
java.lang.String... schemaUris)
throws java.net.MalformedURLException,
java.io.IOException
xsi:schemaLocation attribute) and/or to the explicitly specified schema references.
url - provides the XML document to be validated, must not be nullschemaUris - URIs of schema documents to be considered, can be null (only the xsi:schemaLocation
attribute is considered then)
java.io.IOException
java.net.MalformedURLException
public static java.util.List<java.lang.String> validate(org.apache.xerces.xni.parser.XMLInputSource source,
java.lang.String... schemaUris)
xsi:schemaLocation attribute) and/or to explicitly specified schema references.
source - provides the document to be validated, must not be nullschemaUris - URIs of schema documents to be considered, can be null (only the xsi:schemaLocation
attribute is considered then)
public static java.util.List<java.lang.String> validateSchema(java.lang.String inputSchemaUri,
java.lang.String... additionalUris)
inputSchemaUri - provides the XML schema document to be validated, must not be nulladditionalUris - additional schema documents to be considered, can be null
public static java.util.List<java.lang.String> validateSchema(java.io.InputStream inputSchema,
java.lang.String... additionalUris)
inputSchema - provides the XML schema document to be validated, must not be nulladditionalUris - additional schema documents to be considered, can be null
public static java.util.List<java.lang.String> validateSchema(org.w3c.dom.ls.LSInput inputSchema,
org.w3c.dom.ls.LSInput... additionalSchemas)
inputSchema - provides the XML schema document to be validated, must not be nulladditionalSchemas - additional schema documents to be considered, can be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||