public class CobolDataItem extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CobolDataItem.DataEntryType
These correspond to the 3 different formats for data entries.
|
static class |
CobolDataItem.Range
Represents a range between two literals.
|
| Constructor and Description |
|---|
CobolDataItem()
No argument constructor.
|
CobolDataItem(int levelNumber,
String cobolName)
Constructor used when the level number is known.
|
CobolDataItem(String cobolName)
Constructor used when the level number will be determined at a later
time.
|
public CobolDataItem()
public CobolDataItem(String cobolName)
cobolName - the data item COBOL namepublic CobolDataItem(int levelNumber,
String cobolName)
levelNumber - the data item COBOL namecobolName - the data item COBOL namepublic int getLevelNumber()
public void setLevelNumber(int levelNumber)
levelNumber - the Level in the hierarchy to setpublic String getCobolName()
public void setCobolName(String cobolName)
cobolName - the Cobol element name to setpublic String getRedefines()
public void setRedefines(String redefines)
redefines - Cobol element sharing same memory location to setpublic boolean isBlankWhenZero()
public void setBlankWhenZero(boolean blankWhenZero)
blankWhenZero - the blank when zero clause to setpublic boolean isExternal()
public void setExternal(boolean external)
external - the external clause to setpublic boolean isGlobal()
public void setGlobal(boolean global)
global - the global clause to setpublic boolean isGroupUsageNational()
public void setGroupUsageNational(boolean groupUsageNational)
groupUsageNational - the group usage national clause to setpublic boolean isJustifiedRight()
public void setJustifiedRight(boolean justifiedRight)
justifiedRight - true if String is right justifiedpublic String getPicture()
public void setPicture(String picture)
picture - the Cobol picture clause to setpublic boolean isSign()
public void setSign(boolean isSign)
isSign - true if COBOL data item has a SIGN clausepublic boolean isSignLeading()
public void setSignLeading(boolean isSignLeading)
isSignLeading - true itrue if sign clause specifies sign in leading
byte (false means trailing byte)public boolean isSignSeparate()
public void setSignSeparate(boolean isSignSeparate)
isSignSeparate - true if sign clause specifies sign in separate byte
(overpunch)public boolean isSynchronized()
public void setSynchronized(boolean isSynchronized)
isSynchronized - true if the item must be synchronized on natural
boundary in storagepublic int getMinOccurs()
public void setMinOccurs(int minOccurs)
minOccurs - the minimum number of occurrences to setpublic int getMaxOccurs()
public void setMaxOccurs(int maxOccurs)
maxOccurs - the maximum number of occurrences to setpublic String getDependingOn()
public void setDependingOn(String dependingOn)
dependingOn - the Cobol element giving array actual size to setpublic void setIndexes(List<String> indexes)
indexes - the cobol indexed by sub-clauses to setpublic void addIndex(String index)
index - a cobol index to addpublic List<String> getAscendingKeys()
public void setAscendingKeys(List<String> ascendingKeys)
ascendingKeys - the cobol ascending key is sub-clauses to setpublic void addAscendingKey(String ascendingKey)
ascendingKey - a cobol ascending key to addpublic List<String> getDescendingKeys()
public void setDescendingKeys(List<String> descendingKeys)
descendingKeys - the cobol descending key is sub-clauses to setpublic void addDescendingKey(String descendingKey)
descendingKey - a cobol descending key to addpublic CobolUsage.Usage getUsage()
public void setUsage(CobolUsage.Usage usage)
usage - the Cobol usage to setpublic String getCobolUsage()
public void setCobolUsage(String cobolUsage)
cobolUsage - the COBOL usage stringpublic String getValue()
public void setValue(String value)
value - the Cobol values to setpublic String getDateFormat()
public void setDateFormat(String dateFormat)
dateFormat - the cobol date format clause to setpublic int getSrceLine()
public void setSrceLine(int srceLine)
srceLine - the Line number in the original source file to setpublic List<CobolDataItem> getChildren()
public void setChildren(List<CobolDataItem> children)
children - the ordered list of direct children to setpublic boolean isStructure()
public String getRenamesSubject()
public void setRenamesSubject(String renamesSubject)
renamesSubject - the single subject of a RENAMES clause to setpublic CobolDataItem.Range getRenamesSubjectRange()
public void setRenamesSubjectRange(CobolDataItem.Range renamesSubjectRange)
renamesSubjectRange - the range of subjects of a RENAMES clause to
setpublic List<String> getConditionLiterals()
public void setConditionLiterals(List<String> conditionLiterals)
conditionLiterals - the one or more literal values of a condition to
setpublic void addConditionLiterals(String conditionLiteral)
conditionLiteral - a literal value of a condition to setpublic List<CobolDataItem.Range> getConditionRanges()
public void setConditionRanges(List<CobolDataItem.Range> conditionRanges)
conditionRanges - the one or more ranges of literal values of a
condition to setpublic void addConditionRange(CobolDataItem.Range conditionRange)
conditionRange - the range of literal values of a condition to setpublic CobolDataItem.DataEntryType getDataEntryType()
public boolean isCondition()
public boolean isRenames()
public boolean isDataDescription()
public boolean isArray()
public boolean isVariableSizeArray()
Copyright © 2021 LegSem. All rights reserved.