org.apache.camel.model
Class ChoiceType

java.lang.Object
  extended by org.apache.camel.model.ProcessorType<ChoiceType>
      extended by org.apache.camel.model.ChoiceType
All Implemented Interfaces:
Block

public class ChoiceType
extends ProcessorType<ChoiceType>

Version:
$Revision: 36321 $

Field Summary
 
Fields inherited from class org.apache.camel.model.ProcessorType
DEFAULT_TRACE_CATEGORY
 
Constructor Summary
ChoiceType()
           
 
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
 OtherwiseType getOtherwise()
           
 List<ProcessorType<?>> getOutputs()
           
 List<WhenType> getWhenClauses()
           
 ChoiceType otherwise()
           
 void setOtherwise(OtherwiseType otherwise)
           
 void setWhenClauses(List<WhenType> whenClauses)
           
 String toString()
           
 ExpressionClause<ChoiceType> when()
           
 ChoiceType when(Predicate predicate)
           
 
Methods inherited from class org.apache.camel.model.ProcessorType
addInterceptor, addOutput, addRoutes, aggregator, aggregator, aggregator, aggregator, aggregator, bean, bean, bean, bean, beanRef, beanRef, choice, clearOutput, configureChild, convertBodyTo, convertFaultBodyTo, convertOutBodyTo, createCompositeProcessor, createErrorHandlerBuilder, createOutputsProcessor, createOutputsProcessor, delayer, delayer, delayer, delayer, end, errorHandler, exception, filter, filter, filter, filter, getErrorHandlerBuilder, getInheritErrorHandlerFlag, getNodeFactory, getParent, handleFault, idempotentConsumer, idempotentConsumer, inheritErrorHandler, intercept, intercept, intercept, interceptor, interceptors, isInheritErrorHandler, loadBalance, makeProcessor, marshal, marshal, marshal, marshal, multicast, multicast, multicast, pipeline, pipeline, pipeline, policies, policy, popBlock, proceed, process, processRef, pushBlock, recipientList, recipientList, removeFaultHeader, removeHeader, removeOutHeader, removeProperty, resequencer, resequencer, resequencer, resequencer, routingSlip, routingSlip, routingSlip, setBody, setBody, setErrorHandlerBuilder, setFaultBody, setFaultHeader, setHeader, setHeader, setHeader, setInheritErrorHandlerFlag, setNodeFactory, setOutBody, setOutBody, setOutHeader, setOutHeader, setOutHeader, setParent, setProperty, setProperty, splitter, splitter, splitter, splitter, splitter, splitter, splitter, splitter, thread, thread, throttler, throwFault, throwFault, to, to, to, to, to, trace, trace, transform, transform, tryBlock, unmarshal, unmarshal, unmarshal, unmarshal, wrapInErrorHandler, wrapProcessor, wrapProcessorInInterceptors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChoiceType

public ChoiceType()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

createProcessor

public Processor createProcessor(RouteContext routeContext)
                          throws Exception
Overrides:
createProcessor in class ProcessorType<ChoiceType>
Throws:
Exception

when

public ChoiceType when(Predicate predicate)

when

public ExpressionClause<ChoiceType> when()

otherwise

public ChoiceType otherwise()

getLabel

public String getLabel()
Description copied from class: ProcessorType
Returns a label to describe this node such as the expression if some kind of expression node

Overrides:
getLabel in class ProcessorType<ChoiceType>

getWhenClauses

public List<WhenType> getWhenClauses()

setWhenClauses

public void setWhenClauses(List<WhenType> whenClauses)

getOutputs

public List<ProcessorType<?>> getOutputs()
Specified by:
getOutputs in class ProcessorType<ChoiceType>

getOtherwise

public OtherwiseType getOtherwise()

setOtherwise

public void setOtherwise(OtherwiseType otherwise)


Copyright © 2008 IONA Open Source Community. All Rights Reserved.