com.taursys.xml.render
Class TextNodeRenderer

java.lang.Object
  extended bycom.taursys.xml.render.AbstractSubcomponentRenderer
      extended bycom.taursys.xml.render.TextNodeRenderer

public class TextNodeRenderer
extends AbstractSubcomponentRenderer

TextNodeRenderer is a Subcomponent to render an TextNode value to a Text node of a DOM Element.

Author:
marty

Field Summary
 
Fields inherited from class com.taursys.xml.render.AbstractSubcomponentRenderer
component, da, id
 
Constructor Summary
TextNodeRenderer(TextNode component)
          Constructs a new TextNodeRender for the given TextNode.
 
Method Summary
 void render()
          Renders the Attribute to an attribute of an Element in a Document.
 
Methods inherited from class com.taursys.xml.render.AbstractSubcomponentRenderer
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextNodeRenderer

public TextNodeRenderer(TextNode component)
Constructs a new TextNodeRender for the given TextNode.

Parameters:
component - which this renderer belongs to
Method Detail

render

public void render()
            throws RenderException
Renders the Attribute to an attribute of an Element in a Document. This component accesses the given attributes's parent to obtain the DocumentAdapter. It also accesses the parents's id, its attributeName and model. It uses the DocumentAdapter's setElementText to render the model's text value to the Element indicated by the parent's id.

Throws:
RenderException - if any problem occurs during rendering


Copyright © 2007 Martin T Phelan. All Rights Reserved.