DataInstance class abstract
An instance: a tree of TreeElements under a hidden base node.
Port of org.javarosa.core.model.instance.DataInstance (without
JavaRosa's storage fields).
- Implementers
Constructors
- DataInstance([String? instanceId])
-
Creates an instance with optional
instanceId.
Properties
- base → TreeElement
-
The hidden node above the top-level element.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- instanceId ↔ String?
-
The instance id (
instance('id')),nullfor the main instance.getter/setter pair - isRuntimeEvaluated → bool
-
Whether the instance's content is computed at evaluation time.
no setter
- name ↔ String?
-
The instance name used by EvaluationContext.instanceNamed lookups.
getter/setter pair
- root → TreeElement?
-
The top-level element, or
nullif the instance isn't loaded.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
explodeReference(
TreeReference ref) → List< TreeElement> ? -
The elements along
ref, excluding the base and the final node;nullif any step can't be resolved. -
getTemplate(
TreeReference ref) → TreeElement? -
The repeat template (or attribute) at
ref, if any. -
getTemplatePath(
TreeReference ref) → TreeElement? -
The node at
reffollowing templates where present, otherwise the first instance of each step. -
hasTemplatePath(
TreeReference ref) → bool -
Whether some template or instance path matches
ref. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
replacePartialElements(
List< TreeElement> elements) → void -
Fills partial top-level elements with
elements' content. -
resolveReference(
TreeReference ref) → TreeElement? -
The element
refpoints to, ornullif it doesn't exist or is ambiguous. Never returns the hidden base node. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited