|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.model.OptionalIdentifiedDefinition<Type> org.apache.camel.model.ProcessorDefinition<ChoiceDefinition> org.apache.camel.model.ChoiceDefinition
public class ChoiceDefinition
Represents an XML <choice/> element
Field Summary |
---|
Fields inherited from class org.apache.camel.model.ProcessorDefinition |
---|
inheritErrorHandler, log |
Constructor Summary | |
---|---|
ChoiceDefinition()
|
Method Summary | |
---|---|
protected void |
configureChild(ProcessorDefinition<?> output)
Strategy for children to do any custom configuration |
Processor |
createProcessor(RouteContext routeContext)
Override this in definition class and implement logic to create the processor based on the definition model. |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
OtherwiseDefinition |
getOtherwise()
|
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 |
List<WhenDefinition> |
getWhenClauses()
|
boolean |
isOutputSupported()
|
ChoiceDefinition |
otherwise()
Sets the otherwise node |
void |
setId(String value)
Sets the value of the id property. |
void |
setOtherwise(OtherwiseDefinition otherwise)
|
void |
setWhenClauses(List<WhenDefinition> whenClauses)
|
String |
toString()
|
ExpressionClause<ChoiceDefinition> |
when()
Creates an expression for the when node |
ChoiceDefinition |
when(Predicate predicate)
Sets the predicate for the when node |
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition |
---|
description, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setDescription |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChoiceDefinition()
Method Detail |
---|
public List<ProcessorDefinition<?>> getOutputs()
getOutputs
in class ProcessorDefinition<ChoiceDefinition>
public boolean isOutputSupported()
isOutputSupported
in class ProcessorDefinition<ChoiceDefinition>
public String toString()
toString
in class Object
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in interface NamedNode
getShortName
in class OptionalIdentifiedDefinition<ChoiceDefinition>
public Processor createProcessor(RouteContext routeContext) throws Exception
ProcessorDefinition
createProcessor
in class ProcessorDefinition<ChoiceDefinition>
Exception
public ChoiceDefinition when(Predicate predicate)
predicate
- the predicate
public ExpressionClause<ChoiceDefinition> when()
public ChoiceDefinition otherwise()
public void setId(String value)
OptionalIdentifiedDefinition
setId
in class OptionalIdentifiedDefinition<ChoiceDefinition>
public String getLabel()
ProcessorDefinition
getLabel
in class ProcessorDefinition<ChoiceDefinition>
public List<WhenDefinition> getWhenClauses()
public void setWhenClauses(List<WhenDefinition> whenClauses)
public OtherwiseDefinition getOtherwise()
public void setOtherwise(OtherwiseDefinition otherwise)
protected void configureChild(ProcessorDefinition<?> output)
ProcessorDefinition
configureChild
in class ProcessorDefinition<ChoiceDefinition>
output
- the child to be added as output to this
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |