congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
TransformerImpl.getErrorListener
Code IndexAdd Tabnine to your IDE (free)

How to use
getErrorListener
method
in
org.apache.xalan.transformer.TransformerImpl

Best Java code snippets using org.apache.xalan.transformer.TransformerImpl.getErrorListener (Showing top 20 results out of 315)

origin: robovm/robovm

/**
 * Warn the user of a problem.
 *
 * @param styleNode Stylesheet node
 * @param sourceNode Source tree node
 * @param msg Message text to issue
 * @param args 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.
 *
 * @throws TransformerException
 * @xsl.usage internal
 */
public void warn(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg, Object args[])
    throws TransformerException
{
 String formattedMsg = XSLMessages.createWarning(msg, args);
 ErrorListener errHandler = m_transformer.getErrorListener();
 if (null != errHandler)
  errHandler.warning(new TransformerException(formattedMsg, srcLctr));
 else
  System.out.println(formattedMsg);
}
origin: xalan/xalan

/**
 * Warn the user of a problem.
 *
 * @param styleNode Stylesheet node
 * @param sourceNode Source tree node
 * @param msg Message text to issue
 * @param args 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.
 *
 * @throws TransformerException
 * @xsl.usage internal
 */
public void warn(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg, Object args[])
    throws TransformerException
{
 String formattedMsg = XSLMessages.createWarning(msg, args);
 ErrorListener errHandler = m_transformer.getErrorListener();
 if (null != errHandler)
  errHandler.warning(new TransformerException(formattedMsg, srcLctr));
 else
  System.out.println(formattedMsg);
}
origin: robovm/robovm

/**
 * Warn the user of a problem.
 * This is public for access by extensions.
 *
 * @param msg The message text to issue
 * @param terminate 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.
 *
 * @throws TransformerException
 */
public void message(SourceLocator srcLctr, String msg, boolean terminate) throws TransformerException
{
 ErrorListener errHandler = m_transformer.getErrorListener();
 if (null != errHandler)
 {
  errHandler.warning(new TransformerException(msg, srcLctr));
 }
 else
 {
  if (terminate)
   throw new TransformerException(msg, srcLctr);
  else
   System.out.println(msg);
 }
}
origin: xalan/xalan

/**
 * Warn the user of a problem.
 * This is public for access by extensions.
 *
 * @param msg The message text to issue
 * @param terminate 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.
 *
 * @throws TransformerException
 */
public void message(SourceLocator srcLctr, String msg, boolean terminate) throws TransformerException
{
 ErrorListener errHandler = m_transformer.getErrorListener();
 if (null != errHandler)
 {
  errHandler.warning(new TransformerException(msg, srcLctr));
 }
 else
 {
  if (terminate)
   throw new TransformerException(msg, srcLctr);
  else
   System.out.println(msg);
 }
}
origin: robovm/robovm

/**
 * Execute an unknown element.
 * Execute fallback if fallback child exists or do nothing
 *
 * @param transformer non-null reference to the the current transform-time state.
 *
 * @throws TransformerException
 */
public void execute(TransformerImpl transformer)
     throws TransformerException
{
 try {
   if (hasFallbackChildren()) {
     executeFallbacks(transformer);
   } else {
     // do nothing
   }
   
 } catch (TransformerException e) {
   transformer.getErrorListener().fatalError(e);
 }
}
origin: robovm/robovm

javax.xml.transform.ErrorListener errorListener = m_transformer.getErrorListener();
if(errorListener instanceof ErrorHandler)
origin: xalan/xalan

javax.xml.transform.ErrorListener errorListener = m_transformer.getErrorListener();
if(errorListener instanceof ErrorHandler)
origin: robovm/robovm

/**
 * Tell the user of an error, and probably throw an
 * exception.
 *
 * @param msg Message text to issue
 * @param args Arguments to use in message
 * @param e Exception to throw
 * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide
 * the error condition is severe enough to halt processing.
 *
 * @throws TransformerException
 * @xsl.usage internal
 */
public void error(SourceLocator srcLctr, String msg, Object args[], Exception e) throws TransformerException
{
 //msg  = (null == msg) ? XSLTErrorResources.ER_PROCESSOR_ERROR : msg;
 String formattedMsg = XSLMessages.createMessage(msg, args);
 // Locator locator = m_stylesheetLocatorStack.isEmpty()
 //                   ? null :
 //                    ((Locator)m_stylesheetLocatorStack.peek());
 // Locator locator = null;
 ErrorListener errHandler = m_transformer.getErrorListener();
 if (null != errHandler)
  errHandler.fatalError(new TransformerException(formattedMsg, srcLctr));
 else
  throw new TransformerException(formattedMsg, srcLctr);
}
origin: robovm/robovm

ErrorListener errHandler = m_transformer.getErrorListener();
origin: xalan/xalan

/**
 * Tell the user of an error, and probably throw an
 * exception.
 *
 * @param msg Message text to issue
 * @param args Arguments to use in message
 * @param e Exception to throw
 * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide
 * the error condition is severe enough to halt processing.
 *
 * @throws TransformerException
 * @xsl.usage internal
 */
