treebolic.generator.domtree
Class ElementDecorator

java.lang.Object
  extended by treebolic.generator.domtree.DefaultDecorator
      extended by treebolic.generator.domtree.ElementDecorator
Direct Known Subclasses:
EdgeDecorator, LinkDecorator, NodeDecorator

public class ElementDecorator
extends DefaultDecorator

Element decorator

Author:
Bernard Bou

Field Summary
 
Fields inherited from class treebolic.generator.domtree.DefaultDecorator
theNode
 
Constructor Summary
ElementDecorator(org.w3c.dom.Node thisNode)
          Constructor
 
Method Summary
protected  java.lang.String getAttributes()
          Get attribute string
private  org.w3c.dom.Element getElement()
          Get element
 java.lang.String getName()
          Get node name
protected  java.lang.String getText()
          Get element text
 java.lang.String getValue()
          Get node data
 
Methods inherited from class treebolic.generator.domtree.DefaultDecorator
childrenToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementDecorator

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

Parameters:
thisNode - DOM node
Method Detail

getName

public java.lang.String getName()
Description copied from class: DefaultDecorator
Get node name

Overrides:
getName in class DefaultDecorator
Returns:
node name

getValue

public java.lang.String getValue()
Description copied from class: DefaultDecorator
Get node data

Overrides:
getValue in class DefaultDecorator
Returns:
node data

getElement

private org.w3c.dom.Element getElement()
Get element

Returns:
element

getText

protected java.lang.String getText()
Get element text

Returns:
element text

getAttributes

protected java.lang.String getAttributes()
Get attribute string

Returns:
attribute string