All Implemented Interfaces:
IElementRenderer, IXmlElementRenderer

public class XmlAsset extends XmlDocumentRendererBase

This class converts an IAsset implementation to an XML node for document xml generation.

For example rendering an asset with a presentation style will result in:

 <STYLE name="style">
 <TEXT>
   <T>Text with style</T>
 </TEXT>
 </STYLE>
 

For example rendering an asset without a presentation style will result in:

 <TEXT>
 <T>Text without style</T>
 </TEXT>
 
Since:
7.0
Author:
Jon van Leuven
  • Constructor Details

    • XmlAsset

      protected XmlAsset(boolean tagsToUpperCase)
  • 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.