uk.ac.bham.gloss
Class Validate
java.lang.Object
uk.ac.bham.gloss.Validate
public class Validate
- extends java.lang.Object
Reads and validates an XML file, using GLOSS's own resolver
and error handler to generate the messages.
Copyright Richard Kaye 2007-8 for GLOSS, http://gloss.bham.ac.uk
Usage permitted according to the GPL. No waranty.
Method Summary |
static void |
main(java.lang.String[] args)
main: called from the console. |
static void |
validate(java.lang.String[] files,
Logger logger)
validate: the main method, without any exception trapping. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Validate
public Validate()
main
public static void main(java.lang.String[] args)
- main: called from the console. This reads args and sets flags
according to the options "silent", "tracefiles", and "help"
and then calls validate() with the remaining arguments. It catches
any exceptions, and tries to print them nicely in a helpful way to
the standard error stream.
validate
public static void validate(java.lang.String[] files,
Logger logger)
throws org.xml.sax.SAXException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
javax.xml.transform.TransformerConfigurationException,
GlossException
- validate: the main method, without any exception trapping.
- Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerConfigurationException
GlossException