com.taursys.xml.render
Class AttributeRenderer

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

public class AttributeRenderer
extends AbstractSubcomponentRenderer

Subcomponent to render an attribute value to an Attribute of a DOM Element.

Author:
marty

Field Summary
 
Fields inherited from class com.taursys.xml.render.AbstractSubcomponentRenderer
component, da, id
 
Constructor Summary
AttributeRenderer(Attribute attribute)
          Constructs a new AttributeRender for the given Attribute.
 
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

AttributeRenderer

public AttributeRenderer(Attribute attribute)
Constructs a new AttributeRender for the given Attribute.

Parameters:
attribute - 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.