com.ibm.xsp.registry.types
Class FacesSimpleTypes

java.lang.Object
  extended by com.ibm.xsp.registry.types.FacesSimpleTypes

public class FacesSimpleTypes
extends java.lang.Object


Field Summary
static int TYPE_BOOLEAN
           
static int TYPE_BYTE
           
static int TYPE_CHAR
           
static int TYPE_DOUBLE
           
static int TYPE_FLOAT
           
static int TYPE_GENERIC
          The generic type.
static int TYPE_INT
           
static int TYPE_LONG
           
static int TYPE_OBJECT
          Object type (need a FacesDefinition to be complete).
static int TYPE_PRIMITIVE_OBJECT
          Objects that are handled as primitive types
static int TYPE_SHORT
           
static int TYPE_STRING
           
static int TYPE_UNKNOWN
           
 
Constructor Summary
FacesSimpleTypes()
           
 
Method Summary
static int getType(java.lang.Class<?> javaClass)
           
static boolean isGeneric(int type)
           
static boolean isPrimitive(int type)
           
static boolean isPrimitiveObject(int type)
           
static boolean isSomeObject(int type)
          If the type specifies some non-generic object.
static java.lang.String toString(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_UNKNOWN

public static final int TYPE_UNKNOWN
See Also:
Constant Field Values

TYPE_CHAR

public static final int TYPE_CHAR
See Also:
Constant Field Values

TYPE_BYTE

public static final int TYPE_BYTE
See Also:
Constant Field Values

TYPE_SHORT

public static final int TYPE_SHORT
See Also:
Constant Field Values

TYPE_INT

public static final int TYPE_INT
See Also:
Constant Field Values

TYPE_LONG

public static final int TYPE_LONG
See Also:
Constant Field Values

TYPE_FLOAT

public static final int TYPE_FLOAT
See Also:
Constant Field Values

TYPE_DOUBLE

public static final int TYPE_DOUBLE
See Also:
Constant Field Values

TYPE_BOOLEAN

public static final int TYPE_BOOLEAN
See Also:
Constant Field Values

TYPE_STRING

public static final int TYPE_STRING
See Also:
Constant Field Values

TYPE_PRIMITIVE_OBJECT

public static final int TYPE_PRIMITIVE_OBJECT
Objects that are handled as primitive types

See Also:
Constant Field Values

TYPE_OBJECT

public static final int TYPE_OBJECT
Object type (need a FacesDefinition to be complete). Implies that the java class is not java.lang.Object, but is some subclass of it or an interface.

See Also:
Constant Field Values

TYPE_GENERIC

public static final int TYPE_GENERIC
The generic type. Implies that the java class is java.lang.Object.

See Also:
Constant Field Values
Constructor Detail

FacesSimpleTypes

public FacesSimpleTypes()
Method Detail

isPrimitive

public static boolean isPrimitive(int type)
Parameters:
type -
Returns:
True if the specified type corresponds to a simple type.

isPrimitiveObject

public static boolean isPrimitiveObject(int type)
Parameters:
type -
Returns:
True if the specified type corresponds to one of our primitive objects.

isGeneric

public static boolean isGeneric(int type)
Parameters:
type -
Returns:
True if the specified type corresponds to a generic type.

isSomeObject

public static boolean isSomeObject(int type)
If the type specifies some non-generic object. i.e. any non-primitive, non-string class that isn't Object.class

Parameters:
type -
Returns:

toString

public static java.lang.String toString(int type)
Parameters:
type -
Returns:

getType

public static int getType(java.lang.Class<?> javaClass)