org.sr.common.transformer
Class AbstractTransformer<E>

java.lang.Object
  extended by org.sr.common.transformer.AbstractTransformer<E>
All Implemented Interfaces:
ITransformer<E>
Direct Known Subclasses:
AbstractJSTransformer

public abstract class AbstractTransformer<E>
extends java.lang.Object
implements ITransformer<E>

Abstract base class for object transformers

Author:
Serhat Dirik

Field Summary
 
Fields inherited from interface org.sr.common.transformer.ITransformer
CLASS_HINT_ATTRIBUTE, VALUE_ATTRIBUTE
 
Constructor Summary
AbstractTransformer()
           
 
Method Summary
 java.util.List<java.lang.Class<?>> findConvertibles()
          Gives convertible java types
 boolean isConvertible(java.lang.Class<?> clazz)
          tells if the given class is convertible by the implementation
 boolean isConvertible(java.lang.String className)
          tells if the given class is convertible by the implementation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sr.common.transformer.ITransformer
toJava, toJava, toTargetType, toTargetType
 

Constructor Detail

AbstractTransformer

public AbstractTransformer()
Method Detail

findConvertibles

public java.util.List<java.lang.Class<?>> findConvertibles()
Description copied from interface: ITransformer
Gives convertible java types

Specified by:
findConvertibles in interface ITransformer<E>
Returns:
list of convertible classes

isConvertible

public boolean isConvertible(java.lang.String className)
Description copied from interface: ITransformer
tells if the given class is convertible by the implementation

Specified by:
isConvertible in interface ITransformer<E>
Returns:
true if convertible

isConvertible

public boolean isConvertible(java.lang.Class<?> clazz)
Description copied from interface: ITransformer
tells if the given class is convertible by the implementation

Specified by:
isConvertible in interface ITransformer<E>
Returns:
true if convertible