net.sf.cb2java.copybook.data
Class ValueData

java.lang.Object
  extended bynet.sf.cb2java.copybook.data.Data
      extended bynet.sf.cb2java.copybook.data.ValueData
Direct Known Subclasses:
CharData, FloatingData, NumericData

public abstract class ValueData
extends Data


Constructor Summary
ValueData(Element definition)
           
 
Method Summary
 java.util.List getChildren()
          returns all the children of this item, if there are any
 boolean isLeaf()
          Returns whether this element is a leaf element.
abstract  java.lang.String toString()
           
 java.lang.String toString(java.lang.String indent)
          gives a string representation of this element with the given indention
 
Methods inherited from class net.sf.cb2java.copybook.data.Data
getDefinition, getName, getValue, setValue, setValue, setValueImpl, translate, validate, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueData

public ValueData(Element definition)
Method Detail

isLeaf

public boolean isLeaf()
Description copied from class: Data
Returns whether this element is a leaf element. i.e. returns true if it is not a group.

Specified by:
isLeaf in class Data
Returns:
whether this element is a leaf element

getChildren

public java.util.List getChildren()
Description copied from class: Data
returns all the children of this item, if there are any

Specified by:
getChildren in class Data

toString

public abstract java.lang.String toString()

toString

public java.lang.String toString(java.lang.String indent)
Description copied from class: Data
gives a string representation of this element with the given indention

Specified by:
toString in class Data
Parameters:
indent - the string used to indent