|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
UMOSimpleTransformer manages the transformation and or translation
of one type of data to the other. Source data is received, then processed and
returned via the transform() method.
| Field Summary | |
static String |
SERVICE_ID
JDK1.3+ 'Service Provider' specification ( http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html ) |
| Method Summary | |
Object |
clone()
|
String |
getName()
|
UMOTransformer |
getNextTransformer()
|
Class |
getReturnClass()
|
void |
setName(String newName)
|
void |
setNextTransformer(UMOTransformer nextTransformer)
|
void |
setReturnClass(Class theClass)
Sets the expected return type for the transformed data. |
Object |
transform(Object src)
Thransforms the supllied data and returns the result |
| Methods inherited from interface org.mule.umo.lifecycle.Initialisable |
initialise |
| Field Detail |
public static final String SERVICE_ID
| Method Detail |
public Object transform(Object src)
throws TransformerException
src - the data to transform
TransformerException - if a error occurs transforming the data or if the
expected returnClass isn't the same as the transformed datapublic void setName(String newName)
newName - the logical name for the transformerpublic String getName()
public void setReturnClass(Class theClass)
TransformerException will be
thrown.
theClass - the expected return type classpublic Class getReturnClass()
public Object clone()
throws CloneNotSupportedException
CloneNotSupportedExceptionpublic UMOTransformer getNextTransformer()
public void setNextTransformer(UMOTransformer nextTransformer)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||