com.pow2.structures.tree
Class StringBufferNodeVisitor

java.lang.Object
  extended bycom.pow2.resources.PropertyContainerImpl
      extended bycom.pow2.structures.tree.StringBufferNodeVisitor
All Implemented Interfaces:
NodeVisitorInterface, PropertyContainer, Serializable

public abstract class StringBufferNodeVisitor
extends PropertyContainerImpl
implements NodeVisitorInterface

StringBufferNodeVisitor class.
A NodeVisitor class with a StringBuffer.

Author:
Luca Fossato
See Also:
Serialized Form

Field Summary
protected  StringBuffer buffer
          the StringBuffer object where to store the node data collected by visit method.
protected  long counter
          traverse counter
 
Fields inherited from class com.pow2.resources.PropertyContainerImpl
cat, properties
 
Constructor Summary
StringBufferNodeVisitor()
           
 
Method Summary
 StringBuffer getBuffer()
          Gets the buffer attribute of the StringBufferNodeVisitor object
 long getCounter()
          Gets the counter attribute of the MenuNodeVisitor object
 void setBuffer(StringBuffer buffer)
          Sets the buffer attribute of the StringBufferNodeVisitor object
 void setCounter(long counter)
          Sets the counter attribute of the MenuNodeVisitor object
 
Methods inherited from class com.pow2.resources.PropertyContainerImpl
addProperty, getObject, getProperty, getPropertyKeys, removeProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.pow2.structures.tree.NodeVisitorInterface
visit
 
Methods inherited from interface com.pow2.resources.PropertyContainer
addProperty, getObject, getProperty, getPropertyKeys, removeProperty
 

Field Detail

buffer

protected StringBuffer buffer
the StringBuffer object where to store the node data collected by visit method.


counter

protected long counter
traverse counter

Constructor Detail

StringBufferNodeVisitor

public StringBufferNodeVisitor()
Method Detail

getBuffer

public StringBuffer getBuffer()
Gets the buffer attribute of the StringBufferNodeVisitor object

Returns:
The buffer value

setBuffer

public void setBuffer(StringBuffer buffer)
Sets the buffer attribute of the StringBufferNodeVisitor object

Parameters:
buffer - The new buffer value

setCounter

public void setCounter(long counter)
Sets the counter attribute of the MenuNodeVisitor object

Parameters:
counter - The new counter value

getCounter

public long getCounter()
Gets the counter attribute of the MenuNodeVisitor object

Returns:
The counter value


Copyright © 2002-2004 Power Of Two S.R.L. All Rights Reserved.