|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedType<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.OptionalIdentifiedType |
|---|
nodeCounters |
| Constructor Summary | |
|---|---|
ChoiceDefinition()
|
|
| Method Summary | |
|---|---|
Processor |
createProcessor(RouteContext routeContext)
|
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()
|
ChoiceDefinition |
otherwise()
Sets the otherwise node |
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.OptionalIdentifiedType |
|---|
createId, description, getDescription, getId, getNodeCounter, idOrCreate, setDescription, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ChoiceDefinition()
| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getShortName()
OptionalIdentifiedType
getShortName in class OptionalIdentifiedType<ChoiceDefinition>
public Processor createProcessor(RouteContext routeContext)
throws Exception
createProcessor in class ProcessorDefinition<ChoiceDefinition>Exceptionpublic ChoiceDefinition when(Predicate predicate)
predicate - the predicate
public ExpressionClause<ChoiceDefinition> when()
public ChoiceDefinition otherwise()
public String getLabel()
ProcessorDefinition
getLabel in class ProcessorDefinition<ChoiceDefinition>public List<WhenDefinition> getWhenClauses()
public void setWhenClauses(List<WhenDefinition> whenClauses)
public List<ProcessorDefinition> getOutputs()
getOutputs in class ProcessorDefinition<ChoiceDefinition>public OtherwiseDefinition getOtherwise()
public void setOtherwise(OtherwiseDefinition otherwise)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||