type
Ref
@Js
@Serializable { simple=true }
const class Ref : Ref
Ref is used to model a record identifier and optional display string.
constructors
| fromStr |
Make with simple id |
|---|---|
| make |
Construct with id string and optional display string. |
| makeWithDis |
Construct with Ref id string and optional display string. |
fields
methods
| dis |
Return display value of target if available, otherwise |
|---|---|
| equals |
Equality is based on |
| gen |
Generate a unique Ref. |
| hash |
Hash |
| id |
Identifier which does not include the leading |
| isId |
Return if the string is a valid Ref identifier. |
| isIdChar |
Is the given character a valid id char |
| isNull |
Null ref has id value of "null"? |
| isSpec |
Is this a spec ref with double colons |
| toCode |
Return "@id" |
| toId |
Take an arbitrary string and convert into a safe Ref identifier. |
| toStr |
String format is |
Slot Details
defVal
dis
equals
fromStr
gen
static Ref gen()
Generate a unique Ref.
hash
id
virtual override Str id()
Identifier which does not include the leading @
isId
isIdChar
isNull
Bool isNull()
Null ref has id value of "null"?
isSpec
Bool isSpec()
Is this a spec ref with double colons
make
makeWithDis
nullRef
const static Ref nullRef := Ref.<ctor>("null")
Null ref is "@null"
toCode
Str toCode()
Return "@id"