|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedDefinition<Type>
org.apache.camel.model.ProcessorDefinition<ExpressionNode>
org.apache.camel.model.ExpressionNode
public class ExpressionNode
A base class for nodes which contain an expression and a number of outputs
Field Summary |
---|
Fields inherited from class org.apache.camel.model.ProcessorDefinition |
---|
inheritErrorHandler, log |
Constructor Summary | |
---|---|
ExpressionNode()
|
|
ExpressionNode(Expression expression)
|
|
ExpressionNode(ExpressionDefinition expression)
|
|
ExpressionNode(Predicate predicate)
|
Method Summary | |
---|---|
protected void |
configureChild(ProcessorDefinition<?> output)
Strategy for children to do any custom configuration |
protected FilterProcessor |
createFilterProcessor(RouteContext routeContext)
Creates the FilterProcessor from the expression node. |
protected Predicate |
createPredicate(RouteContext routeContext)
Creates the Predicate from the expression node. |
ExpressionDefinition |
getExpression()
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
List<ProcessorDefinition<?>> |
getOutputs()
|
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
boolean |
isOutputSupported()
|
protected void |
preCreateProcessor()
Strategy to execute any custom logic before the Processor is created. |
void |
setExpression(ExpressionDefinition expression)
|
void |
setOutputs(List<ProcessorDefinition<?>> outputs)
|
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition |
---|
description, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setDescription, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionNode()
public ExpressionNode(ExpressionDefinition expression)
public ExpressionNode(Expression expression)
public ExpressionNode(Predicate predicate)
Method Detail |
---|
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in interface NamedNode
getShortName
in class OptionalIdentifiedDefinition<ExpressionNode>
public ExpressionDefinition getExpression()
@Required public void setExpression(ExpressionDefinition expression)
public List<ProcessorDefinition<?>> getOutputs()
getOutputs
in class ProcessorDefinition<ExpressionNode>
public void setOutputs(List<ProcessorDefinition<?>> outputs)
public boolean isOutputSupported()
isOutputSupported
in class ProcessorDefinition<ExpressionNode>
public String getLabel()
ProcessorDefinition
getLabel
in class ProcessorDefinition<ExpressionNode>
protected FilterProcessor createFilterProcessor(RouteContext routeContext) throws Exception
FilterProcessor
from the expression node.
routeContext
- the route context
FilterProcessor
Exception
- is thrown if error creating the processorprotected Predicate createPredicate(RouteContext routeContext)
Predicate
from the expression node.
routeContext
- the route context
protected void configureChild(ProcessorDefinition<?> output)
ProcessorDefinition
configureChild
in class ProcessorDefinition<ExpressionNode>
output
- the child to be added as output to thisprotected void preCreateProcessor()
ProcessorDefinition
Processor
is created.
preCreateProcessor
in class ProcessorDefinition<ExpressionNode>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |