public class SimpleBuilder extends Object implements org.apache.camel.Predicate, org.apache.camel.Expression, org.apache.camel.spi.ExpressionResultTypeAware
Simple language builder.
This builder is available in the Java DSL from the RouteBuilder which
means that using simple language for Expressions or
Predicates is very easy with the help of this builder.| Constructor and Description |
|---|
SimpleBuilder(String text) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
evaluate(org.apache.camel.Exchange exchange,
Class<T> type) |
String |
getExpressionText() |
Class<?> |
getResultType() |
String |
getText() |
boolean |
matches(org.apache.camel.Exchange exchange) |
SimpleBuilder |
resultType(Class<?> resultType) |
void |
setResultType(Class<?> resultType) |
static SimpleBuilder |
simple(String text) |
static SimpleBuilder |
simple(String text,
Class<?> resultType) |
static SimpleBuilder |
simpleF(String formatText,
Class<?> resultType,
Object... values) |
static SimpleBuilder |
simpleF(String formatText,
Object... values) |
String |
toString() |
public SimpleBuilder(String text)
public static SimpleBuilder simple(String text)
public static SimpleBuilder simple(String text, Class<?> resultType)
public static SimpleBuilder simpleF(String formatText, Object... values)
public static SimpleBuilder simpleF(String formatText, Class<?> resultType, Object... values)
public String getExpressionText()
getExpressionText in interface org.apache.camel.spi.ExpressionResultTypeAwarepublic Class<?> getResultType()
getResultType in interface org.apache.camel.spi.ExpressionResultTypeAwarepublic void setResultType(Class<?> resultType)
public SimpleBuilder resultType(Class<?> resultType)
public boolean matches(org.apache.camel.Exchange exchange)
matches in interface org.apache.camel.Predicatepublic <T> T evaluate(org.apache.camel.Exchange exchange, Class<T> type)
evaluate in interface org.apache.camel.ExpressionApache Camel