ItemsetBinding class final

The <itemset> of a select question: where its choices come from.

Port of org.javarosa.core.model.ItemsetBinding.

Implemented types

Constructors

ItemsetBinding()
Creates an empty binding, filled in by the parser.

Properties

contextRef ↔ TreeReference?
Context of nodesetExpr: the question's reference.
getter/setter pair
copyExpr ↔ XPathConditional?
Deprecated <copy> expression.
getter/setter pair
copyMode ↔ bool
Deprecated <copy> mode: copy subtrees instead of values.
getter/setter pair
copyRef ↔ TreeReference?
Deprecated <copy> absolute reference.
getter/setter pair
destRef → TreeReference?
The question's reference (plus the copied node in copy mode).
no setter
hashCode → int
The hash code for this object.
no setterinherited
labelExpr ↔ XPathConditional?
Path expression for the label, relative to a source node.
getter/setter pair
labelIsItext ↔ bool
Whether the label is an itext id (jr:itext(path)).
getter/setter pair
labelRef ↔ TreeReference?
Absolute reference of the label.
getter/setter pair
limitValueToSelectChoices → bool
Whether answers without a matching choice are cleared.
no setter
nodesetExpr ↔ XPathConditional?
Path expression for the source nodes; may be relative and have predicates (the choice filter).
getter/setter pair
nodesetRef ↔ TreeReference?
Absolute reference of the source nodes.
getter/setter pair
randomize ↔ bool
Whether the choices are shuffled (randomize(...)).
getter/setter pair
randomSeedExpr ↔ XPathExpression?
The randomize() seed expression, if any.
getter/setter pair
relativeValue → XPathConditional?
The value expression relative to a copied node (deprecated <copy> mode), else the absolute value reference. Port of getRelativeValue.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
valueExpr ↔ XPathConditional?
Path expression for the value.
getter/setter pair
valueRef ↔ TreeReference?
Absolute reference of the value.
getter/setter pair

Methods

getChoices(FormDef form, TreeReference questionRef) → List<SelectChoice>
The choices for the question at questionRef, filtered by the nodeset's predicates (and shuffled for randomize()).
initReferences(QuestionDef? question) → void
Computes the absolute references once the instance exists; with question (on the second pass) also the destination reference.
localeChanged(String locale, Localizer localizer) → void
Called when the current locale of localizer becomes locale.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited