Package org.apache.xalan.transformer
Class MsgMgr
- java.lang.Object
-
- org.apache.xalan.transformer.MsgMgr
-
public class MsgMgr extends java.lang.ObjectThis class will manage error messages, warning messages, and other types of message events.
-
-
Constructor Summary
Constructors Constructor Description MsgMgr(TransformerImpl transformer)Create a message manager object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(javax.xml.transform.SourceLocator srcLctr, java.lang.String msg)Tell the user of an error, and probably throw an exception.voiderror(javax.xml.transform.SourceLocator srcLctr, java.lang.String msg, java.lang.Exception e)Tell the user of an error, and probably throw an exception.voiderror(javax.xml.transform.SourceLocator srcLctr, java.lang.String msg, java.lang.Object[] args)Tell the user of an error, and probably throw an exception.voiderror(javax.xml.transform.SourceLocator srcLctr, java.lang.String msg, java.lang.Object[] args, java.lang.Exception e)Tell the user of an error, and probably throw an exception.voiderror(javax.xml.transform.SourceLocator srcLctr, org.w3c.dom.Node styleNode, org.w3c.dom.Node sourceNode, java.lang.String msg)Tell the user of an error, and probably throw an exception.voiderror(javax.xml.transform.SourceLocator srcLctr, org.w3c.dom.Node styleNode, org.w3c.dom.Node sourceNode, java.lang.String msg, java.lang.Object[] args)Tell the user of an error, and probably throw an exception.voidmessage(javax.xml.transform.SourceLocator srcLctr, java.lang.String msg, boolean terminate)Warn the user of a problem.voidwarn(javax.xml.transform.SourceLocator srcLctr, java.lang.String msg)Warn the user of a problem.voidwarn(javax.xml.transform.SourceLocator srcLctr, java.lang.String msg, java.lang.Object[] args)Warn the user of a problem.voidwarn(javax.xml.transform.SourceLocator srcLctr, org.w3c.dom.Node styleNode, org.w3c.dom.Node sourceNode, java.lang.String msg)Warn the user of a problem.voidwarn(javax.xml.transform.SourceLocator srcLctr, org.w3c.dom.Node styleNode, org.w3c.dom.Node sourceNode, java.lang.String msg, java.lang.Object[] args)Warn the user of a problem.
-
-
-
Constructor Detail
-
MsgMgr
public MsgMgr(TransformerImpl transformer)
Create a message manager object.- Parameters:
transformer- non transformer instance
-
-
Method Detail
-
message
public void message(javax.xml.transform.SourceLocator srcLctr, java.lang.String msg, boolean terminate) throws javax.xml.transform.TransformerExceptionWarn the user of a problem. This is public for access by extensions.- Parameters:
msg- The message text to issueterminate- Flag indicating whether to terminate this process- Throws:
XSLProcessorException- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.javax.xml.transform.TransformerException
-
warn
public void warn(javax.xml.transform.SourceLocator srcLctr, java.lang.String msg) throws javax.xml.transform.TransformerExceptionWarn the user of a problem.- Parameters:
msg- Message text to issue- Throws:
XSLProcessorException- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.javax.xml.transform.TransformerException
-
warn
public void warn(javax.xml.transform.SourceLocator srcLctr, java.lang.String msg, java.lang.Object[] args) throws javax.xml.transform.TransformerExceptionWarn the user of a problem.- Parameters:
msg- Message text to issueargs- Arguments to pass to the message- Throws:
XSLProcessorException- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.javax.xml.transform.TransformerException
-
warn
public void warn(javax.xml.transform.SourceLocator srcLctr, org.w3c.dom.Node styleNode, org.w3c.dom.Node sourceNode, java.lang.String msg) throws javax.xml.transform.TransformerExceptionWarn the user of a problem.- Parameters:
styleNode- Stylesheet nodesourceNode- Source tree nodemsg- Message text to issue- Throws:
XSLProcessorException- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.javax.xml.transform.TransformerException
-
warn
public void warn(javax.xml.transform.SourceLocator srcLctr, org.w3c.dom.Node styleNode, org.w3c.dom.Node sourceNode, java.lang.String msg, java.lang.Object[] args) throws javax.xml.transform.TransformerExceptionWarn the user of a problem.- Parameters:
styleNode- Stylesheet nodesourceNode- Source tree nodemsg- Message text to issueargs- Arguments to pass to the message- Throws:
XSLProcessorException- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.javax.xml.transform.TransformerException
-
error
public void error(javax.xml.transform.SourceLocator srcLctr, java.lang.String msg) throws javax.xml.transform.TransformerExceptionTell the user of an error, and probably throw an exception.- Parameters:
msg- Message text to issue- Throws:
XSLProcessorException- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.javax.xml.transform.TransformerException
-
error
public void error(javax.xml.transform.SourceLocator srcLctr, java.lang.String msg, java.lang.Object[] args) throws javax.xml.transform.TransformerExceptionTell the user of an error, and probably throw an exception.- Parameters:
msg- Message text to issueargs- Arguments to be passed to the message- Throws:
XSLProcessorException- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.javax.xml.transform.TransformerException
-
error
public void error(javax.xml.transform.SourceLocator srcLctr, java.lang.String msg, java.lang.Exception e) throws javax.xml.transform.TransformerExceptionTell the user of an error, and probably throw an exception.- Parameters:
msg- Message text to issuee- Exception to throw- Throws:
XSLProcessorException- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.javax.xml.transform.TransformerException
-
error
public void error(javax.xml.transform.SourceLocator srcLctr, java.lang.String msg, java.lang.Object[] args, java.lang.Exception e) throws javax.xml.transform.TransformerExceptionTell the user of an error, and probably throw an exception.- Parameters:
msg- Message text to issueargs- Arguments to use in messagee- Exception to throw- Throws:
XSLProcessorException- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.javax.xml.transform.TransformerException
-
error
public void error(javax.xml.transform.SourceLocator srcLctr, org.w3c.dom.Node styleNode, org.w3c.dom.Node sourceNode, java.lang.String msg) throws javax.xml.transform.TransformerExceptionTell the user of an error, and probably throw an exception.- Parameters:
styleNode- Stylesheet nodesourceNode- Source tree nodemsg- Message text to issue- Throws:
XSLProcessorException- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.javax.xml.transform.TransformerException
-
error
public void error(javax.xml.transform.SourceLocator srcLctr, org.w3c.dom.Node styleNode, org.w3c.dom.Node sourceNode, java.lang.String msg, java.lang.Object[] args) throws javax.xml.transform.TransformerExceptionTell the user of an error, and probably throw an exception.- Parameters:
styleNode- Stylesheet nodesourceNode- Source tree nodemsg- Message text to issueargs- Arguments to use in message- Throws:
XSLProcessorException- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.javax.xml.transform.TransformerException
-
-