|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.nds.dirxml.util.mail.XSLTHandler
public class 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()
public int getWarningCount()
public void resetCounts()
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.
message
- the error message
XSLException
- if the error is fatalpublic void warning(String message)
XSLException
since warnings are never fatal.
message
- the warning messagepublic String[] getWarnings()
public void message(Node message)
message
- the message an XML fragment
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |