IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.base.types.impl.utils
Class TypeUtils

java.lang.Object
  extended by com.ibm.btt.base.types.impl.utils.TypeUtils

public class TypeUtils
extends java.lang.Object


Method Summary
 void clear()
          Clear the cache
static java.lang.Object createInstance(java.lang.Class<?> klass)
           
 java.lang.Class<?> getDataFieldImplClass(java.lang.Class<?> klass)
           
 java.util.List<FieldAttribute> getFieldAttributes(java.lang.Class<?> source)
          Search and return all the declared and inherited fields of given class.
static TypeUtils getInstance()
          Get the instance of com.ibm.btt.base.types.impl.utils.TypeUtils
 java.lang.Class<?> getParamBeanImplClass(java.lang.Class<?> klass)
          Search and return the implement class of parameter bean used in the BaseConverter and BaseValidator This method will catch the search result automatically to improve the reflection performance.
protected  java.lang.reflect.Type[] getParameterizedTypeArguments(java.lang.Class<?> klass)
           
static boolean isSameClass(java.lang.Class<?> arg1, java.lang.Class<?> arg2, boolean arg3)
           
static void setFieldValue(java.lang.Class<?> source, java.lang.reflect.Field field, java.lang.Object instance, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TypeUtils getInstance()
Get the instance of com.ibm.btt.base.types.impl.utils.TypeUtils

Returns:
Instance

getFieldAttributes

public java.util.List<FieldAttribute> getFieldAttributes(java.lang.Class<?> source)
Search and return all the declared and inherited fields of given class.

Parameters:
source - class to search
Returns:
a list of FieldAttribute, include all the fields and related attributes.

getParamBeanImplClass

public java.lang.Class<?> getParamBeanImplClass(java.lang.Class<?> klass)
Search and return the implement class of parameter bean used in the BaseConverter and BaseValidator This method will catch the search result automatically to improve the reflection performance. If you do not want to catch that, you can use clear() method to clean the cache.

Parameters:
klass - class of BaseConverter or BaseValidator.
Returns:
implement class of parameter bean

getDataFieldImplClass

public java.lang.Class<?> getDataFieldImplClass(java.lang.Class<?> klass)

clear

public void clear()
Clear the cache


getParameterizedTypeArguments

protected java.lang.reflect.Type[] getParameterizedTypeArguments(java.lang.Class<?> klass)

createInstance

public static java.lang.Object createInstance(java.lang.Class<?> klass)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

setFieldValue

public static void setFieldValue(java.lang.Class<?> source,
                                 java.lang.reflect.Field field,
                                 java.lang.Object instance,
                                 java.lang.Object value)
                          throws DSETypeException
Throws:
DSETypeException

isSameClass

public static boolean isSameClass(java.lang.Class<?> arg1,
                                  java.lang.Class<?> arg2,
                                  boolean arg3)

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011