| Modifier and Type | Field and Description |
|---|---|
TreeReference |
ItemsetBinding.contextRef |
TreeReference |
ItemsetBinding.copyRef
Deprecated.
No tests and no evidence it's used.
|
TreeReference |
ItemsetBinding.labelRef |
TreeReference |
ItemsetBinding.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
|
TreeReference |
ItemsetBinding.valueRef |
| Modifier and Type | Method and Description |
|---|---|
TreeReference |
FormDef.getChildInstanceRef(FormIndex index)
Finds the instance node a reference refers to (factoring in multiplicities)
|
TreeReference |
FormDef.getChildInstanceRef(List<IFormElement> elements,
List<Integer> multiplicities) |
TreeReference |
GroupDef.getConextualizedCountReference(TreeReference context) |
TreeReference |
QuickTriggerable.getContext() |
TreeReference |
ItemsetBinding.getDestRef() |
TreeReference |
FormIndex.getLocalReference() |
TreeReference |
QuickTriggerable.getOriginalContext() |
TreeReference |
FormIndex.getReference() |
| Modifier and Type | Method and Description |
|---|---|
List<EvaluationResult> |
QuickTriggerable.apply(FormInstance mainInstance,
EvaluationContext ec,
TreeReference qualified) |
boolean |
FormDef.canCreateRepeat(TreeReference repeatRef,
FormIndex repeatIndex) |
boolean |
FormDef.evaluateConstraint(TreeReference ref,
IAnswerData data) |
String |
FormDef.fillTemplateString(String template,
TreeReference contextRef) |
String |
FormDef.fillTemplateString(String template,
TreeReference contextRef,
HashMap<String,?> variables) |
static QuestionDef |
FormDef.findQuestionByRef(TreeReference ref,
IFormElement fe)
Traverses recursively the given
IFormElement node tree and returns
the first QuestionDef that matches the binding defined in the
given TreeReference. |
static IDataReference |
FormDef.getAbsRef(IDataReference ref,
TreeReference parentRef)
Takes a (possibly relative) reference, and makes it absolute based on its parent.
|
List<SelectChoice> |
ItemsetBinding.getChoices(FormDef formDef,
TreeReference curQRef)
Returns a list of
SelectChoice objects based on the data in the model. |
TreeReference |
GroupDef.getConextualizedCountReference(TreeReference context) |
QuickTriggerable |
TriggerableDag.getRelevanceForRepeat(TreeReference genericRepeatRef) |
boolean |
FormDef.isRepeatRelevant(TreeReference repeatRef) |
void |
FormDef.processResultOfAction(TreeReference refSetByAction,
String event) |
void |
FormDef.setAnswer(IAnswerData data,
TreeReference ref) |
void |
FormDef.setValue(IAnswerData data,
TreeReference ref,
boolean midSurvey) |
void |
FormDef.setValue(IAnswerData data,
TreeReference ref,
TreeElement node,
boolean midSurvey) |
Collection<QuickTriggerable> |
FormDef.triggerTriggerables(TreeReference ref)
The entry point for the DAG cascade after a value is changed in the model.
|
| Constructor and Description |
|---|
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.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
TreeReference |
SetValueAction.processAction(FormDef model,
TreeReference contextRef) |
abstract TreeReference |
Action.processAction(FormDef model,
TreeReference context)
Process actions that were triggered in the form.
|
| Modifier and Type | Method and Description |
|---|---|
TreeReference |
SetValueAction.processAction(FormDef model,
TreeReference contextRef) |
abstract TreeReference |
Action.processAction(FormDef model,
TreeReference context)
Process actions that were triggered in the form.
|
void |
ActionController.ActionResultProcessor.processResultOfAction(TreeReference targetRef,
String event) |
void |
ActionController.triggerActionsFromEvent(String event,
FormDef model,
TreeReference contextForAction,
ActionController.ActionResultProcessor resultProcessor) |
| Constructor and Description |
|---|
SetValueAction(TreeReference target,
String explicitValue) |
SetValueAction(TreeReference target,
XPathExpression value) |
| Modifier and Type | Method and Description |
|---|---|
TreeReference |
RecordAudioAction.processAction(FormDef model,
TreeReference contextRef) |
| Modifier and Type | Method and Description |
|---|---|
TreeReference |
RecordAudioAction.processAction(FormDef model,
TreeReference contextRef) |
void |
RecordAudioActionListener.recordAudioTriggered(TreeReference absoluteTargetRef,
String quality) |
| Constructor and Description |
|---|
RecordAudioAction(TreeReference targetReference,
String quality) |
| Modifier and Type | Method and Description |
|---|---|
TreeReference |
SetGeopointAction.getContextualizedTargetReference() |
TreeReference |
SetGeopointAction.getTargetReference() |
TreeReference |
SetGeopointAction.processAction(FormDef model,
TreeReference contextRef) |
| Modifier and Type | Method and Description |
|---|---|
TreeReference |
SetGeopointAction.processAction(FormDef model,
TreeReference contextRef) |
void |
SetGeopointAction.setTargetReference(TreeReference targetReference) |
| Constructor and Description |
|---|
SetGeopointAction(TreeReference targetReference) |
StubSetGeopointAction(TreeReference targetReference) |
| Modifier and Type | Method and Description |
|---|---|
TreeReference |
Triggerable.getContext() |
TreeReference |
EvaluationContext.getContextRef() |
TreeReference |
Triggerable.getOriginalContext() |
TreeReference |
EvaluationContext.getOriginalContext() |
| Modifier and Type | Method and 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.
|
Set<TreeReference> |
Triggerable.getTargets() |
Set<TreeReference> |
Triggerable.getTriggers() |
Set<TreeReference> |
IConditionExpr.getTriggers(TreeReference contextRef)
Provides a list of all of the references that this expression's value depends upon
directly.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Triggerable.addTarget(TreeReference target) |
List<EvaluationResult> |
Triggerable.apply(FormInstance mainInstance,
EvaluationContext parentContext,
TreeReference context)
Dispatches all of the evaluation
|
protected abstract void |
Triggerable.apply(TreeReference ref,
Object result,
FormInstance mainInstance) |
void |
Recalculate.apply(TreeReference ref,
Object result,
FormInstance mainInstance) |
void |
Condition.apply(TreeReference ref,
Object result,
FormInstance mainInstance) |
static Triggerable |
Triggerable.condition(XPathConditional expr,
ConditionAction trueAction,
ConditionAction falseAction,
TreeReference contextRef) |
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.
|
static Triggerable |
Triggerable.recalculate(XPathConditional expr,
TreeReference contextRef) |
AbstractTreeElement |
EvaluationContext.resolveReference(TreeReference qualifiedRef) |
void |
EvaluationContext.setOriginalContext(TreeReference ref) |
| Constructor and Description |
|---|
EvaluationContext(EvaluationContext base,
HashMap<String,DataInstance> formInstances,
TreeReference context) |
EvaluationContext(EvaluationContext base,
TreeReference context) |
| Modifier and Type | Method and Description |
|---|---|
TreeReference |
FormInstance.addNode(TreeReference ambigRef) |
TreeReference |
FormInstance.addNode(TreeReference ambigRef,
IAnswerData data,
int dataType) |
TreeReference |
TreeReference.anchor(TreeReference baseReference)
Builds and returns a new reference that is this reference anchored to a passed-in base reference.
|
static TreeReference |
TreeElement.BuildRef(AbstractTreeElement elem) |
TreeReference |
TreeReference.clone() |
TreeReference |
TreeReference.contextualize(TreeReference contextRef) |
TreeReference |
FormInstance.copyNode(TreeReference from,
TreeReference to) |
TreeReference |
TreeReference.extendRef(String name,
int mult)
clone and extend a reference by one level
|
TreeReference |
TreeReference.genericize() |
TreeReference |
InvalidReferenceException.getInvalidReference() |
TreeReference |
TreeReference.getParentRef() |
TreeReference |
TreeElement.getRef() |
TreeReference |
AbstractTreeElement.getRef() |
TreeReference |
TreeReference.getSubReference(int level)
Returns the subreference of this reference up to the level specified.
|
TreeReference |
TreeReference.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.
|
TreeReference |
TreeReference.parent(TreeReference baseReference)
Builds and returns a new reference that is this reference anchored to a passed-in base reference.
|
TreeReference |
TreeReference.relativize(TreeReference parent) |
TreeReference |
TreeReference.removePredicates() |
TreeReference |
TreeReference.removePredicates(int i) |
static TreeReference |
TreeReference.rootRef() |
static TreeReference |
TreeReference.selfRef() |
static TreeReference |
DataInstance.unpackReference(IDataReference ref) |
| Modifier and Type | Method and Description |
|---|---|
List<TreeReference> |
TreeElement.tryBatchChildFetch(String name,
int mult,
List<XPathExpression> predicates,
EvaluationContext evalContext) |
List<TreeReference> |
AbstractTreeElement.tryBatchChildFetch(String name,
int mult,
List<XPathExpression> predicates,
EvaluationContext evalContext)
TODO: Worst method name ever.
|
| Modifier and Type | Method and Description |
|---|---|
TreeReference |
FormInstance.addNode(TreeReference ambigRef) |
TreeReference |
FormInstance.addNode(TreeReference ambigRef,
IAnswerData data,
int dataType) |
TreeReference |
TreeReference.anchor(TreeReference baseReference)
Builds and returns a new reference that is this reference anchored to a passed-in base reference.
|
TreeReference |
TreeReference.contextualize(TreeReference contextRef) |
void |
FormInstance.copyItemsetNode(TreeElement copyNode,
TreeReference destRef,
FormDef f) |
TreeElement |
FormInstance.copyNode(TreeElement src,
TreeReference to) |
TreeReference |
FormInstance.copyNode(TreeReference from,
TreeReference to) |
List<AbstractTreeElement<T>> |
DataInstance.explodeReference(TreeReference ref) |
T |
DataInstance.getTemplate(TreeReference ref) |
T |
DataInstance.getTemplatePath(TreeReference ref) |
boolean |
DataInstance.hasTemplatePath(TreeReference ref)
Determines if a path exists for a reference; template elements are
followed when available.
|
TreeReference |
TreeReference.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.
|
boolean |
TreeReference.isAncestorOf(TreeReference child,
boolean properParent) |
boolean |
TreeReference.isParentOf(TreeReference child,
boolean properParent)
Deprecated.
replaced by
isAncestorOf(TreeReference, boolean) |
TreeReference |
TreeReference.parent(TreeReference baseReference)
Builds and returns a new reference that is this reference anchored to a passed-in base reference.
|
TreeReference |
TreeReference.relativize(TreeReference parent) |
T |
DataInstance.resolveReference(TreeReference ref) |
| Constructor and Description |
|---|
InvalidReferenceException(String message,
TreeReference reference) |
| Modifier and Type | Method and Description |
|---|---|
static TreeReference |
RestoreUtils.absRef(String refStr,
FormInstance dm) |
static TreeReference |
RestoreUtils.childRef(String childPath,
TreeReference parentRef) |
static TreeReference |
RestoreUtils.ref(String refStr) |
TreeReference |
IXFormyFactory.ref(String refStr) |
static TreeReference |
RestoreUtils.topRef(FormInstance dm) |
| Modifier and Type | Method and Description |
|---|---|
static void |
RestoreUtils.applyDataType(FormInstance dm,
String path,
TreeReference parent,
Class type) |
static void |
RestoreUtils.applyDataType(FormInstance dm,
String path,
TreeReference parent,
int dataType) |
static TreeReference |
RestoreUtils.childRef(String childPath,
TreeReference parentRef) |
static Object |
RestoreUtils.getValue(String xpath,
TreeReference context,
FormInstance tree) |
static void |
RestoreUtils.mergeDataModel(FormInstance parent,
FormInstance child,
TreeReference parentRef) |
IAnswerData |
IXFormyFactory.parseData(String textVal,
int dataType,
TreeReference ref,
FormDef f) |
IConditionExpr |
IXFormyFactory.refToPathExpr(TreeReference ref) |
static void |
RestoreUtils.templateChild(FormInstance dm,
String prefixPath,
TreeReference parent,
Restorable r) |
void |
Restorable.templateData(FormInstance dm,
TreeReference parentRef) |
static void |
RestoreUtils.templateData(Restorable r,
FormInstance dm,
TreeReference parent) |
| Modifier and Type | Method and Description |
|---|---|
TreeReference |
EvaluationResult.getAffectedRef() |
| Constructor and Description |
|---|
EvaluationResult(TreeReference affectedRef,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
void |
DataModelSerializer.serialize(DataInstance instance,
TreeReference base) |
| Constructor and Description |
|---|
XPathReference(TreeReference ref) |
| Modifier and Type | Method and Description |
|---|---|
static QuestionDef |
XFormParser.ghettoGetQuestionDef(int dataType,
FormDef f,
TreeReference ref)
Finds a questiondef that binds to ref, if the data type is a 'select' question type
|
void |
XFormParser.registerActionTarget(TreeReference target)
Notify parser about a node that will later be relevant to an action.
|
| Modifier and Type | Method and Description |
|---|---|
TreeReference |
XPathLazyNodeset.getRefAt(int i) |
TreeReference |
XPathNodeset.getRefAt(int i) |
| Modifier and Type | Method and Description |
|---|---|
List<TreeReference> |
XPathConditional.evalNodeset(DataInstance model,
EvaluationContext evalContext) |
List<TreeReference> |
XPathLazyNodeset.getReferences() |
List<TreeReference> |
XPathNodeset.getReferences() |
Set<TreeReference> |
XPathConditional.getTriggers(TreeReference contextRef) |
| Modifier and Type | Method and Description |
|---|---|
Set<TreeReference> |
XPathConditional.getTriggers(TreeReference contextRef) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
XPathNodeset.setReferences(List<TreeReference> nodes) |
| Constructor and Description |
|---|
XPathLazyNodeset(TreeReference unExpandedRef,
DataInstance instance,
EvaluationContext ec)
Construct an XPath nodeset.
|
| Constructor and Description |
|---|
XPathNodeset(List<TreeReference> nodes,
DataInstance instance,
EvaluationContext ec)
Construct an XPath nodeset.
|
| Modifier and Type | Method and Description |
|---|---|
TreeReference |
XPathPathExpr.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 else
|
| Modifier and Type | Method and Description |
|---|---|
XPathNodeset |
XPathPathExprEval.eval(TreeReference reference,
EvaluationContext ec) |
static XPathPathExpr |
XPathPathExpr.fromRef(TreeReference ref) |
static Object |
XPathPathExpr.getRefValue(DataInstance model,
EvaluationContext ec,
TreeReference ref) |
Copyright © 2022. All rights reserved.