public class ItemsetBinding extends Object implements Externalizable, Localizable
| Modifier and Type | Field and Description |
|---|---|
TreeReference |
contextRef |
IConditionExpr |
copyExpr |
boolean |
copyMode |
TreeReference |
copyRef |
IConditionExpr |
labelExpr |
boolean |
labelIsItext |
TreeReference |
labelRef |
IConditionExpr |
nodesetExpr |
TreeReference |
nodesetRef
note that storing both the ref and expr for everything is kind of redundant, but we're forced
to since it's nearly impossible to convert between the two w/o having access to the underlying
xform/xpath classes, which we don't from the core model project
|
boolean |
randomize |
XPathNumericLiteral |
randomSeedNumericExpr |
XPathPathExpr |
randomSeedPathExpr |
IConditionExpr |
valueExpr |
TreeReference |
valueRef |
| Constructor and Description |
|---|
ItemsetBinding() |
| Modifier and Type | Method and Description |
|---|---|
List<SelectChoice> |
getChoices(FormDef formDef,
TreeReference curQRef)
Returns a list of
SelectChoice objects based on the data in the model. |
TreeReference |
getDestRef() |
IConditionExpr |
getRelativeValue() |
void |
initReferences(QuestionDef q) |
void |
localeChanged(String locale,
Localizer localizer)
Updates the current object with the locate given.
|
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
void |
writeExternal(DataOutputStream out) |
public TreeReference nodesetRef
public IConditionExpr nodesetExpr
public TreeReference contextRef
public TreeReference labelRef
public IConditionExpr labelExpr
public boolean labelIsItext
public boolean copyMode
public IConditionExpr copyExpr
public TreeReference copyRef
public TreeReference valueRef
public IConditionExpr valueExpr
public boolean randomize
public XPathNumericLiteral randomSeedNumericExpr
public XPathPathExpr randomSeedPathExpr
public List<SelectChoice> getChoices(FormDef formDef, TreeReference curQRef)
SelectChoice objects based on the data in the model. If any of the itemset expression
triggers or the random seed have changed since the last request, a new list will be computed which may be time consuming.
Otherwise, a cached list is returned.
SIDE EFFECT: any item currently selected as part of the current question's answer that is no longer
part of the new filtered list is removed and the new answer is saved back to the model.public void localeChanged(String locale, Localizer localizer)
LocalizablelocaleChanged in interface Localizablepublic TreeReference getDestRef()
public IConditionExpr getRelativeValue()
public void initReferences(QuestionDef q)
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException
readExternal in interface ExternalizableIOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2021. All rights reserved.