const mixincamAxonPlugin::Dict

camAxonPlugin::Dict

@Js

Dict is a map of name/value pairs which is consistently models Rows, grid meta-data, and name/value object literals. Dict is characterized by:

  • names must match Etc.isTagName rules
  • values must be one of the built-in scalar types (see Kind)
  • get [] access returns null if name not found
  • trap -> access throws exception if name not found

Also see Etc.emptyDict, Etc.makeDict.

dis

Source

virtual Str? dis(Str? name := null, Str? def := "")

Get display string for dict or the given tag. If name is null, then return display text for the entire dict using Etc.dictToDis. If name is non-null then format the tag value using its appropiate toLocale method. If name is not defined by this dict, then return def.

each

Source

abstract Void each(|Obj?,Str f)

Iterate through the name/value pairs

get

Source

@Operator
abstract Obj? get(Str name, Obj? def := null)

Get the value for the given name or def is not mapped

has

Source

abstract Bool has(Str name)

Return true if the given name is mapped to a non-null value.

id

Source

Ref id()

Get the id tag as a Ref or raise CastErr/UnknownNameErr

isEmpty

Source

abstract Bool isEmpty()

Return if the there are no name/value pairs

missing

Source

abstract Bool missing(Str name)

Return true if the given name is not mapped to a non-null value.

toDis

Source

@Deprecated
Str toDis(Str def := "???")

Deprecated - use dis

trap

Source

abstract override Obj? trap(Str name, Obj?[]? args := null)

Get the value mapped by the given name. If it is not mapped to a non-null value, then throw an UnknownNameErr.