|
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.JMCRPGType
public class JMCRPGType
A Java representation of an RPG type; Also knows how to generate the string for type defn; Note: RPG arrays are modeled as having isRPGArray() return true (and so its rpg type shows what the element type is) and RPG Objects will have isRPGObject() return true. This implies RPG arrays of objects return true for both isRPGArray() and isRPGObject()
Constructor Summary | |
---|---|
JMCRPGType(String displayName,
char rpgType,
int minLength,
int maxLength)
|
|
JMCRPGType(String displayName,
char rpgType,
int minLength,
int maxLength,
boolean varying)
|
|
JMCRPGType(String displayName,
char rpgType,
int minLength,
int maxLength,
boolean varying,
JMCRPGType componentType)
|
Method Summary | |
---|---|
static boolean |
canAddCONSTKeyword(Class c)
|
boolean |
canAddOPTIONSVARSIZEKeyword(int length)
Is the OPTIONS(*VARSIZE) keyword allowed with this type |
static boolean |
canAddVALUEKeyword(Class c)
//Maybe it would be better to have a method "canAddKeyword(String kwd)" instead |
Collection |
genKeywords(int lengthOrDimension,
Class thisJavaClass)
Returns a (possibly empty, but never null) Collection of Strings that are the keywords to be used for this rpg type |
String |
genRPGTypeCode(int lengthOrDimension,
Class thisJavaClass)
If you have a JMCRPGparameter, simply use its genRPGTypeCode() method; otherwise, use this |
String |
getDisplayName()
|
int |
getMaxLength()
|
int |
getMinLength()
|
boolean |
isFixedLength()
Check whether this RPGType's length is fixed by the data type and should not be generated 66109A |
boolean |
isLengthChangable()
Check whether this RPGType's length can be changed (same as getMinLength() != getMaxLength()) |
boolean |
isRPGArrayType()
|
boolean |
isRPGObjectType()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JMCRPGType(String displayName, char rpgType, int minLength, int maxLength, boolean varying, JMCRPGType componentType)
public JMCRPGType(String displayName, char rpgType, int minLength, int maxLength, boolean varying)
public JMCRPGType(String displayName, char rpgType, int minLength, int maxLength)
Method Detail |
---|
public String getDisplayName()
public String genRPGTypeCode(int lengthOrDimension, Class thisJavaClass)
lengthOrDimension
- The length to use as RPG variable lenght or RPG array dimension. Ignored if isLengthChangable() == false and uses getMaxLength() insteadthisJavaClass
- The java class that this represents rpg type
public Collection genKeywords(int lengthOrDimension, Class thisJavaClass)
lengthOrDimension
- thisJavaClass
-
public int getMinLength()
public int getMaxLength()
public boolean isLengthChangable()
public boolean isFixedLength()
public boolean isRPGObjectType()
public boolean isRPGArrayType()
public static boolean canAddCONSTKeyword(Class c)
c
-
public static boolean canAddVALUEKeyword(Class c)
c
-
public boolean canAddOPTIONSVARSIZEKeyword(int length)
int
- length of parameter
66109Apublic String toString()
toString
in class Object
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |