|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.edit.generator.model.RPGCommon com.ibm.etools.iseries.edit.generator.model.RPGFieldType
public class RPGFieldType
Field Summary | |
---|---|
protected boolean |
array
|
protected RPGSimpleArray |
arrayField
|
protected String |
arraySize
|
protected String |
ccsidNbr
|
protected String |
className
|
static String |
Copyright
|
protected String |
dataType
|
protected String |
dateFormat
|
protected int |
decimals
|
protected String |
fmtString
|
protected int |
from
|
protected boolean |
isDecimalAllowed
|
protected boolean |
isLengthAllowed
|
protected Vector |
keywords
|
protected int |
length
|
protected boolean |
likeAnother
|
protected String |
likeKeyword
|
protected String |
otherField
|
protected boolean |
packeven
|
protected boolean |
procPointer
|
protected String |
sample
|
protected String |
separator
|
protected String |
timeFormat
|
protected int |
to
|
protected char |
typeChar
|
protected int |
typeIndex
|
Fields inherited from class com.ibm.etools.iseries.edit.generator.model.RPGCommon |
---|
fieldName, purpose |
Fields inherited from interface com.ibm.etools.iseries.edit.generator.model.IDSpec |
---|
DATEFMT_DMY, DATEFMT_EUR, DATEFMT_ISO, DATEFMT_JIS, DATEFMT_JUL, DATEFMT_MDY, DATEFMT_NONE, DATEFMT_USA, DATEFMT_YMD, DT_AMPERSAND, DT_COLON, DT_COMMA, DT_DASH, DT_NONE, DT_PERIOD, DT_SLASH, INFDS_DB, INFDS_DSPF_ATTR, INFDS_DSPF_DEV, INFDS_FILE, INFDS_ICF_ATTR, INFDS_ICF_DEV, INFDS_IO, INFDS_OPEN, INFDS_PRTF, MSG_ERR_REQ_FIELD, RPGARRAYKWD_B, RPGARRAYKWD_F, RPGARRAYKWD_I, RPGARRAYKWD_L, RPGARRAYKWD_P, RPGARRAYKWD_R, RPGARRAYKWD_S, RPGARRAYKWD_U, RPGTYPE_A, RPGTYPE_AV, RPGTYPE_B, RPGTYPE_C, RPGTYPE_CV, RPGTYPE_D, RPGTYPE_F, RPGTYPE_G, RPGTYPE_GV, RPGTYPE_I, RPGTYPE_I2, RPGTYPE_N, RPGTYPE_P, RPGTYPE_S, RPGTYPE_STAR, RPGTYPE_T, RPGTYPE_U, RPGTYPE_U2, RPGTYPE_Z, TIMEFMT_EUR, TIMEFMT_HMS, TIMEFMT_ISO, TIMEFMT_JIS, TIMEFMT_NONE, TIMEFMT_USA |
Constructor Summary | |
---|---|
RPGFieldType()
|
Method Summary | |
---|---|
void |
createNewArray()
Sets this FieldDSpec to be an array, and initializes the array-part of the FieldDSpec. |
RPGSimpleArray |
getArray()
|
String |
getArraySize()
|
String |
getCcsidNbr()
|
String |
getClassName()
|
String |
getDataType()
|
String |
getDateFormat()
|
int |
getDecimals()
|
Vector |
getFieldTypeKeywords()
get all keywords of this field type |
String |
getFmtString()
|
int |
getFrom()
|
Vector |
getKeywords()
|
int |
getLength()
|
String |
getLikeKeyword()
|
String |
getOtherField()
|
String |
getSample()
|
String |
getSeparator()
|
String |
getTimeFormat()
|
int |
getTo()
|
char |
getTypeChar()
|
int |
getTypeIndex()
|
boolean |
isArray()
|
boolean |
isDecimalAllowed()
|
boolean |
isLengthAllowed()
|
boolean |
isLikeAnother()
|
boolean |
isPackeven()
|
boolean |
isProcPointer()
|
void |
setArray(boolean b)
Sets whether this FieldDSpec is an array or not. |
void |
setArraySize(String size)
Sets the array size of this FieldDSpec, if it is an array. |
void |
setCcsidNbr(String string)
|
void |
setClassName(String string)
|
void |
setDataType(String type)
Sets the data type of the field. |
void |
setDateFormat(String format)
Sets the date format of the field, if it is of data type Date, has no effect otherwise. |
void |
setDecimalAllowed(boolean b)
|
void |
setDecimals(int i)
For binary, packed decimal, and zoned decimal types, sets the number of decimals, otherwise has no effect. |
void |
setFmtString(String string)
|
void |
setFrom(int i)
|
void |
setKeywords(Vector keywds)
|
void |
setLength(int i)
Sets the length of the field. |
void |
setLengthAllowed(boolean b)
|
void |
setLikeAnother(boolean b)
Sets whether this field is defined like another field (LIKE). |
void |
setLikeKeyword(String string)
|
void |
setOtherField(String name)
If this field is defined to be like another field, sets the name of the other field, otherwise has no effect. |
void |
setPackeven(boolean b)
|
void |
setProcPointer(boolean b)
Sets whether or not this field is a procedure pointer. |
void |
setSample(String sample)
|
void |
setSeparator(String string)
Sets the separator character for the Date or Time, if the field is one of these data types, otherwise has no effect. |
void |
setTimeFormat(String format)
Sets the time format of the field, if it is of the Time data type, has no effect otherwise. |
void |
setTo(int i)
|
void |
setTypeChar(char c)
|
void |
setTypeIndex(int index)
|
Methods inherited from class com.ibm.etools.iseries.edit.generator.model.RPGCommon |
---|
getMessages, getName, getPurpose, isValid, setFieldName, setPurpose |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
protected boolean likeAnother
protected String likeKeyword
protected String className
protected String ccsidNbr
protected String otherField
protected String dataType
protected char typeChar
protected int typeIndex
protected int length
protected int decimals
protected int from
protected int to
protected String arraySize
protected Vector keywords
protected String dateFormat
protected String timeFormat
protected String fmtString
protected String separator
protected String sample
protected boolean procPointer
protected boolean array
protected boolean packeven
protected RPGSimpleArray arrayField
protected boolean isLengthAllowed
protected boolean isDecimalAllowed
Constructor Detail |
---|
public RPGFieldType()
Method Detail |
---|
public String getDataType()
IDSpec
,
setDataType(String)
public String getDateFormat()
setDateFormat(String)
,
IDSpec
public int getDecimals()
setDecimals(int)
public int getLength()
setLength(int)
public boolean isLikeAnother()
setLikeAnother(boolean)
,
getOtherField()
,
setOtherField(String)
public String getOtherField()
isLikeAnother()
,
setLikeAnother(boolean)
,
setOtherField(String)
public boolean isProcPointer()
setProcPointer(boolean)
public String getSeparator()
setSeparator(String)
,
IDSpec
public String getTimeFormat()
setTimeFormat(String)
,
IDSpec
public void setDataType(String type)
type
- one of the constants defined in the interface IDSpecIDSpec
,
getDataType()
public void setDateFormat(String format)
format
- one of the date format
constants defined in the interface IDSpecgetDateFormat()
public void setDecimals(int i)
i
- the number of decimalsgetDecimals()
public void setLength(int i)
i
- the new length of the fieldgetLength()
public void setLikeAnother(boolean b)
b
- is true if and only if this field is defined
like anotherisLikeAnother()
,
getOtherField()
,
setOtherField(String)
public void setOtherField(String name)
name
- the name of the other fieldisLikeAnother()
,
setLikeAnother(boolean)
,
getOtherField()
public void setProcPointer(boolean b)
b
- is true if and only if this field is a procedure
pointerisProcPointer()
public void setSeparator(String string)
string
- One of the separator constants defined in the
IDSpec interfacegetSeparator()
,
IDSpec
public void setTimeFormat(String format)
format
- one of the time format constants
defined in the IDSpec interface.getTimeFormat()
,
IDSpec
public boolean isArray()
setArray(boolean)
,
createNewArray()
,
getArray()
public void setArray(boolean b)
b
- is true if and only if this FieldDSpec will be
and array.isArray()
,
createNewArray()
,
getArray()
public void setArraySize(String size)
size
- the array size of this Field typeisArray()
,
createNewArray()
,
getArray()
public void createNewArray()
isArray()
,
setArray(boolean)
,
getArray()
public RPGSimpleArray getArray()
isArray()
,
setArray(boolean)
,
createNewArray()
public int getTypeIndex()
public void setTypeIndex(int index)
i
- public String getArraySize()
public char getTypeChar()
public void setTypeChar(char c)
c
- public String getSample()
public void setSample(String sample)
string
- public String getFmtString()
public void setFmtString(String string)
string
- public Vector getKeywords()
public Vector getFieldTypeKeywords()
public void setKeywords(Vector keywds)
vector
- public String getCcsidNbr()
public String getClassName()
public String getLikeKeyword()
public void setCcsidNbr(String string)
string
- public void setClassName(String string)
string
- public void setLikeKeyword(String string)
string
- public boolean isDecimalAllowed()
public boolean isLengthAllowed()
public void setDecimalAllowed(boolean b)
b
- public void setLengthAllowed(boolean b)
b
- public int getFrom()
public int getTo()
public void setFrom(int i)
i
- public void setTo(int i)
i
- public boolean isPackeven()
public void setPackeven(boolean b)
b
-
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |