de.uni_paderborn.tools.fsa
Class FSATypeConverterCache

java.lang.Object
  extended byde.uni_paderborn.tools.fsa.FSATypeConverterCache

public class FSATypeConverterCache
extends java.lang.Object

cache "converter" methods from sourcetype to targettype

Version:
$Revision: 1.23 $
Author:
$Author: schneider $

Field Summary
static java.lang.String DEFAULT_CONVERTER_METHOD
          No comment provided by developer, please add a comment to improve documentation.
 
Method Summary
 java.lang.String createMethodCacheKey(java.lang.Class sourceClass, java.lang.Class targetClass)
          compute key for methodCache
 java.lang.String createMethodCacheKey(java.lang.Class sourceClass, java.lang.Class targetClass, java.lang.String methodName)
          compute key for methodCache
static FSATypeConverterCache get()
          get the Singleton instance
 java.lang.reflect.Method[] getConverterMethods(java.lang.Class sourceClass, java.lang.Class targetClass)
          get all static methods from FSATypeConverterCache with result= and parameter=
 java.lang.reflect.Method getDefaultConverterMethods(java.lang.Class sourceClass, java.lang.Class targetClass)
          get default converter method
<[sourceClass.name]To[targetClass.name]> ( )
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONVERTER_METHOD

public static final java.lang.String DEFAULT_CONVERTER_METHOD
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values
Method Detail

get

public static FSATypeConverterCache get()
get the Singleton instance

Returns:
the Singleton instance

getDefaultConverterMethods

public java.lang.reflect.Method getDefaultConverterMethods(java.lang.Class sourceClass,
                                                           java.lang.Class targetClass)
get default converter method
<[sourceClass.name]To[targetClass.name]> ( )

Parameters:
targetClass - the target/result class
sourceClass - the source/parameter class
Returns:
the default method which converts to

getConverterMethods

public java.lang.reflect.Method[] getConverterMethods(java.lang.Class sourceClass,
                                                      java.lang.Class targetClass)
get all static methods from FSATypeConverterCache with result= and parameter=

Parameters:
targetClass - the target/result class
sourceClass - the source/parameter class
Returns:
all static method from FSATypeConverterCache aMethodName ( )

createMethodCacheKey

public java.lang.String createMethodCacheKey(java.lang.Class sourceClass,
                                             java.lang.Class targetClass,
                                             java.lang.String methodName)
compute key for methodCache

Parameters:
methodName - the methodname
targetClass - the target Class
sourceClass - the source Class
Returns:
the key

createMethodCacheKey

public java.lang.String createMethodCacheKey(java.lang.Class sourceClass,
                                             java.lang.Class targetClass)
compute key for methodCache

Parameters:
targetClass - the target Class
sourceClass - the source Class
Returns:
the key