public class

XmlRendererBlockVisitorANF

extends XmlRendererBlockVisitorENF
java.lang.Object
   ↳ com.microstrategy.web.blocks.DefaultBlockVisitor
     ↳ com.microstrategy.web.blocks.renderers.XmlRendererBlockVisitorENF
       ↳ com.microstrategy.web.blocks.renderers.XmlRendererBlockVisitorANF

Class Overview

This class renders a Block tree in XML format, specifically Attribute Normal Form, where the scalar properties are represented as attributes.

Here are the rules for converting an arbitrary Block tree into an XML structure:

  1. The name of the root element is determined by calling the method getDocumentElementName(Block). The default implementation returns "root".
  2. The scalar properties are represented as attributes. Scalar-based properties use the name of the BlockProperty as the attribute name and the value of the BlockProperty as the attribute value.
  3. Block-based properties use the name of the BlockProperty as the element name. The properties of this child Block become the attributes of it using the rule described above.
  4. List-based properties use the name of the BlockProperty as the element name. However, as the elements of a list have no names (and are only listed one after another), the name of the element that is used for this list element is found by calling getBlockInListElementName(Block). The default implementation returns "block".

Summary

[Expand]
Inherited Fields
From class com.microstrategy.web.blocks.renderers.XmlRendererBlockVisitorENF
Public Constructors
XmlRendererBlockVisitorANF(BlockContext blockContext)
Public Methods
void visitScalarProperty(BlockProperty blockProperty, Block parent, boolean firstAssignedProperty)
Invoked for each scalar (non-Block, non-BlockList) Block Property.
[Expand]
Inherited Methods
From class com.microstrategy.web.blocks.renderers.XmlRendererBlockVisitorENF
From class com.microstrategy.web.blocks.DefaultBlockVisitor
From class java.lang.Object
From interface com.microstrategy.web.blocks.BlockVisitor

Public Constructors

public XmlRendererBlockVisitorANF (BlockContext blockContext)

Public Methods

public void visitScalarProperty (BlockProperty blockProperty, Block parent, boolean firstAssignedProperty)

Invoked for each scalar (non-Block, non-BlockList) Block Property. In particular, it is only invoked for BlockProperty instances whose value is non-null.

Parameters
blockProperty The BlockProperty that has an assigned value.
parent The Block that contains this BlockProperty.
firstAssignedProperty Whether or not this is the first assigned property of the Block.