|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.jpdl.xml.SchemaValidationHelper
Validate an XML document using JAXP techniques and an XML Schema. This helper class wraps the processing of a schema to aid in schema validation throughout the product.
Constructor Summary | |
SchemaValidationHelper(java.io.Reader reader,
java.lang.String schemaName,
java.lang.String subject)
Constructs the schema validation helper and prepares it for reading the XML document. |
Method Summary | |
org.dom4j.Document |
getDocument()
Accessor for the DOM model of the document. |
java.util.List |
getProblems()
|
boolean |
isValid()
Performs the schema validation on the document contents in the reader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SchemaValidationHelper(java.io.Reader reader, java.lang.String schemaName, java.lang.String subject)
reader
- input reader containing the contents of the XML documentschemaName
- physical file name of the XML schema to be used for validationsubject
- descriptive name of file we are parsing to put in error messagesMethod Detail |
public boolean isValid()
getProblems()
to retrieve a list of Problem
objects detailing the schema validation errors.public java.util.List getProblems()
List
of Problem
objects detailing any errors
found during schema validationpublic org.dom4j.Document getDocument()
Document
representing the DOM model of the validated XML document
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |