|
||||||||||
| 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 List<String> |
validate(InputStream source,
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 List<String> |
validate(String url,
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 List<String> |
validate(org.apache.xerces.xni.parser.XMLInputSource source,
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 List<String> |
validateSchema(InputStream inputSchema,
String... additionalUris)
Validates the specified XML schema document, additionally in conjunction with more schemas. |
static List<String> |
validateSchema(LSInput inputSchema,
LSInput... additionalSchemas)
Validates the specified XML schema document, additionally in conjunction with more schemas. |
static List<String> |
validateSchema(String inputSchemaUri,
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 List<String> validate(InputStream source,
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 List<String> validate(String url,
String... schemaUris)
throws MalformedURLException,
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)
IOException
MalformedURLException
public static List<String> validate(org.apache.xerces.xni.parser.XMLInputSource source,
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 List<String> validateSchema(String inputSchemaUri,
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 List<String> validateSchema(InputStream inputSchema,
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 List<String> validateSchema(LSInput inputSchema,
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 | |||||||||