com.lotus.xsl
Interface ProblemListener
- All Known Implementing Classes:
- ProblemListenerDefault
- public abstract interface ProblemListener
This is the interface that the XSL processor calls when it
has a problem of some kind, either an error or a warning.
Users should ass the XSLProcessor class to setProblemListener
if they wish an object instance to be called when a problem
event occurs.
Method Summary |
boolean |
problem(short where,
short classification,
com.lotus.xsl.Node styleNode,
com.lotus.xsl.Node sourceNode,
java.lang.String msg,
int lineNo,
int charOffset)
Function that is called when a problem event occurs. |
WARNING
public static final short WARNING
ERROR
public static final short ERROR
XMLPARSER
public static final short XMLPARSER
XSLPROCESSOR
public static final short XSLPROCESSOR
QUERYENGINE
public static final short QUERYENGINE
problem
public boolean problem(short where,
short classification,
com.lotus.xsl.Node styleNode,
com.lotus.xsl.Node sourceNode,
java.lang.String msg,
int lineNo,
int charOffset)
- Function that is called when a problem event occurs.
- Parameters:
where
- Either and XMLPARSER, XSLPROCESSOR, or QUERYENGINE.classification
- Either ERROR or WARNING.styleNode
- The style tree node where the problem
occurred. May be null.sourceNode
- The source tree node where the problem
occurred. May be null.msg
- A string message explaining the problem.lineNo
- The line number where the problem occurred,
if it is known. May be zero.charOffset
- The character offset where the problem,
occurred if it is known. May be zero.- Returns:
- true if the return is an ERROR, in which case
exception will be thrown. Otherwise the processor will
continue to process.