org.progeeks.meta.xml
Class ContainerXmlRenderer

java.lang.Object
  extended by org.progeeks.meta.xml.AbstractXmlPropertyRenderer
      extended by org.progeeks.meta.xml.ContainerXmlRenderer
All Implemented Interfaces:
XmlPropertyRenderer
Direct Known Subclasses:
ListXmlPropertyRenderer

public class ContainerXmlRenderer
extends AbstractXmlPropertyRenderer

Renders a Collection-value to XML by outputting individual elements.

Version:
$Revision: 1.9 $
Author:
Paul Speed

Constructor Summary
ContainerXmlRenderer()
           
 
Method Summary
 void render(java.lang.Object value, PropertyType type, boolean forceWrap, XmlRenderContext context)
          Renders the specified Mutator's value to the specified writer.
 
Methods inherited from class org.progeeks.meta.xml.AbstractXmlPropertyRenderer
canRenderAsAttribute, findEm, getAsAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerXmlRenderer

public ContainerXmlRenderer()
Method Detail

render

public void render(java.lang.Object value,
                   PropertyType type,
                   boolean forceWrap,
                   XmlRenderContext context)
Renders the specified Mutator's value to the specified writer.

Specified by:
render in interface XmlPropertyRenderer
Specified by:
render in class AbstractXmlPropertyRenderer
Parameters:
value - The value to be rendered.
type - The specific type that was used to lookup this renderer.
forceWrap - Set to true if the renderer should wrap the value in its own style of start/end tags. False indicates that the renderer can optionally leave them out. This is usually used by renderers that support types that can be defined as strings directly.
context - Contains the rendering output information for this session.


Copyright © 2002-2003 Paul Speed. All Rights Reserved.