public void error(SourceLocator srcLctr, String msg, Object args[], Exception e) throws TransformerException
{
 //msg  = (null == msg) ? XSLTErrorResources.ER_PROCESSOR_ERROR : msg;
 String formattedMsg = XSLMessages.createMessage(msg, args);
 // Locator locator = m_stylesheetLocatorStack.isEmpty()
 //                   ? null :
 //                    ((Locator)m_stylesheetLocatorStack.peek());
 // Locator locator = null;
 ErrorListener errHandler = m_transformer.getErrorListener();
 if (null != errHandler)
  errHandler.fatalError(new TransformerException(formattedMsg, srcLctr));
 else
  throw new TransformerException(formattedMsg, srcLctr);
}
origin: xalan/xalan

ErrorListener errHandler = m_transformer.getErrorListener();
origin: robovm/robovm

 /**
  * Send a message to diagnostics.
  * The xsl:message instruction sends a message in a way that
  * is dependent on the XSLT transformer. The content of the xsl:message
  * instruction is a template. The xsl:message is instantiated by
  * instantiating the content to create an XML fragment. This XML
  * fragment is the content of the message.
  *
  * @param transformer non-null reference to the the current transform-time state.
  *
  * @throws TransformerException
  */
 public void execute(
     TransformerImpl transformer)
      throws TransformerException
 {

  String data = transformer.transformToString(this);

  transformer.getMsgMgr().message(this, data, m_terminate);
  
  if(m_terminate)
   transformer.getErrorListener().fatalError(new TransformerException(XSLMessages.createMessage(XSLTErrorResources.ER_STYLESHEET_DIRECTED_TERMINATION, null))); //"Stylesheet directed termination"));
 }
}
origin: robovm/robovm

javax.xml.transform.ErrorListener errorListener = m_transformer.getErrorListener();
if(errorListener instanceof ErrorHandler)
origin: xalan/xalan

javax.xml.transform.ErrorListener errorListener = m_transformer.getErrorListener();
if(errorListener instanceof ErrorHandler)
origin: robovm/robovm

javax.xml.transform.ErrorListener errorListener = m_transformer.getErrorListener();
origin: xalan/xalan

javax.xml.transform.ErrorListener errorListener = m_transformer.getErrorListener();
origin: robovm/robovm

transformer.getErrorListener().fatalError(te);
    te.setLocator(this);
   transformer.getErrorListener().fatalError(te);            
   transformer.getErrorListener().fatalError(new TransformerException(e));
   transformer.getErrorListener().warning(new TransformerException(e));
transformer.getErrorListener().fatalError(e);
origin: xalan/xalan

/**
 * Execute an unknown element.
 * Execute fallback if fallback child exists or do nothing
 *
 * @param transformer non-null reference to the the current transform-time state.
 *
 * @throws TransformerException
 */
public void execute(TransformerImpl transformer)
     throws TransformerException
{
 if (transformer.getDebug())
   transformer.getTraceManager().fireTraceEvent(this);
 try {
   if (hasFallbackChildren()) {
     executeFallbacks(transformer);
   } else {
     // do nothing
   }
   
 } catch (TransformerException e) {
   transformer.getErrorListener().fatalError(e);
 }
 if (transformer.getDebug())
   transformer.getTraceManager().fireTraceEndEvent(this);
}
origin: xalan/xalan

transformer.getErrorListener().fatalError(te);
    te.setLocator(this);
   transformer.getErrorListener().fatalError(te);            
   transformer.getErrorListener().fatalError(new TransformerException(e));
   transformer.getErrorListener().warning(new TransformerException(e));
transformer.getErrorListener().fatalError(e);
origin: xalan/xalan

transformer.getErrorListener().fatalError(new TransformerException(XSLMessages.createMessage(XSLTErrorResources.ER_STYLESHEET_DIRECTED_TERMINATION, null))); //"Stylesheet directed termination"));
org.apache.xalan.transformerTransformerImplgetErrorListener

Javadoc

Get the current error event handler.

Popular methods of TransformerImpl

  • executeChildTemplates
    Execute each of the children of a template element.
  • getMsgMgr
    Return the message manager.
  • getOutputFormat
    Get the output properties used for the transformation.
  • getOutputPropertyNoDefault
    Get the value of a property, without using the default properties. This can be used to test if a pro
  • getXPathContext
    Get the XPath context associated with this transformer.
  • setContentHandler
    Set the content event handler. NEEDSDOC @param handler
  • <init>
    Construct a TransformerImpl.
  • applyTemplateToNode
    Given an element and mode, find the corresponding template and process the contents.
  • clearParameters
    Reset the parameters to a null list.
  • createSerializationHandler
  • currentFuncResultSeen
    Determines whether an EXSLT func:result instruction has been executed for the currently active EXSLT
  • currentTemplateRuleIsNull
    Tell if the current template rule is null, i.e. if we are directly within an apply-templates. Used f
  • currentFuncResultSeen,
  • currentTemplateRuleIsNull,
  • fatalError,
  • getContentHandler,
  • getContextNodeList,
  • getCountersTable,
  • getCurrentElement,
  • getCurrentNode,
  • getCurrentTemplate

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now