Class XmlFailedElement

java.lang.Object
com.aquima.interactions.framework.renderer.XmlElement
com.aquima.interactions.framework.renderer.document.XmlFailedElement
All Implemented Interfaces:
IElementRenderer, IXmlElementRenderer

public class XmlFailedElement extends XmlElement

This class converts an FailedElement to XML comment for document xml generation.

Example:

 <!--
 Failed composing element:
 Name=elementName
 Type=container
 Message=stubbed error
 Stacktrace=com.aquima.interactions.foundation.exception.InvalidStateException: stubbed error
   junit.framework.TestCase.runTest(TestCase.java:164)
   junit.framework.TestCase.runBare(TestCase.java:130)
   junit.framework.TestResult$1.protect(TestResult.java:106)
   junit.framework.TestResult.runProtected(TestResult.java:124)
   junit.framework.TestResult.run(TestResult.java:109)
   junit.framework.TestCase.run(TestCase.java:120)
   junit.framework.TestSuite.runTest(TestSuite.java:230)
   junit.framework.TestSuite.run(TestSuite.java:225)
   org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
   org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
   org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
   org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
   org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
   org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
 Parameters: name=key, value=value
 -->
 
Since:
7.1
Author:
Jon van Leuven
  • Constructor Details

    • XmlFailedElement

      public XmlFailedElement()
  • Method Details

    • toXml

      public IXmlElement toXml(IXmlRendererContext ctx, IElement element)
      Description copied from interface: IXmlElementRenderer
      This function allows one to convert an IElement instance to an XML element. The implementor of this function should only convert the element itself and not it's children as the caller will process these. (Unless ctx.setContinueChildProcessing( false ) has been called)
      Parameters:
      ctx - The context which contains some information and control options.
      element - The element which should be converted.
      Returns:
      an XMLElement class or null indicating this element should not be included in the resulting xml.