|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transformer
Transformer
can be chained together to covert message payloads
from one object type to another.
Field Summary |
---|
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Method Summary | |
---|---|
Class |
getReturnClass()
|
List |
getSourceTypes()
Returns an unmodifiable list of Source types registered on this transformer |
boolean |
isAcceptNull()
Does this transformer allow null input? |
boolean |
isIgnoreBadInput()
|
boolean |
isSourceTypeSupported(Class aClass)
Determines if a particular source class can be handled by this transformer |
void |
setReturnClass(Class theClass)
Sets the expected return type for the transformed data. |
Object |
transform(Object src)
Thransforms the supplied data and returns the result |
Methods inherited from interface org.mule.api.transformer.BaseTransformer |
---|
getEndpoint, setEndpoint |
Methods inherited from interface org.mule.api.lifecycle.Initialisable |
---|
initialise |
Methods inherited from interface org.mule.api.NamedObject |
---|
getName, setName |
Method Detail |
---|
boolean isSourceTypeSupported(Class aClass)
aClass
- The class to check for compatability
List getSourceTypes()
boolean isAcceptNull()
boolean isIgnoreBadInput()
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 datavoid setReturnClass(Class theClass)
TransformerException
will be
thrown.
theClass
- the expected return type classClass getReturnClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |