|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bankframe.examples.txnhandler.connector.coboltest.parser.cobol.CobolGroup
This class represent a Cobol Group
Field Summary | |
static short |
MAX_LEVEL_NUMBER
The maximum allowed level value |
static short |
MIN_LEVEL_NUMBER
The minimum allowed level value |
static short[] |
SPECIAL_LEVEL_NUMBERS
The other special levels ---XY |
Constructor Summary | |
CobolGroup(short level,
java.lang.String name)
CobolGroup constructor |
|
CobolGroup(short level,
java.lang.String name,
CobolGroup parentGroup)
CobolGroup constructor |
Method Summary | |
void |
addCobolElementryDataItem(CobolElementryDataItem dataItem)
This method adds a Cobol data item to this group. |
void |
addGroup(CobolGroup group)
This method adds a Cobol group to this CobolGroup. |
java.util.Iterator |
getItems()
|
short |
getLevel()
This method gets the Cobol level number of this record. |
long |
getMaximumOccurs()
This method gets the maximum number of times the group occurs. |
long |
getMinimumOccurs()
This method gets the minimum number of times the group occurs. |
java.lang.String |
getName()
This method gets the name of this group. |
java.lang.Object |
getNextItem()
This method gets the next data structure (Group/DataItem) in the collection of elements which belong to this record. |
boolean |
hasMoreItems()
This method determines if this Group contains anymore data structures. |
boolean |
isNextItemElementryDataItem()
This method determines if the next datastructure which is part of this group is a CobolElementryDataItem. |
boolean |
isNextItemGroup()
This method determines if the next datastructure which is part of this group is a CobolGroup. |
boolean |
isSpecialLevelNumber(short levelNumber)
Insert the method's description here. |
void |
setMaximumOccurs(long occurs)
This method sets the maximum number of times the group occurs. |
void |
setMinimumOccurs(long occurs)
This method sets the minimum number of times the group occurs. |
void |
setParentGroup(CobolGroup parentGroup)
This method set the Parent group of this group |
java.lang.String |
toString()
just4test |
java.lang.String |
toString(int level)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final short MIN_LEVEL_NUMBER
public static final short MAX_LEVEL_NUMBER
public static final short[] SPECIAL_LEVEL_NUMBERS
Constructor Detail |
public CobolGroup(short level, java.lang.String name) throws InvalidCobolLevelException
level
- the cobol level numbername
- the name of the grouppublic CobolGroup(short level, java.lang.String name, CobolGroup parentGroup) throws InvalidCobolLevelException
level
- the cobol level numbername
- the name of the groupparentGroup
- the parent of this group. Null if group has no parent;Method Detail |
public void addCobolElementryDataItem(CobolElementryDataItem dataItem)
dataItem
- the CobolElementryDataItem to add to this record.public void addGroup(CobolGroup group)
group
- the CobolGroup to add.public java.util.Iterator getItems()
public short getLevel()
public long getMaximumOccurs()
public long getMinimumOccurs()
public java.lang.String getName()
public java.lang.Object getNextItem()
public boolean hasMoreItems()
public boolean isNextItemElementryDataItem()
public boolean isNextItemGroup()
public boolean isSpecialLevelNumber(short levelNumber)
levelNumber
- short
public void setMaximumOccurs(long occurs)
occurs
- the maximum number of times the group occurs.public void setMinimumOccurs(long occurs)
occurs
- the minimum number of times the group occurs.public void setParentGroup(CobolGroup parentGroup)
parentGroup
- the parent of this grouppublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int level)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |