Class SetVariableDefinition

All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.LineNumberAware, Block, HasExpressionType, org.apache.camel.NamedNode, org.apache.camel.spi.HasCamelContext, org.apache.camel.spi.HasId, org.apache.camel.spi.IdAware

@Metadata(label="eip,transformation") public class SetVariableDefinition extends ExpressionNode
Sets the value of a variable
  • Constructor Details

    • SetVariableDefinition

      public SetVariableDefinition()
    • SetVariableDefinition

      public SetVariableDefinition(String name, ExpressionDefinition expression)
    • SetVariableDefinition

      public SetVariableDefinition(String name, org.apache.camel.Expression expression)
    • SetVariableDefinition

      public SetVariableDefinition(String name, String value)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getShortName

      public String getShortName()
    • getLabel

      public String getLabel()
      Description copied from class: ProcessorDefinition
      Returns a label to describe this node such as the expression if some kind of expression node
      Specified by:
      getLabel in interface org.apache.camel.NamedNode
      Overrides:
      getLabel in class ExpressionNode
    • setExpression

      public void setExpression(ExpressionDefinition expression)
      Expression to return the value of the variable
      Overrides:
      setExpression in class ExpressionNode
    • setName

      public void setName(String name)
      Name of variable to set a new value

      The simple language can be used to define a dynamic evaluated variable name to be used. Otherwise a constant name will be used.

    • getName

      public String getName()