|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cb2java.copybook.data.Data
net.sf.cb2java.copybook.data.GroupData
| Constructor Summary | |
GroupData(Group definition,
java.util.List children)
|
|
| Method Summary | |
Data |
getChild(java.lang.String name)
returns the first child with the specified name irrespective of case |
java.util.List |
getChildren()
returns a immutable collection of children |
java.lang.Object |
getValue()
returns the children of this item |
boolean |
isLeaf()
Returns whether this element is a leaf element. |
protected void |
setValueImpl(java.lang.Object data)
not supported |
java.lang.String |
toString()
|
java.lang.String |
toString(java.lang.String indent)
gives a string representation of this element with the given indention |
protected java.lang.Object |
translate(java.lang.String data)
Converts the String to the underlying Data type's 'natural' type. |
void |
write(java.io.OutputStream stream)
writes this Data instance to the stream as COBOL application data. |
| Methods inherited from class net.sf.cb2java.copybook.data.Data |
getDefinition, getName, setValue, setValue, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public GroupData(Group definition,
java.util.List children)
| Method Detail |
public boolean isLeaf()
Data
isLeaf in class Datapublic java.util.List getChildren()
getChildren in class Datapublic Data getChild(java.lang.String name)
name - the name of the child to look for
java.lang.IllegalArgumentException - if no child is foundpublic java.lang.String toString()
public java.lang.String toString(java.lang.String indent)
Data
toString in class Dataindent - the string used to indent
public void write(java.io.OutputStream stream)
throws java.io.IOException
Data
write in class Datastream - the stream to write to
java.io.IOExceptionpublic java.lang.Object getValue()
getValue in class Dataprotected java.lang.Object translate(java.lang.String data)
Data
translate in class Datadata - the string to use to set this data's value
protected void setValueImpl(java.lang.Object data)
setValueImpl in class Datadata - the data to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||