Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.generator.model
Class JMCRPGTypeManager

java.lang.Object
  extended by com.ibm.etools.iseries.edit.generator.model.JMCRPGTypeManager

public class JMCRPGTypeManager
extends Object


Method Summary
static int getIndexOfRpgByteSizeOfArrayComponentType(Class type)
          Return the number of bytes the equivalent RPG type would consume if it was a component type of an RPG array.
static JMCRPGTypeManager getInstance()
           
 JMCRPGType[] getRPGTypes(Class c)
           
 String[] getRPGTypesDisplayStrings(Class c)
           
protected  boolean isRPGArray(JMCRPGType t)
          Returns true if the provided JMCRPGType maps to an rpg Array
protected  boolean isRPGObject(JMCRPGType t)
          Returns true if the provided JMCRPGType maps to an rpg Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static JMCRPGTypeManager getInstance()

getRPGTypes

public JMCRPGType[] getRPGTypes(Class c)
Parameters:
c -
Returns:
Array of types mapped to c; will NOT return null

getRPGTypesDisplayStrings

public String[] getRPGTypesDisplayStrings(Class c)
Parameters:
c -
Returns:
Array of the display strings of the types mapped to c; will NOT return null

getIndexOfRpgByteSizeOfArrayComponentType

public static int getIndexOfRpgByteSizeOfArrayComponentType(Class type)
Return the number of bytes the equivalent RPG type would consume if it was a component type of an RPG array.

Parameters:
type - - the Java class being mapped to an RPG array component type 66109A

isRPGObject

protected boolean isRPGObject(JMCRPGType t)
Returns true if the provided JMCRPGType maps to an rpg Object

Parameters:
t -
Returns:

isRPGArray

protected boolean isRPGArray(JMCRPGType t)
Returns true if the provided JMCRPGType maps to an rpg Array

Parameters:
t -
Returns:

Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.