public abstract class ModelValidator extends Object
Constructor and Description |
---|
ModelValidator() |
Modifier and Type | Method and Description |
---|---|
abstract ModelDocument |
getDocument()
Gets the parsed document if it was valid, of null otherwise.
|
Exception |
getError()
Gets the error the was thrown in case of an invalid document.
|
abstract boolean |
validate(File d)
Validate a document represented as a file.
|
abstract boolean |
validate(String d)
Validate a document represented as a string.
|
abstract boolean |
validate(de.unirostock.sems.xmlutils.ds.TreeDocument d)
Validate a document.
|
boolean |
validate(URL url)
Validate a document downladable from a web server.
|
protected Exception error
public abstract boolean validate(de.unirostock.sems.xmlutils.ds.TreeDocument d)
d
- the documentpublic abstract boolean validate(File d)
d
- the file storing a documentpublic abstract boolean validate(String d)
d
- the textual representation of a documentpublic abstract ModelDocument getDocument()
public Exception getError()
public boolean validate(URL url)
url
- the URL to the webserverCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.