|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- Target Transformation Typepublic interface ITransformer<E>
Base interface for transformer classes.
Field Summary | |
---|---|
static java.lang.String |
CLASS_HINT_ATTRIBUTE
Results of of complex object transformations from java may need to keep source class name for back transformations. |
static java.lang.String |
VALUE_ATTRIBUTE
Results of complex object transformations from java may need to keep both source java class and naturally object value together with for the back transformation. |
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 |
java.lang.Object |
toJava(java.lang.Class<?> clazz,
E obj)
Transforms from target type to Java |
java.lang.Object |
toJava(E obj)
Transforms from target type to Java |
E |
toTargetType(java.lang.Object o)
Converts java object to targetted type |
E |
toTargetType(java.lang.Object o,
ObjectReferenceMap referenceMap)
Converts java object to targetted type |
Field Detail |
---|
static final java.lang.String CLASS_HINT_ATTRIBUTE
static final java.lang.String VALUE_ATTRIBUTE
Method Detail |
---|
E toTargetType(java.lang.Object o, ObjectReferenceMap referenceMap) throws TransformationException, TransformationNotSupportedException
o
- source java objectreferenceMap
- this parameters usually created by highest level transformer to control cyclic dependencies
TransformationException
TransformationNotSupportedException
E toTargetType(java.lang.Object o) throws TransformationException, TransformationNotSupportedException
o
- source java object
TransformationException
TransformationNotSupportedException
java.lang.Object toJava(E obj) throws TransformationException, TransformationNotSupportedException
obj
- source object
TransformationException
TransformationNotSupportedException
java.lang.Object toJava(java.lang.Class<?> clazz, E obj) throws TransformationException, TransformationNotSupportedException
clazz
- to be transformed java classobj
- source object
TransformationException
TransformationNotSupportedException
java.util.List<java.lang.Class<?>> findConvertibles()
boolean isConvertible(java.lang.Class<?> clazz)
clazz
-
boolean isConvertible(java.lang.String className)
className
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |