Contract encapsulates a list of URIs to prototype objects.
Slots
-
static internal Contract batchIn := Contract([`obix:BatchIn`])
- emptySource
-
static Contract empty := Contract(Uri[,])
The empty contract with no URIs.
- equalsSource
-
override Bool equals(Obj? that)
Overrides sys::Obj.equals
Two contracts are equal if they have the same list of URIs.
- fromStrSource
-
static Contract? fromStr(Str s, Bool checked := false)
Parse a list of encoded URIs separated by space. If format error then throw ParseErr or return null based on checked flag.
- hashSource
-
override Int hash()
Overrides sys::Obj.hash
Hash code is list of URIs.
-
static internal Contract invoke := Contract([`obix:Invoke`])
- isEmptySource
-
Bool isEmpty()
Convenience for
uris.isEmpty
. - makeSource
-
new make(Uri[] uris)
Construct with a list of URIs.
-
static internal Contract read := Contract([`obix:Read`])
- toStrSource
-
override Str toStr()
Overrides sys::Obj.toStr
Return list of encoded uris separated by a space.
- urisSource
-
const Uri[] uris
List of uris.
-
static internal Contract write := Contract([`obix:Write`])