BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.apache.xalan.xpath.xml
Class ProblemListenerDefault

java.lang.Object
  |
  +--weblogic.apache.xml.utils.DefaultErrorHandler
        |
        +--weblogic.apache.xalan.xpath.xml.ProblemListenerDefault

public class ProblemListenerDefault
extends 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.

This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.


Constructor Summary
ProblemListenerDefault()
           
ProblemListenerDefault(ProblemListener l)
           
 
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)
           
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProblemListenerDefault

public ProblemListenerDefault()

ProblemListenerDefault

public ProblemListenerDefault(ProblemListener l)
Method Detail

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
Specified by:
problem in interface ProblemListener


warning

public void warning(org.xml.sax.SAXParseException exception)
             throws org.xml.sax.SAXException

Overrides:
warning in class DefaultErrorHandler

error

public void error(org.xml.sax.SAXParseException exception)
           throws org.xml.sax.SAXException

Overrides:
error in class DefaultErrorHandler

fatalError

public void fatalError(org.xml.sax.SAXParseException exception)
                throws org.xml.sax.SAXException

Overrides:
fatalError in class DefaultErrorHandler

warning

public void warning(javax.xml.transform.TransformerException exception)
             throws javax.xml.transform.TransformerException

Overrides:
warning in class DefaultErrorHandler

error

public void error(javax.xml.transform.TransformerException exception)
           throws javax.xml.transform.TransformerException

Overrides:
error in class DefaultErrorHandler

fatalError

public void fatalError(javax.xml.transform.TransformerException exception)
                throws javax.xml.transform.TransformerException

Overrides:
fatalError in class DefaultErrorHandler

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.