|
|||||||||||
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.CobolElementryDataItem
This class represents a Cobol Element Data Item
Constructor Summary | |
CobolElementryDataItem(short level,
java.lang.String name,
java.lang.String dataType)
CobolElementryDataItem Consructor |
Method Summary | |
void |
addCobolCondition(CobolCondition condition)
This method adds a Cobol condition to the dataitem. |
java.util.Collection |
getCobolConditions()
This method gets the Cobol Conditions for this dataitem. |
java.lang.String |
getDataType()
This method gets the data type of this data item. |
long |
getLength()
This method returns the length of the data iten in bytes. |
short |
getLevel()
This method gets the Cobol level number of this data item. |
long |
getMaximumLength()
This method gets the total maximum length of this data item. |
java.lang.String |
getName()
This method gets the name of this data item. |
long |
getNumberOfElementsAfterDecimal()
This method gets the number of elements after the decimal point return the number of elements after the decimal point |
long |
getNumberOfElementsBeforeDecimal()
This method gets the number of elements before the decimal point return the number of elements before the decimal point |
long |
getOffset()
This method returns the offset of this dataitem in its storage place. |
long |
getSequence()
This method gets the data type of this data item. |
java.lang.String |
getUsage()
This method return the usage type. |
java.lang.String |
getValue()
This method gets the values assinged to the data item if there is one. |
boolean |
isAlphabetic()
This method determines if the data item is alphabetic. |
boolean |
isAlphaNumeric()
This method determines if the data item is alphanumeric. |
boolean |
isFiller()
This method determines if this data item is a record filler. |
boolean |
isHasUsage()
This method determines if this data item has a usage. |
boolean |
isNumeric()
This method determines if the data item is numeric. |
boolean |
isSigned()
This method determines if the data item is signed ie. |
void |
setAlphabetic()
This method set the data item as alphanumeric. |
void |
setAlphanumeric()
This method set the data item as Alphanumeric. |
void |
setDataType(java.lang.String dataType)
This method sets the data type of this data item. |
void |
setHasUsage(boolean hasUsage)
This method is used for set up hasUsage. |
void |
setIsFiller(boolean isfiller)
Insert the method's description here. |
void |
setLength(long length)
This method is used for set up length. |
void |
setName(java.lang.String name)
This method sets the name of this data item. |
void |
setNumberOfElementsAfterDecimal(long elements)
This method sets the number of elements after the decimal point |
void |
setNumberOfElementsBeforeDecimal(long elements)
This method sets the number of elements before the decimal point return the number of elements before the decimal point |
void |
setNumeric()
This method set the data item as numeric. |
void |
setOffset(long offset)
This method is used for set up offset. |
void |
setParent(CobolGroup parentGroup)
This method set the reference to the COBOL group which is the parent of this item. |
void |
setSequence()
This method is used for set up offset. |
void |
setSigned()
This method flags this data item to be a signed data item. |
void |
setUsage(java.lang.String usage)
This method is used for set up usage. |
void |
setValue(java.lang.String value)
This method sets the values assinged to this data item. |
java.lang.String |
toString()
|
java.lang.String |
toString(int lvl)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CobolElementryDataItem(short level, java.lang.String name, java.lang.String dataType) throws InvalidCobolLevelException
Method Detail |
public void addCobolCondition(CobolCondition condition)
condition
- the CobolCondition.public java.util.Collection getCobolConditions()
public java.lang.String getDataType()
public long getLength()
public short getLevel()
public long getMaximumLength()
public java.lang.String getName()
public long getNumberOfElementsAfterDecimal()
public long getNumberOfElementsBeforeDecimal()
public long getOffset()
public long getSequence()
public java.lang.String getUsage()
public java.lang.String getValue()
public boolean isAlphabetic()
public boolean isAlphaNumeric()
public boolean isFiller()
public boolean isHasUsage()
public boolean isNumeric()
public boolean isSigned()
public void setAlphabetic()
public void setAlphanumeric()
public void setDataType(java.lang.String dataType)
dataType
- the data item data type.public void setHasUsage(boolean hasUsage)
hasUsage
- booleanpublic void setIsFiller(boolean isfiller)
isfiller
- booleanpublic void setLength(long length)
length
- intpublic void setName(java.lang.String name)
name
- the name of this dataitem.public void setNumberOfElementsAfterDecimal(long elements)
public void setNumberOfElementsBeforeDecimal(long elements)
public void setNumeric()
public void setOffset(long offset)
offset
- longpublic void setParent(CobolGroup parentGroup)
parentGroup
- the CoboGroup which is the parent of this item.public void setSequence()
public void setSigned()
public void setUsage(java.lang.String usage)
usage
- Stringpublic void setValue(java.lang.String value)
value
- the value to assing to this data itempublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int lvl)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |