public class SimpleBuilder extends Object implements org.apache.camel.Predicate, org.apache.camel.Expression, org.apache.camel.spi.ExpressionResultTypeAware, org.apache.camel.spi.PropertyConfigurer
org.apache.camel.language.simple.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 |
|---|---|
boolean |
configure(org.apache.camel.CamelContext camelContext,
Object target,
String name,
Object value,
boolean ignoreCase) |
org.apache.camel.Expression |
createExpression(org.apache.camel.CamelContext context) |
org.apache.camel.Predicate |
createPredicate(org.apache.camel.CamelContext context) |
<T> T |
evaluate(org.apache.camel.Exchange exchange,
Class<T> type) |
String |
getExpressionText() |
Class<?> |
getResultType() |
String |
getText() |
void |
init(org.apache.camel.CamelContext context) |
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 boolean configure(org.apache.camel.CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase)
configure in interface org.apache.camel.spi.PropertyConfigurerpublic 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 void init(org.apache.camel.CamelContext context)
init in interface org.apache.camel.Expressioninit in interface org.apache.camel.Predicatepublic 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.Expressionpublic org.apache.camel.Predicate createPredicate(org.apache.camel.CamelContext context)
public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext context)
Apache Camel