Package org.apache.camel.model
Class OtherwiseDefinition
java.lang.Object
org.apache.camel.model.OptionalIdentifiedDefinition<OtherwiseDefinition>
org.apache.camel.model.OtherwiseDefinition
- All Implemented Interfaces:
org.apache.camel.CamelContextAware
,org.apache.camel.LineNumberAware
,Block
,CopyableDefinition<OtherwiseDefinition>
,DisabledAwareDefinition
,OutputNode
,org.apache.camel.NamedNode
,org.apache.camel.spi.HasCamelContext
,org.apache.camel.spi.HasId
,org.apache.camel.spi.IdAware
@Metadata(label="eip,routing")
public class OtherwiseDefinition
extends OptionalIdentifiedDefinition<OtherwiseDefinition>
implements CopyableDefinition<OtherwiseDefinition>, Block, DisabledAwareDefinition, OutputNode
Route to be executed when all other choices evaluate to false
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOutput
(ProcessorDefinition<?> output) Adds the given definition as output to this blockMakes a copy of this definition.Disables this EIP from the route during build time.getLabel()
Gets the outputsvoid
setDisabled
(String disabled) Disables this EIP from the route during build time.void
Sets the id of this nodevoid
setOutputs
(List<ProcessorDefinition<?>> outputs) void
setParent
(ProcessorDefinition<?> parent) toString()
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition
description, getCamelContext, getCustomId, getDescription, getDescriptionText, getId, getLineNumber, getLocation, getNodePrefixId, hasCustomIdAssigned, id, idOrCreate, setCamelContext, setCustomId, setDescription, setGeneratedId, setLineNumber, setLocation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.NamedNode
acceptDebugger
-
Constructor Details
-
OtherwiseDefinition
public OtherwiseDefinition() -
OtherwiseDefinition
-
-
Method Details
-
copyDefinition
Description copied from interface:CopyableDefinition
Makes a copy of this definition.- Specified by:
copyDefinition
in interfaceCopyableDefinition<OtherwiseDefinition>
-
getOutputs
Description copied from interface:OutputNode
Gets the outputs- Specified by:
getOutputs
in interfaceOutputNode
-
setOutputs
-
getParent
- Specified by:
getParent
in interfaceorg.apache.camel.NamedNode
- Overrides:
getParent
in classOptionalIdentifiedDefinition<OtherwiseDefinition>
-
setParent
-
addOutput
Description copied from interface:Block
Adds the given definition as output to this block -
setId
Description copied from class:OptionalIdentifiedDefinition
Sets the id of this node- Specified by:
setId
in interfaceorg.apache.camel.spi.IdAware
- Overrides:
setId
in classOptionalIdentifiedDefinition<OtherwiseDefinition>
-
toString
-
getShortName
- Specified by:
getShortName
in interfaceorg.apache.camel.NamedNode
-
getLabel
- Specified by:
getLabel
in interfaceorg.apache.camel.NamedNode
-
getDisabled
Description copied from interface:DisabledAwareDefinition
Disables this EIP from the route during build time. Once an EIP has been disabled then it cannot be enabled later at runtime.- Specified by:
getDisabled
in interfaceDisabledAwareDefinition
-
setDisabled
Description copied from interface:DisabledAwareDefinition
Disables this EIP from the route during build time. Once an EIP has been disabled then it cannot be enabled later at runtime.- Specified by:
setDisabled
in interfaceDisabledAwareDefinition
-