|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.iseries.editor.generator.model.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)
|
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 |
isLengthChangable()
Check whether this RPGType's length can be changed (same as getMinLength() != getMaxLength()) |
boolean |
isRPGArrayType()
|
boolean |
isRPGObjectType()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 isRPGObjectType()
public boolean isRPGArrayType()
public static boolean canAddCONSTKeyword(Class c)
c
-
public static boolean canAddVALUEKeyword(Class c)
c
-
|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |