com.hyper9.simdk.codegen
Class TypeUtils

java.lang.Object
  extended by com.hyper9.simdk.codegen.TypeUtils

public class TypeUtils
extends Object


Constructor Summary
TypeUtils()
           
 
Method Summary
static String getComponentType(String typeSimpleName)
          Gets the component type of a List type.
static boolean isList(String typeSimpleName)
          Gets a flag indicating whether the given simple type name is a List.
static boolean isPrimtiveDataType(String typeSimpleName)
          Gets a flag indicating whether or no the given simple type name is one of the Java Framework's primitive types.
static boolean isSimpleDataType(String typeSimpleName)
          Gets a flag indicating whether or not the given simple type name is one of the Java Framework's simple data types.
static boolean isTemporalType(String typeSimpleName)
           
static String toSimpleDataType(String primitiveTypeSimpleName)
          Takes a primitive type simple name and returns the simple type name of its simple data type equivalent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeUtils

public TypeUtils()
Method Detail

getComponentType

public static String getComponentType(String typeSimpleName)
Gets the component type of a List type.

Parameters:
typeSimpleName - A simple type name that is a List. If a List is not provided the value of typeSimpleName will be returned as is.
Returns:
The component type of a List type.

isList

public static boolean isList(String typeSimpleName)
Gets a flag indicating whether the given simple type name is a List.

Parameters:
outTypeSimpleName - A simple type name.
Returns:
A flag indicating whether the given simple type name is a List.

isSimpleDataType

public static boolean isSimpleDataType(String typeSimpleName)
Gets a flag indicating whether or not the given simple type name is one of the Java Framework's simple data types.

Parameters:
typeSimpleName - A simple type name.
Returns:
A flag indicating whether or not the given simple type name is one of the Java Framework's simple data types.

isPrimtiveDataType

public static boolean isPrimtiveDataType(String typeSimpleName)
Gets a flag indicating whether or no the given simple type name is one of the Java Framework's primitive types.

Parameters:
typeSimpleName - A simple type name.
Returns:
A flag indicating whether or no the given simple type name is one of the Java Framework's primitive types.

isTemporalType

public static boolean isTemporalType(String typeSimpleName)

toSimpleDataType

public static String toSimpleDataType(String primitiveTypeSimpleName)
Takes a primitive type simple name and returns the simple type name of its simple data type equivalent. If no equivalent can be found then the parameter is returned.

Parameters:
primitiveTypeSimpleName - A simple type name of a Java primitive.
Returns:
The simple type name of the given primitive's simple data type equivalent.


Copyright © 2009-2010 Hyper9. All Rights Reserved.