public class TypeSafeTransformer extends Object
ValueResolver to handle transformation of values| Modifier and Type | Method and Description |
|---|---|
Object |
transform(Object value,
org.mule.runtime.api.metadata.DataType valueDataType,
org.mule.runtime.api.metadata.DataType expectedDataType,
Event event)
Given a value) it will try to transform it to the expected type defined in the {@code expectedDataType}
|
public Object transform(Object value, org.mule.runtime.api.metadata.DataType valueDataType, org.mule.runtime.api.metadata.DataType expectedDataType, Event event) throws MessagingException, MessageTransformerException, TransformerException
value - the value to transformvalueDataType - the value's DataTypeexpectedDataType - the expected type's DataTypeevent - the event to perform the transformationMessagingException - If could not be able to find a proper transformer do obtain the desired typeMessageTransformerException - If a problem occurs transforming the valueTransformerException - If a problem occurs transforming the valueCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.