|
|||||||||||
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 java.lang.String |
SERVICE_ID
JDK1.3+ 'Service Provider' specification ( http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html ) |
Method Summary | |
java.lang.Object |
clone()
|
java.lang.String |
getName()
|
java.lang.Class |
getReturnClass()
|
UMOTransformer |
getTransformer()
|
void |
setName(java.lang.String newName)
|
void |
setReturnClass(java.lang.Class theClass)
Sets the expected return type for the transformed data. |
void |
setTransformer(UMOTransformer transformer)
|
java.lang.Object |
transform(java.lang.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 java.lang.String SERVICE_ID
Method Detail |
public java.lang.Object transform(java.lang.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(java.lang.String newName)
newName
- the logical name for the transformerpublic java.lang.String getName()
public void setReturnClass(java.lang.Class theClass)
TransformerException
will be thrown.
theClass
- the expected return type classpublic java.lang.Class getReturnClass()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public UMOTransformer getTransformer()
public void setTransformer(UMOTransformer transformer)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |