|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedDefinition
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 |
---|
errorHandlerBuilder, errorHandlerRef, 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. |
java.lang.String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
OtherwiseDefinition |
getOtherwise()
|
java.util.List<ProcessorDefinition> |
getOutputs()
|
java.lang.String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
java.util.List<WhenDefinition> |
getWhenClauses()
|
boolean |
isOutputSupported()
|
ChoiceDefinition |
otherwise()
Sets the otherwise node |
void |
setId(java.lang.String value)
Sets the value of the id property. |
void |
setOtherwise(OtherwiseDefinition otherwise)
|
void |
setWhenClauses(java.util.List<WhenDefinition> whenClauses)
|
java.lang.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 java.util.List<ProcessorDefinition> getOutputs()
getOutputs
in class ProcessorDefinition<ChoiceDefinition>
public boolean isOutputSupported()
isOutputSupported
in class ProcessorDefinition<ChoiceDefinition>
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getShortName()
OptionalIdentifiedDefinition
getShortName
in class OptionalIdentifiedDefinition
public Processor createProcessor(RouteContext routeContext) throws java.lang.Exception
ProcessorDefinition
createProcessor
in class ProcessorDefinition<ChoiceDefinition>
java.lang.Exception
public ChoiceDefinition when(Predicate predicate)
predicate
- the predicate
public ExpressionClause<ChoiceDefinition> when()
public ChoiceDefinition otherwise()
public void setId(java.lang.String value)
OptionalIdentifiedDefinition
setId
in class OptionalIdentifiedDefinition
public java.lang.String getLabel()
ProcessorDefinition
getLabel
in class ProcessorDefinition<ChoiceDefinition>
public java.util.List<WhenDefinition> getWhenClauses()
public void setWhenClauses(java.util.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 |