org.jopendocument.util
Class Validator
java.lang.Object
org.jopendocument.util.Validator
- Direct Known Subclasses:
- Validator.DTDValidator, Validator.JAXPValidator
public abstract class Validator
- extends Object
Constructor Summary |
protected |
Validator(org.jdom.Document doc)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Validator
protected Validator(org.jdom.Document doc)
getDoc
protected final org.jdom.Document getDoc()
isValid
public abstract String isValid()
- Validate a document, stopping at the first problem.
- Returns:
null
if doc
is valid, a String describing the first problem
otherwise.
validateCompletely
public abstract CollectionMap<String,String> validateCompletely()
- Validate the whole document.
- Returns:
- all problems (with line number) indexed by type, e.g. ERROR unexpected attribute
"style:join-border" => [on line 22:50, on line 14901:290].
Copyright © 2010 jOpenDocument All Rights Reserved.