Uses of Class
org.javarosa.core.model.instance.TreeReference
-
Uses of TreeReference in org.javarosa.core.model
Fields in org.javarosa.core.model declared as TreeReference Modifier and Type Field Description TreeReferenceItemsetBinding. contextRefTreeReferenceItemsetBinding. copyRefTreeReferenceItemsetBinding. labelRefTreeReferenceItemsetBinding. nodesetRefnote 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 projectTreeReferenceItemsetBinding. valueRefFields in org.javarosa.core.model with type parameters of type TreeReference Modifier and Type Field Description protected HashMap<TreeReference,QuickTriggerable>IDag. conditionRepeatTargetIndexprotected HashMap<TreeReference,ArrayList<QuickTriggerable>>IDag. triggerIndexMethods in org.javarosa.core.model that return TreeReference Modifier and Type Method Description TreeReferenceFormDef. getChildInstanceRef(List<IFormElement> elements, List<Integer> multiplicities)TreeReferenceFormDef. getChildInstanceRef(FormIndex index)Finds the instance node a reference refers to (factoring in multiplicities)TreeReferenceGroupDef. getConextualizedCountReference(TreeReference context)TreeReferenceItemsetBinding. getDestRef()TreeReferenceFormIndex. getLocalReference()TreeReferenceFormIndex. getReference()Methods in org.javarosa.core.model with parameters of type TreeReference Modifier and Type Method Description voidFast2014DagImpl. addChildrenOfReference(FormInstance mainInstance, EvaluationContext evalContext, TreeReference original, Set<TreeReference> toAdd, boolean expandRepeatables)This is a utility method to get all of the references of a node.booleanFormDef. canCreateRepeat(TreeReference repeatRef, FormIndex repeatIndex)voidApril2014DagImpl. copyItemsetAnswer(FormInstance mainInstance, EvaluationContext evalContext, TreeReference copyRef, TreeElement copyToElement, boolean midSurvey)voidFast2014DagImpl. copyItemsetAnswer(FormInstance mainInstance, EvaluationContext evalContext, TreeReference copyRef, TreeElement copyToElement, boolean midSurvey)abstract voidIDag. copyItemsetAnswer(FormInstance mainInstance, EvaluationContext evalContext, TreeReference ref, TreeElement copyToElement, boolean midSurvey)Take actions related to changes of select-one and select-multiple itemsets.voidLegacyDagImpl. copyItemsetAnswer(FormInstance mainInstance, EvaluationContext evalContext, TreeReference copyRef, TreeElement copyToElement, boolean midSurvey)voidSafe2014DagImpl. copyItemsetAnswer(FormInstance mainInstance, EvaluationContext evalContext, TreeReference copyRef, TreeElement copyToElement, boolean midSurvey)voidApril2014DagImpl. createRepeatGroup(FormInstance mainInstance, EvaluationContext evalContext, TreeReference createRef, TreeElement parentElement, TreeElement createdElement)voidFast2014DagImpl. createRepeatGroup(FormInstance mainInstance, EvaluationContext evalContext, TreeReference createRef, TreeElement parentElement, TreeElement createdElement)abstract voidIDag. createRepeatGroup(FormInstance mainInstance, EvaluationContext evalContext, TreeReference ref, TreeElement parentElement, TreeElement createdElement)Take whatever action is required when creating a repeat group.voidLegacyDagImpl. createRepeatGroup(FormInstance mainInstance, EvaluationContext evalContext, TreeReference createRef, TreeElement parentElement, TreeElement createdElement)voidSafe2014DagImpl. createRepeatGroup(FormInstance mainInstance, EvaluationContext evalContext, TreeReference createRef, TreeElement parentElement, TreeElement createdElement)voidApril2014DagImpl. deleteRepeatGroup(FormInstance mainInstance, EvaluationContext evalContext, TreeReference deleteRef, TreeElement parentElement, TreeElement deletedElement)voidFast2014DagImpl. deleteRepeatGroup(FormInstance mainInstance, EvaluationContext evalContext, TreeReference deleteRef, TreeElement parentElement, TreeElement deletedElement)abstract voidIDag. deleteRepeatGroup(FormInstance mainInstance, EvaluationContext evalContext, TreeReference ref, TreeElement parentElement, TreeElement deletedElement)Take whatever action is required when deleting a repeat group.voidLegacyDagImpl. deleteRepeatGroup(FormInstance mainInstance, EvaluationContext evalContext, TreeReference deleteRef, TreeElement parentElement, TreeElement deletedElement)voidSafe2014DagImpl. deleteRepeatGroup(FormInstance mainInstance, EvaluationContext evalContext, TreeReference deleteRef, TreeElement parentElement, TreeElement deletedElement)protected Set<QuickTriggerable>LatestDagBase. doEvaluateTriggerables(FormInstance mainInstance, EvaluationContext evalContext, Set<QuickTriggerable> tv, TreeReference anchorRef, Set<QuickTriggerable> alreadyEvaluated)booleanFormDef. evaluateConstraint(TreeReference ref, IAnswerData data)StringFormDef. fillTemplateString(String template, TreeReference contextRef)StringFormDef. fillTemplateString(String template, TreeReference contextRef, HashMap<String,?> variables)static QuestionDefFormDef. findQuestionByRef(TreeReference ref, IFormElement fe)Traverses recursively the givenIFormElementnode tree and returns the firstQuestionDefthat matches the binding defined in the givenTreeReference.static IDataReferenceFormDef. getAbsRef(IDataReference ref, TreeReference parentRef)Takes a (possibly relative) reference, and makes it absolute based on its parent.TreeReferenceGroupDef. getConextualizedCountReference(TreeReference context)QuickTriggerableApril2014DagImpl. getTriggerableForRepeatGroup(TreeReference repeatRef)QuickTriggerableFast2014DagImpl. getTriggerableForRepeatGroup(TreeReference repeatRef)abstract QuickTriggerableIDag. getTriggerableForRepeatGroup(TreeReference ref)Used to obtain the triggerable that impacts the relevancy of the repeat group.QuickTriggerableLegacyDagImpl. getTriggerableForRepeatGroup(TreeReference repeatRef)QuickTriggerableSafe2014DagImpl. getTriggerableForRepeatGroup(TreeReference repeatRef)Collection<QuickTriggerable>April2014DagImpl. initializeTriggerables(FormInstance mainInstance, EvaluationContext evalContext, TreeReference rootRef, boolean midSurvey)Walks the current set of conditions, and evaluates each of them with the current context.Collection<QuickTriggerable>Fast2014DagImpl. initializeTriggerables(FormInstance mainInstance, EvaluationContext evalContext, TreeReference rootRef, boolean midSurvey)Walks the current set of conditions, and evaluates each of them with the current context.abstract Collection<QuickTriggerable>IDag. initializeTriggerables(FormInstance mainInstance, EvaluationContext evalContext, TreeReference rootRef, boolean midSurvey)Invoked externally when a new mainInstance is loaded (initial sweep of calculates).Collection<QuickTriggerable>LegacyDagImpl. initializeTriggerables(FormInstance mainInstance, EvaluationContext evalContext, TreeReference rootRef, boolean midSurvey)Walks the current set of conditions, and evaluates each of them with the current context.Collection<QuickTriggerable>Safe2014DagImpl. initializeTriggerables(FormInstance mainInstance, EvaluationContext evalContext, TreeReference rootRef, boolean midSurvey)Walks the current set of conditions, and evaluates each of them with the current context.booleanFormDef. isRepeatRelevant(TreeReference repeatRef)voidFormDef. populateDynamicChoices(ItemsetBinding itemset, TreeReference curQRef)Identifies theitemsetin the backend model, and creates a set ofSelectChoiceobjects at the current question reference based on the data in the model.voidFormDef. processResultOfAction(TreeReference refSetByAction, String event)protected voidIDag. publishSummary(String lead, TreeReference ref, Collection<QuickTriggerable> quickTriggerables)voidFormDef. setAnswer(IAnswerData data, TreeReference ref)voidFormDef. setValue(IAnswerData data, TreeReference ref, boolean midSurvey)voidFormDef. setValue(IAnswerData data, TreeReference ref, TreeElement node, boolean midSurvey)Collection<QuickTriggerable>April2014DagImpl. triggerTriggerables(FormInstance mainInstance, EvaluationContext evalContext, TreeReference ref, boolean midSurvey)The entry point for the DAG cascade after a value is changed in the model.Collection<QuickTriggerable>Fast2014DagImpl. triggerTriggerables(FormInstance mainInstance, EvaluationContext evalContext, TreeReference ref, boolean midSurvey)The entry point for the DAG cascade after a value is changed in the model.Collection<QuickTriggerable>FormDef. triggerTriggerables(TreeReference ref, boolean midSurvey)The entry point for the DAG cascade after a value is changed in the model.abstract Collection<QuickTriggerable>IDag. triggerTriggerables(FormInstance mainInstance, EvaluationContext evalContext, TreeReference ref, boolean midSurvey)Fire a triggereable.Collection<QuickTriggerable>LegacyDagImpl. triggerTriggerables(FormInstance mainInstance, EvaluationContext evalContext, TreeReference ref, boolean midSurvey)The entry point for the DAG cascade after a value is changed in the model.Collection<QuickTriggerable>Safe2014DagImpl. triggerTriggerables(FormInstance mainInstance, EvaluationContext evalContext, TreeReference ref, boolean midSurvey)The entry point for the DAG cascade after a value is changed in the model.Method parameters in org.javarosa.core.model with type arguments of type TreeReference Modifier and Type Method Description voidFast2014DagImpl. addChildrenOfReference(FormInstance mainInstance, EvaluationContext evalContext, TreeReference original, Set<TreeReference> toAdd, boolean expandRepeatables)This is a utility method to get all of the references of a node.Constructors in org.javarosa.core.model with parameters of type TreeReference Constructor Description FormIndex(int localIndex, int instanceIndex, TreeReference reference)Constructs a @{code FormIndex} for a node that does not have any children but that may have repeat instances in a filled form.FormIndex(int localIndex, TreeReference reference)Constructs a @{code FormIndex} for a node that does not have any children.FormIndex(FormIndex nextLevel, int localIndex, int instanceIndex, TreeReference reference)Constructs a @{code FormIndex} for a node that has children and that may have repeat instances in a filled form.FormIndex(FormIndex nextLevel, int localIndex, TreeReference reference)Constructs a @{code FormIndex} for a node that has children. -
Uses of TreeReference in org.javarosa.core.model.actions
Methods in org.javarosa.core.model.actions that return TreeReference Modifier and Type Method Description abstract TreeReferenceAction. processAction(FormDef model, TreeReference context)Process actions that were triggered in the form.TreeReferenceSetValueAction. processAction(FormDef model, TreeReference contextRef)Methods in org.javarosa.core.model.actions with parameters of type TreeReference Modifier and Type Method Description abstract TreeReferenceAction. processAction(FormDef model, TreeReference context)Process actions that were triggered in the form.TreeReferenceSetValueAction. processAction(FormDef model, TreeReference contextRef)voidActionController.ActionResultProcessor. processResultOfAction(TreeReference targetRef, String event)voidActionController. triggerActionsFromEvent(String event, FormDef model, TreeReference contextForAction, ActionController.ActionResultProcessor resultProcessor)Constructors in org.javarosa.core.model.actions with parameters of type TreeReference Constructor Description SetValueAction(TreeReference target, String explicitValue)SetValueAction(TreeReference target, XPathExpression value) -
Uses of TreeReference in org.javarosa.core.model.actions.setgeopoint
Methods in org.javarosa.core.model.actions.setgeopoint that return TreeReference Modifier and Type Method Description TreeReferenceSetGeopointAction. getContextualizedTargetReference()TreeReferenceSetGeopointAction. getTargetReference()TreeReferenceSetGeopointAction. processAction(FormDef model, TreeReference contextRef)Methods in org.javarosa.core.model.actions.setgeopoint with parameters of type TreeReference Modifier and Type Method Description TreeReferenceSetGeopointAction. processAction(FormDef model, TreeReference contextRef)voidSetGeopointAction. setTargetReference(TreeReference targetReference)Constructors in org.javarosa.core.model.actions.setgeopoint with parameters of type TreeReference Constructor Description SetGeopointAction(TreeReference targetReference)StubSetGeopointAction(TreeReference targetReference) -
Uses of TreeReference in org.javarosa.core.model.condition
Methods in org.javarosa.core.model.condition that return TreeReference Modifier and Type Method Description TreeReferenceTriggerable. contextualizeContextRef(TreeReference anchorRef)TreeReferenceEvaluationContext. getContextRef()TreeReferenceEvaluationContext. getOriginalContext()Methods in org.javarosa.core.model.condition that return types with arguments of type TreeReference Modifier and Type Method Description List<TreeReference>IConditionExpr. evalNodeset(DataInstance model, EvaluationContext evalContext)Used for itemsets.List<TreeReference>EvaluationContext. expandReference(TreeReference ref)List<TreeReference>EvaluationContext. expandReference(TreeReference ref, boolean includeTemplates)Searches for all repeated nodes that match the pattern of the 'ref' argument.List<TreeReference>Triggerable. findAffectedTriggers(Map<TreeReference,List<TreeReference>> firedAnchorsMap)Searches in the triggers of this Triggerable, trying to find the ones that are contained in the given list of contextualized refs.List<TreeReference>Triggerable. getTargets()Set<TreeReference>IConditionExpr. getTriggers(TreeReference contextRef)Provides a list of all of the references that this expression's value depends upon directly.Set<TreeReference>Triggerable. getTriggers()Methods in org.javarosa.core.model.condition with parameters of type TreeReference Modifier and Type Method Description voidTriggerable. addTarget(TreeReference target)voidCondition. apply(TreeReference ref, Object rawResult, FormInstance mainInstance)voidRecalculate. apply(TreeReference ref, Object result, FormInstance mainInstance)List<EvaluationResult>Triggerable. apply(FormInstance mainInstance, EvaluationContext parentContext, TreeReference context)Not for re-implementation, dispatches all of the evaluationprotected abstract voidTriggerable. apply(TreeReference ref, Object result, FormInstance mainInstance)TreeReferenceTriggerable. contextualizeContextRef(TreeReference anchorRef)List<TreeReference>EvaluationContext. expandReference(TreeReference ref)List<TreeReference>EvaluationContext. expandReference(TreeReference ref, boolean includeTemplates)Searches for all repeated nodes that match the pattern of the 'ref' argument.Set<TreeReference>IConditionExpr. getTriggers(TreeReference contextRef)Provides a list of all of the references that this expression's value depends upon directly.AbstractTreeElementEvaluationContext. resolveReference(TreeReference qualifiedRef)voidEvaluationContext. setOriginalContext(TreeReference ref)Method parameters in org.javarosa.core.model.condition with type arguments of type TreeReference Modifier and Type Method Description List<TreeReference>Triggerable. findAffectedTriggers(Map<TreeReference,List<TreeReference>> firedAnchorsMap)Searches in the triggers of this Triggerable, trying to find the ones that are contained in the given list of contextualized refs.List<TreeReference>Triggerable. findAffectedTriggers(Map<TreeReference,List<TreeReference>> firedAnchorsMap)Searches in the triggers of this Triggerable, trying to find the ones that are contained in the given list of contextualized refs.Constructors in org.javarosa.core.model.condition with parameters of type TreeReference Constructor Description Condition(IConditionExpr expr, int trueAction, int falseAction, TreeReference contextRef)Condition(IConditionExpr expr, int trueAction, int falseAction, TreeReference contextRef, ArrayList<TreeReference> targets)EvaluationContext(EvaluationContext base, HashMap<String,DataInstance> formInstances, TreeReference context)EvaluationContext(EvaluationContext base, TreeReference context)Recalculate(IConditionExpr expr, TreeReference contextRef)Triggerable(IConditionExpr expr, TreeReference contextRef)Triggerable(IConditionExpr expr, TreeReference contextRef, ArrayList<TreeReference> targets)Constructor parameters in org.javarosa.core.model.condition with type arguments of type TreeReference Constructor Description Condition(IConditionExpr expr, int trueAction, int falseAction, TreeReference contextRef, ArrayList<TreeReference> targets)Triggerable(IConditionExpr expr, TreeReference contextRef, ArrayList<TreeReference> targets) -
Uses of TreeReference in org.javarosa.core.model.instance
Methods in org.javarosa.core.model.instance that return TreeReference Modifier and Type Method Description TreeReferenceFormInstance. addNode(TreeReference ambigRef)TreeReferenceFormInstance. addNode(TreeReference ambigRef, IAnswerData data, int dataType)TreeReferenceTreeReference. anchor(TreeReference baseReference)Builds and returns a new reference that is this reference anchored to a passed-in base reference.static TreeReferenceTreeElement. BuildRef(AbstractTreeElement elem)TreeReferenceTreeReference. clone()TreeReferenceTreeReference. contextualize(TreeReference contextRef)TreeReferenceFormInstance. copyNode(TreeReference from, TreeReference to)TreeReferenceTreeReference. extendRef(String name, int mult)clone and extend a reference by one levelTreeReferenceTreeReference. genericize()TreeReferenceInvalidReferenceException. getInvalidReference()TreeReferenceTreeReference. getParentRef()TreeReferenceAbstractTreeElement. getRef()TreeReferenceTreeElement. getRef()TreeReferenceTreeReference. getSubReference(int level)Returns the subreference of this reference up to the level specified.TreeReferenceTreeReference. intersect(TreeReference b)Intersect this tree reference with another, returning a new tree reference which contains all of the common elements, starting with the root element.TreeReferenceTreeReference. parent(TreeReference baseReference)Builds and returns a new reference that is this reference anchored to a passed-in base reference.TreeReferenceTreeReference. relativize(TreeReference parent)TreeReferenceTreeReference. removePredicates()static TreeReferenceTreeReference. rootRef()static TreeReferenceTreeReference. selfRef()static TreeReferenceDataInstance. unpackReference(IDataReference ref)Methods in org.javarosa.core.model.instance that return types with arguments of type TreeReference Modifier and Type Method Description List<TreeReference>AbstractTreeElement. tryBatchChildFetch(String name, int mult, List<XPathExpression> predicates, EvaluationContext evalContext)TODO: Worst method name ever.List<TreeReference>TreeElement. tryBatchChildFetch(String name, int mult, List<XPathExpression> predicates, EvaluationContext evalContext)Methods in org.javarosa.core.model.instance with parameters of type TreeReference Modifier and Type Method Description TreeReferenceFormInstance. addNode(TreeReference ambigRef)TreeReferenceFormInstance. addNode(TreeReference ambigRef, IAnswerData data, int dataType)TreeReferenceTreeReference. anchor(TreeReference baseReference)Builds and returns a new reference that is this reference anchored to a passed-in base reference.TreeReferenceTreeReference. contextualize(TreeReference contextRef)voidFormInstance. copyItemsetNode(TreeElement copyNode, TreeReference destRef, FormDef f)TreeElementFormInstance. copyNode(TreeElement src, TreeReference to)TreeReferenceFormInstance. copyNode(TreeReference from, TreeReference to)List<AbstractTreeElement<T>>DataInstance. explodeReference(TreeReference ref)TDataInstance. getTemplate(TreeReference ref)TDataInstance. getTemplatePath(TreeReference ref)booleanDataInstance. hasTemplatePath(TreeReference ref)Determines if a path exists for a reference; template elements are followed when available.TreeReferenceTreeReference. intersect(TreeReference b)Intersect this tree reference with another, returning a new tree reference which contains all of the common elements, starting with the root element.booleanTreeReference. isParentOf(TreeReference child, boolean properParent)TreeReferenceTreeReference. parent(TreeReference baseReference)Builds and returns a new reference that is this reference anchored to a passed-in base reference.TreeReferenceTreeReference. relativize(TreeReference parent)TDataInstance. resolveReference(TreeReference ref)Constructors in org.javarosa.core.model.instance with parameters of type TreeReference Constructor Description InvalidReferenceException(String message, TreeReference reference) -
Uses of TreeReference in org.javarosa.core.model.util.restorable
Methods in org.javarosa.core.model.util.restorable that return TreeReference Modifier and Type Method Description static TreeReferenceRestoreUtils. absRef(String refStr, FormInstance dm)static TreeReferenceRestoreUtils. childRef(String childPath, TreeReference parentRef)TreeReferenceIXFormyFactory. ref(String refStr)static TreeReferenceRestoreUtils. ref(String refStr)static TreeReferenceRestoreUtils. topRef(FormInstance dm)Methods in org.javarosa.core.model.util.restorable with parameters of type TreeReference Modifier and Type Method Description static voidRestoreUtils. applyDataType(FormInstance dm, String path, TreeReference parent, int dataType)static voidRestoreUtils. applyDataType(FormInstance dm, String path, TreeReference parent, Class type)static TreeReferenceRestoreUtils. childRef(String childPath, TreeReference parentRef)static ObjectRestoreUtils. getValue(String xpath, TreeReference context, FormInstance tree)static voidRestoreUtils. mergeDataModel(FormInstance parent, FormInstance child, TreeReference parentRef)IAnswerDataIXFormyFactory. parseData(String textVal, int dataType, TreeReference ref, FormDef f)IConditionExprIXFormyFactory. refToPathExpr(TreeReference ref)static voidRestoreUtils. templateChild(FormInstance dm, String prefixPath, TreeReference parent, Restorable r)voidRestorable. templateData(FormInstance dm, TreeReference parentRef)static voidRestoreUtils. templateData(Restorable r, FormInstance dm, TreeReference parent) -
Uses of TreeReference in org.javarosa.debug
Methods in org.javarosa.debug that return TreeReference Modifier and Type Method Description TreeReferenceEvaluationResult. getAffectedRef()Constructors in org.javarosa.debug with parameters of type TreeReference Constructor Description EvaluationResult(TreeReference affectedRef, Object value) -
Uses of TreeReference in org.javarosa.model.xform
Methods in org.javarosa.model.xform with parameters of type TreeReference Modifier and Type Method Description voidDataModelSerializer. serialize(DataInstance instance, TreeReference base)Constructors in org.javarosa.model.xform with parameters of type TreeReference Constructor Description XPathReference(TreeReference ref) -
Uses of TreeReference in org.javarosa.xform.parse
Methods in org.javarosa.xform.parse with parameters of type TreeReference Modifier and Type Method Description static QuestionDefXFormParser. ghettoGetQuestionDef(int dataType, FormDef f, TreeReference ref)Finds a questiondef that binds to ref, if the data type is a 'select' question typevoidXFormParser. registerActionTarget(TreeReference target)Notify parser about a node that will later be relevant to an action. -
Uses of TreeReference in org.javarosa.xpath
Methods in org.javarosa.xpath that return TreeReference Modifier and Type Method Description TreeReferenceXPathLazyNodeset. getRefAt(int i)TreeReferenceXPathNodeset. getRefAt(int i)Methods in org.javarosa.xpath that return types with arguments of type TreeReference Modifier and Type Method Description List<TreeReference>XPathConditional. evalNodeset(DataInstance model, EvaluationContext evalContext)protected List<TreeReference>XPathLazyNodeset. getReferences()protected List<TreeReference>XPathNodeset. getReferences()Set<TreeReference>XPathConditional. getTriggers(TreeReference contextRef)Methods in org.javarosa.xpath with parameters of type TreeReference Modifier and Type Method Description Set<TreeReference>XPathConditional. getTriggers(TreeReference contextRef)Method parameters in org.javarosa.xpath with type arguments of type TreeReference Modifier and Type Method Description protected voidXPathNodeset. setReferences(List<TreeReference> nodes)Constructors in org.javarosa.xpath with parameters of type TreeReference Constructor Description XPathLazyNodeset(TreeReference unExpandedRef, DataInstance instance, EvaluationContext ec)Construct an XPath nodeset.Constructor parameters in org.javarosa.xpath with type arguments of type TreeReference Constructor Description XPathNodeset(List<TreeReference> nodes, DataInstance instance, EvaluationContext ec)Construct an XPath nodeset. -
Uses of TreeReference in org.javarosa.xpath.expr
Methods in org.javarosa.xpath.expr that return TreeReference Modifier and Type Method Description TreeReferenceXPathPathExpr. getReference()translate an xpath path reference into a TreeReference TreeReferences only support a subset of true xpath paths; restrictions are: simple child name tests 'child::name', '.', and '..' allowed only no predicates all '..' steps must come before anything elseMethods in org.javarosa.xpath.expr with parameters of type TreeReference Modifier and Type Method Description XPathNodesetXPathPathExprEval. eval(TreeReference reference, EvaluationContext ec)static XPathPathExprXPathPathExpr. fromRef(TreeReference ref)static ObjectXPathPathExpr. getRefValue(DataInstance model, EvaluationContext ec, TreeReference ref)