Package org.javarosa.core.model
Class ItemsetBinding
java.lang.Object
org.javarosa.core.model.ItemsetBinding
- All Implemented Interfaces:
Localizable,Externalizable
public class ItemsetBinding extends Object implements Externalizable, Localizable
-
Field Summary
Fields Modifier and Type Field Description TreeReferencecontextRefIConditionExprcopyExprbooleancopyModeTreeReferencecopyRefIConditionExprlabelExprbooleanlabelIsItextTreeReferencelabelRefIConditionExprnodesetExprTreeReferencenodesetRefnote 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 projectbooleanrandomizeXPathNumericLiteralrandomSeedNumericExprXPathPathExprrandomSeedPathExprIConditionExprvalueExprTreeReferencevalueRef -
Constructor Summary
Constructors Constructor Description ItemsetBinding() -
Method Summary
Modifier and Type Method Description voidclearChoices()List<SelectChoice>getChoices()TreeReferencegetDestRef()IConditionExprgetRelativeValue()voidinitReferences(QuestionDef q)voidlocaleChanged(String locale, Localizer localizer)Updates the current object with the locate given.voidreadExternal(DataInputStream in, PrototypeFactory pf)voidsetChoices(List<SelectChoice> choices, DataInstance model, EvaluationContext ec, Localizer localizer)voidwriteExternal(DataOutputStream out)
-
Field Details
-
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 -
nodesetExpr
-
contextRef
-
labelRef
-
labelExpr
-
labelIsItext
public boolean labelIsItext -
copyMode
public boolean copyMode -
copyExpr
-
copyRef
-
valueRef
-
valueExpr
-
randomize
public boolean randomize -
randomSeedNumericExpr
-
randomSeedPathExpr
-
-
Constructor Details
-
ItemsetBinding
public ItemsetBinding()
-
-
Method Details
-
getChoices
-
setChoices
public void setChoices(List<SelectChoice> choices, DataInstance model, EvaluationContext ec, Localizer localizer) -
clearChoices
public void clearChoices() -
localeChanged
Description copied from interface:LocalizableUpdates the current object with the locate given.- Specified by:
localeChangedin interfaceLocalizable
-
getDestRef
-
getRelativeValue
-
initReferences
-
readExternal
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionDeserializationException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-