Packages

c

com.silectis.magpie.runtime

VariableContext

class VariableContext extends MagpieStringUtils

A context object that stores and provides access to variables.

Available via the variables field on the MagpieContext

Example usage:

scala> mc.variables.set("my_var", 5)

scala> mc.variables.get("my_var")
res1: Integer = 5

scala> mc.variables.exists("my_var")
res2: Boolean = mtrue

scala> mc.variables.clear()
Linear Supertypes
MagpieStringUtils, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VariableContext
  2. MagpieStringUtils
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VariableContext(rc: RuntimeContext, contextHolder: ActionContextHolder)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clear(): Unit

    Clears all variables set in the context.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def exists(name: String): Boolean

    Determine whether a variable is defined in the context.

    Determine whether a variable is defined in the context.

    name

    variable name

    returns

    whether the variable is defined

  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def get(name: String): Any

    Get the value of a variable.

    Get the value of a variable.

    name

    variable name

    returns

    variable value

  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def list(): Seq[String]

    List all variables defined in the current context.

    List all variables defined in the current context.

    returns

    A list of variable names

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def remove(name: String): Unit

    Unset a particular variable in the context.

    Unset a particular variable in the context.

    name

    variable name

  20. def set(name: String, value: Any): Unit

    Set a variable to the given value in the context.

    Set a variable to the given value in the context.

    name

    variable name

    value

    variable value

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toCamelCase(s: String): String

    Converts CapitalCamelCase to camelCase

    Converts CapitalCamelCase to camelCase

    s

    to string to be converted

    returns

    a camelCase string

    Attributes
    protected
    Definition Classes
    MagpieStringUtils
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from MagpieStringUtils

Inherited from AnyRef

Inherited from Any

Ungrouped