Package com.singularsys.jep.misc.publishingvariable

# Class VariableTableAction

java.lang.Object
com.singularsys.jep.misc.publishingvariable.VariableTableAction

All Implemented Interfaces:
  `Serializable`

public class VariableTableAction extends Object implements Serializable
Contains details of an action on a variable table or a change in a variable.

See Also:
  - Serialized Form

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static enum`
  `VariableTableAction.Actions`
  The type of action

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `VariableTableAction(VariableTableAction.Actions action)`
  An action with no associated variable
  `VariableTableAction(VariableTableAction.Actions action, String name, Object oldValue, Object newValue)`
  An action with an associated variable

- ## Method Summary

  Modifier and Type
  Method
  Description
  `VariableTableAction.Actions`
  `getAction()`
  `String`
  `getName()`
  Returns the name of the variable.
  `Object`
  `getNewValue()`
  Return the value the variable was set to.
  `Object`
  `getOldValue()`
  Returns the previous value of the variable
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### VariableTableAction

    public VariableTableAction(VariableTableAction.Actions action)
    An action with no associated variable
    Parameters:
      `action` - type of action

  - ### VariableTableAction

    public VariableTableAction(VariableTableAction.Actions action, String name, Object oldValue, Object newValue)
    An action with an associated variable
    Parameters:
      `action` - type of action
      `name` - the name of the variable
      `oldValue` - the previous value of the variable
      `newValue` - the new value of the variable

- ## Method Details

  - ### getName

    public String getName()
    Returns the name of the variable.
    Returns:
      the variable name or null if not set

  - ### getOldValue

    public Object getOldValue()
    Returns the previous value of the variable
    Returns:
      the old value

  - ### getNewValue

    public Object getNewValue()
    Return the value the variable was set to. This value may not reflect the current value of the variable.
    Returns:
      the value

  - ### getAction

    public VariableTableAction.Actions getAction()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`