public class DBValidate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
alreadyHandle |
Constructor and Description |
---|
DBValidate()
Construct a new validation object
|
DBValidate(DBConnection conn)
Construct a new validation object using a database entity resolver
|
DBValidate(java.lang.String xmlcatalogfile)
Construct a new validation object using an OASIS catalog file
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
main method for testing
|
java.lang.String |
returnErrors()
provide a list of errors from the validation process
|
boolean |
validate(java.lang.String doc)
validate an xml document against its DTD
|
boolean |
validateString(java.lang.String xmldoc)
validate an xml document against its DTD
|
public DBValidate()
public DBValidate(java.lang.String xmlcatalogfile)
public DBValidate(DBConnection conn)
public boolean validate(java.lang.String doc)
doc
- the filename of the document to validatepublic boolean validateString(java.lang.String xmldoc)
xmldoc
- the String containing the xml document to validatepublic java.lang.String returnErrors()
public static void main(java.lang.String[] args)
Usage: java DBValidate
Copyright © 2020 Regents of the University of California. All Rights Reserved.