|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fesenmeyer.dbnormalizer.core.configuration.xml.DOMValidator
public class DOMValidator
Class which provides the possibility to validate a DOM-Document against a XML-Schema.
Field Summary | |
---|---|
private Document |
doc
The DOM-Document. |
private String |
schemaFile
The schema's filename. |
Constructor Summary | |
---|---|
DOMValidator(Document doc,
String schemaFile)
Class constructor specifying DOM-Document and the filename of the XML-Schema to be used. |
Method Summary | |
---|---|
void |
validate()
Validates the DOM-Document against the XML-Schema, as specified in the constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String schemaFile
private Document doc
Constructor Detail |
---|
public DOMValidator(Document doc, String schemaFile)
doc
- the DOM-DocumentschemaFile
- the XML-Schema's filenameMethod Detail |
---|
public void validate() throws SAXException, IOException
SAXException
- if the XML-validation fails, e.g. if
the DOM-Document is not well-formed or not valid.
IOException
- (very unlikely to occur)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |