Class XmlTextItem
java.lang.Object
com.aquima.interactions.framework.renderer.XmlElement
com.aquima.interactions.framework.renderer.page.r6.XmlTextItem
- All Implemented Interfaces:
IElementRenderer
,IXmlElementRenderer
This class converts an ITextItem implementation to an XML node for page xml generation.
For example rendering a text item with a single text node, a value node and a style node will result in:
<text-item name="text" id="P103-C0-TI0"> <t>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</t> <v>value of the value node</v> <style name="presentationStyle"> <t>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</t> </style> </text-item>
- Since:
- 7.0
- Author:
- Jon van Leuven
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoXml
(IXmlRendererContext ctx, IElement element) This function allows one to convert an IElement instance to an XML element.Methods inherited from class com.aquima.interactions.framework.renderer.XmlElement
formatKey, getKeyPrefix, setIncludePresentationStyleElements, setKeyPrefix, setOptionalFormat, setOptionalPresentationStyle
-
Constructor Details
-
XmlTextItem
public XmlTextItem()
-
-
Method Details
-
toXml
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.
-