org.progeeks.meta.xml
Class ClassPropertyTypeXmlRenderer

java.lang.Object
  extended by org.progeeks.meta.xml.AbstractXmlPropertyRenderer
      extended by org.progeeks.meta.xml.ClassPropertyTypeXmlRenderer
All Implemented Interfaces:
XmlPropertyRenderer

public class ClassPropertyTypeXmlRenderer
extends AbstractXmlPropertyRenderer

Renders a ClassPropertyType as a nested element instead of an attribute.

Version:
$Revision: 1.6 $
Author:
Dave Garvis

Constructor Summary
ClassPropertyTypeXmlRenderer()
           
 
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

ClassPropertyTypeXmlRenderer

public ClassPropertyTypeXmlRenderer()
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.