public class ImageTransformer extends java.lang.Object implements IDataTransformer
Image
based on the given
parameter (which is used as a filename and passed to filename (incl.
extension, e.g. ".asset") that is than passed to
AbstractApplicationController.loadImage(String)
).TYPE_BOOLEAN, TYPE_DATE, TYPE_ENTITY, TYPE_IMAGE, TYPE_JSON_OBJECT, TYPE_LONG, TYPE_NONE, TYPE_STRING, TYPE_XML_STRING
Constructor and Description |
---|
ImageTransformer() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
transform(java.lang.Object object,
int intoType)
Transforms the given object into the type identified by
intoType . |
public java.lang.Object transform(java.lang.Object object, int intoType)
IDataTransformer
intoType
. Supported types are defined in
IDataTransformer
.transform
in interface IDataTransformer
object
- the object to be convertedintoType
- the type the object should be converted into