|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cb2java.copybook.Element net.sf.cb2java.copybook.Group
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 |
void |
setValue(java.lang.String value)
|
void |
setValue(Value value)
|
byte[] |
toBytes(java.lang.Object data)
converts the supplied data to bytes |
java.lang.String |
toString()
|
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, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.util.List getChildren()
Element
getChildren
in class Element
protected int getLength()
Element
getLength
in class Element
public java.lang.String toString()
toString
in class Element
public void setValue(java.lang.String value)
public byte[] toBytes(java.lang.Object data)
Element
toBytes
in class Element
data
- the data to convert to bytes
public void validate(java.lang.Object data)
Element
validate
in class Element
data
- the data to validatepublic void setValue(Value value)
value
- protected Value getValue()
Element
getValue
in class Element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |