public class ExpressionMapper extends BaseConverter
| Constructor and Description |
|---|
ExpressionMapper() |
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object existingDestinationFieldValue,
Object sourceFieldValue,
Class<?> destinationClass,
Class<?> sourceClass) |
String |
getExpression()
Used as the source field for Dozer mappings.
|
String |
getExpressionPart()
The actual expression, without the language prefix.
|
String |
getLanguagePart()
The expression language used for this mapping.
|
String |
getPathPart()
The path used for this mapping's resource file.
|
String |
getSchemePart()
The scheme used for this mapping's resource file (classpath, file, http).
|
protected InputStream |
loadResource(String uri)
Loads the given resource.
|
protected String |
resolveScript(String script)
Resolves the script.
|
void |
setCurrentExchange(org.apache.camel.Exchange exchange)
Sets the Camel exchange reference for this mapping.
|
done, getParameter, setParameterpublic Object convert(Object existingDestinationFieldValue, Object sourceFieldValue, Class<?> destinationClass, Class<?> sourceClass)
protected String resolveScript(String script) throws IOException
script - script or uri for a script to loadIOException - is thrown if error loading the scriptprotected InputStream loadResource(String uri) throws IOException
uri - uri of the resource.IOException - is thrown if resource is not found or cannot be loadedpublic String getExpression()
public String getExpressionPart()
public String getLanguagePart()
public void setCurrentExchange(org.apache.camel.Exchange exchange)
exchange - public String getSchemePart()
public String getPathPart()
Apache Camel