|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.nds.dirxml.util.mail.XSLTHandler
Class implementing XSLT interfaces ErrorHandler and MessageHandler to provide better integration with trace, etc.
Constructor Summary | |
XSLTHandler()
Construct an instance without a Trace object. |
Method Summary | |
void |
error(String message)
Receive notification of an XSL error. |
int |
getErrorCount()
Returns the number of errors that have occurred so far. |
int |
getWarningCount()
Returns the number of warnings that have occurred so far. |
String[] |
getWarnings()
Return any warning messages generated during stylesheet processing. |
void |
message(Node message)
Receive notification of an XSLT message |
void |
resetCounts()
Resets the number of errors and warnings to zero. |
void |
warning(String message)
Receive notification of an XSL warning. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XSLTHandler()
Method Detail |
public int getErrorCount()
getErrorCount
in interface ErrorHandler
public int getWarningCount()
getWarningCount
in interface ErrorHandler
public void resetCounts()
resetCounts
in interface ErrorHandler
public void error(String message) throws XSLException
If this method returns normally, the XSL processor will do its best to recover and continue processing. The result document may be incomplete or even empty.
If this method throws an exception, the error is fatal and the XSL processor will abort processing and propagate the exception.
error
in interface ErrorHandler
message
- the error message
XSLException
- if the error is fatalpublic void warning(String message)
XSLException
since warnings are never fatal.
warning
in interface ErrorHandler
message
- the warning messagepublic String[] getWarnings()
public void message(Node message)
message
in interface MessageHandler
message
- the message an XML fragment
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |