treebolic.generator.domtree
Class DefaultDecorator

java.lang.Object
  extended by treebolic.generator.domtree.DefaultDecorator
Direct Known Subclasses:
ElementDecorator

public class DefaultDecorator
extends java.lang.Object

Node decorator

Author:
Bernard Bou

Field Summary
protected  org.w3c.dom.Node theNode
          DOM node
 
Constructor Summary
DefaultDecorator(org.w3c.dom.Node thisNode)
          Constructor
 
Method Summary
protected  java.lang.String childrenToString()
          Convert children's value to string
 java.lang.String getName()
          Get node name
 java.lang.String getValue()
          Get node data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theNode

protected org.w3c.dom.Node theNode
DOM node

Constructor Detail

DefaultDecorator

public DefaultDecorator(org.w3c.dom.Node thisNode)
Constructor

Parameters:
thisNode - DOM node to decorate
Method Detail

getName

public java.lang.String getName()
Get node name

Returns:
node name

getValue

public java.lang.String getValue()
Get node data

Returns:
node data

childrenToString

protected java.lang.String childrenToString()
Convert children's value to string

Returns:
string