Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Variables

Holds a set of name/value pairs where each value can be a String or a List or a Map.

Hierarchy

  • Variables

Index

Methods

addAll

  • Populates with a JSON object:

    • null are conserved
    • JsonArray is converted to List
    • JsonObject is converted to Map
    • any other value is converted to a string

    Note that nested JSON elements are converted to a string, so { "user": { "first_name": "John", "last_name": "Doe", "address" : { "city": "Paris", etc... } } } flattens the JSON "address" to the string "{"city":"Paris",etc...}".

    Parameters

    • json: {}
      • [key: string]: any

    Returns Variables

clear

  • Returns Variables

get

  • get(name: string): any
  • Parameters

    • name: string

    Returns any

getList

  • getList(name: string): string
  • Parameters

    • name: string

    Returns string

getMap

  • getMap(name: string): {}
  • Parameters

    • name: string

    Returns {}

    • [key: string]: string

getSingle

  • getSingle(name: string): string
  • Parameters

    • name: string

    Returns string

names

  • names(): string
  • Returns string

set

  • Set a single variable.

    Parameters

    • name: string
    • value: string

    Returns Variables

  • Set a list variable.

    Parameters

    • name: string
    • value: string

    Returns Variables

  • Set a map variable.

    Parameters

    • name: string
    • value: {}
      • [key: string]: string

    Returns Variables

setAll

  • Like {@link Variables#addAll} but overwrites previous variables.

    Parameters

    • json: {}
      • [key: string]: any

    Returns Variables

Static variables

  • Returns Variables

  • Create an instance populated from a JSON object:

    • null are conserved
    • JsonArray is converted to List
    • JsonObject is converted to Map
    • any other value is converted to a string

    Note that nested JSON elements are converted to a string, so { "user": { "first_name": "John", "last_name": "Doe", "address" : { "city": "Paris", etc... } } } flattens the JSON "address" to the string "{"city":"Paris",etc...}".

    Parameters

    • json: {}
      • [key: string]: any

    Returns Variables

Generated using TypeDoc