|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uvi.Generator.XMLErrorHandler
private static class Generator.XMLErrorHandler
Contains the methods called by the DocumentBuilder
object
in Generator.generateHTMLFiles()
when an error is encountered with an XML
file during the parsing thereof. The DB object is given an instance of this class
and it calls the appropriate method if it encounters a problem. This object is
also constantly being given the name of the current XML file being processed so it
can provide that information along with the error text.
NOTE: Any reference to "HTML Files" should be taken as a synonym for "PHP Files."
When this documentation was created, only *.html files were used. Later, they were
converted to *.php files to facilitate dynamic content (i.e. comments).
Generator.generateHTMLFiles()
Field Summary | |
---|---|
private static String |
activeFile
The current XML file being processed in the Generator.generateHTMLFiles()
method. |
Constructor Summary | |
---|---|
Generator.XMLErrorHandler()
Constructs a new error handler. |
Method Summary | |
---|---|
void |
error(SAXParseException spe)
Shows any error, along with file name and line number, found by the parser. |
void |
fatalError(SAXParseException spe)
Shows any fatal error, along with file name and line number, found by the parser. |
void |
setActiveFile(String newFile)
Sets the active file to the new file being processed. |
void |
warning(SAXParseException spe)
Shows any warning, along with file name and line number, found by the parser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static String activeFile
Generator.generateHTMLFiles()
method.
Constructor Detail |
---|
Generator.XMLErrorHandler()
Method Detail |
---|
public void setActiveFile(String newFile)
newFile
- the file currently being processedGenerator.generateHTMLFiles()
public void error(SAXParseException spe)
error
in interface ErrorHandler
spe
- the exception generated by the parserpublic void fatalError(SAXParseException spe)
fatalError
in interface ErrorHandler
spe
- the exception generated by the parserpublic void warning(SAXParseException spe)
warning
in interface ErrorHandler
spe
- the exception generated by the parser
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |