|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cb2java.copybook.Element
net.sf.cb2java.copybook.Leaf
net.sf.cb2java.copybook.Floating
| Constructor Summary | |
protected |
Floating(java.lang.String name,
int level,
int occurs,
Conversion.Precision precision)
|
| Method Summary | |
java.util.List |
getChildren()
gets the children of this element or null if there are none |
protected int |
getLength()
returns the length of one instance of this element |
protected Value |
getValue()
the value for this element |
byte[] |
toBytes(java.lang.Object data)
converts the supplied data to bytes |
void |
validate(java.lang.Object data)
validates the data based on this element definition |
| Methods inherited from class net.sf.cb2java.copybook.Element |
getBytes, getLevel, getName, getOccurs, getPosition, getString, toString, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected Floating(java.lang.String name,
int level,
int occurs,
Conversion.Precision precision)
| Method Detail |
protected Value getValue()
Element
getValue in class Elementprotected int getLength()
Element
getLength in class Element
public void validate(java.lang.Object data)
throws java.lang.IllegalArgumentException
Element
validate in class Elementdata - the data to validate
java.lang.IllegalArgumentException - if the data is invalidpublic byte[] toBytes(java.lang.Object data)
Element
toBytes in class Elementdata - the data to convert to bytes
public java.util.List getChildren()
Element
getChildren in class Element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||