com.taursys.xml.render
Class StandAloneAttributeRenderer

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

public class StandAloneAttributeRenderer
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
StandAloneAttributeRenderer(Attribute attribute)
          Constructs a new AttributeRender for the given Attribute.
 
Method Summary
protected  void init()
          Initializes reference to component node.
 void render()
          Renders by setting the attributeName="attributeName" in the Element is visible and its value is not null and not FALSE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandAloneAttributeRenderer

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

Parameters:
attribute - which this renderer belongs to
Method Detail

init

protected void init()
             throws RenderException
Initializes reference to component node. Only acts if componentNode is null and document has not changed

Overrides:
init in class AbstractSubcomponentRenderer
Throws:
RenderException - if parent, DocumentAdapter, or Document is null.

render

public void render()
            throws RenderException
Renders by setting the attributeName="attributeName" in the Element is visible and its value is not null and not FALSE.

Throws:
RenderException - if any problem occurs during rendering


Copyright © 2007 Martin T Phelan. All Rights Reserved.