org.apache.xalan.xpath.xml
Class ProblemListenerDefault
java.lang.Object
|
+--org.apache.xml.utils.DefaultErrorHandler
|
+--org.apache.xalan.xpath.xml.ProblemListenerDefault
- public class ProblemListenerDefault
- extends org.apache.xml.utils.DefaultErrorHandler
- implements 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 XSLTEngineImpl class to setProblemListener
if they wish an object instance to be called when a problem
event occurs.
Method Summary |
void |
error(org.xml.sax.SAXParseException exception)
|
void |
error(javax.xml.transform.TransformerException exception)
|
void |
fatalError(org.xml.sax.SAXParseException exception)
|
void |
fatalError(javax.xml.transform.TransformerException exception)
|
org.xml.sax.ErrorHandler |
getErrorHandler()
|
ProblemListener |
getProblemListener()
|
boolean |
message(java.lang.String msg)
Function that is called to issue a message. |
boolean |
problem(short where,
short classification,
java.lang.Object styleNode,
org.w3c.dom.Node sourceNode,
java.lang.String msg,
java.lang.String id,
int lineNo,
int charOffset)
Function that is called when a problem event occurs. |
void |
setProblemListener(ProblemListener l)
|
void |
warning(org.xml.sax.SAXParseException exception)
|
void |
warning(javax.xml.transform.TransformerException exception)
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ProblemListenerDefault
public ProblemListenerDefault()
ProblemListenerDefault
public ProblemListenerDefault(ProblemListener l)
setProblemListener
public void setProblemListener(ProblemListener l)
getErrorHandler
public org.xml.sax.ErrorHandler getErrorHandler()
getProblemListener
public ProblemListener getProblemListener()
message
public boolean message(java.lang.String msg)
- Function that is called to issue a message.
- Specified by:
- message in interface ProblemListener
- Parameters:
msg
- A string message to output.
problem
public boolean problem(short where,
short classification,
java.lang.Object styleNode,
org.w3c.dom.Node sourceNode,
java.lang.String msg,
java.lang.String id,
int lineNo,
int charOffset)
throws org.xml.sax.SAXException
- Description copied from interface: ProblemListener
- Function that is called when a problem event occurs.
- Specified by:
- problem in interface ProblemListener
- Tags copied from interface: ProblemListener
- 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.
warning
public void warning(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
- Overrides:
- warning in class org.apache.xml.utils.DefaultErrorHandler
error
public void error(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
- Overrides:
- error in class org.apache.xml.utils.DefaultErrorHandler
fatalError
public void fatalError(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
- Overrides:
- fatalError in class org.apache.xml.utils.DefaultErrorHandler
warning
public void warning(javax.xml.transform.TransformerException exception)
throws javax.xml.transform.TransformerException
- Overrides:
- warning in class org.apache.xml.utils.DefaultErrorHandler
error
public void error(javax.xml.transform.TransformerException exception)
throws javax.xml.transform.TransformerException
- Overrides:
- error in class org.apache.xml.utils.DefaultErrorHandler
fatalError
public void fatalError(javax.xml.transform.TransformerException exception)
throws javax.xml.transform.TransformerException
- Overrides:
- fatalError in class org.apache.xml.utils.DefaultErrorHandler
Copyright © 2000 Apache XML Project. All Rights Reserved.