Class DataCollectionTemplate
java.lang.Object
overit.geocallapp.wfm.mobileforms.bl.template.DataCollectionTemplate
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataCollectionTemplateRelease,DataCollectionTemplateWorkingCopy
Object that defines the data collection template.
- Since:
- 12.0
- See Also:
- GCApi:
- bo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<DataCollectionGlobalExpression> protected BODataCollectionTemplateStructureprotected BODataCollectionTemplateHeaderprotected TreeModel<DataCollectionNode> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGlobalExpression(DataCollectionGlobalExpression globalExpression) Add the global expression.voidaddGlobalExpressions(List<DataCollectionGlobalExpression> globalExpressions) Adds the global expressions.voidAligns the global expressions from template structure.voidAligns the template structure from global expressions.voidAligns the template structure from tree.voidAligns the tree from template structure.Returns the global expressions.Returns the structure.Returns the template.getTree()Returns the tree.voidsetGlobalExpressions(List<DataCollectionGlobalExpression> globalExpressions) Sets the global expressions.voidsetStructure(BODataCollectionTemplateStructure structure) Sets the structure.voidsetTemplate(BODataCollectionTemplateHeader template) Sets the template.voidsetTree(TreeModel<DataCollectionNode> tree) Sets the tree.
-
Field Details
-
template
-
structure
-
tree
-
globalExpressions
-
-
Constructor Details
-
DataCollectionTemplate
public DataCollectionTemplate()
-
-
Method Details
-
getTemplate
Returns the template.- Returns:
- the template
-
setTemplate
Sets the template.- Parameters:
template- the template
-
getStructure
Returns the structure.- Returns:
- the structure
-
setStructure
Sets the structure.- Parameters:
structure- the structure
-
getTree
Returns the tree.- Returns:
- the tree
-
setTree
Sets the tree.- Parameters:
tree- the tree
-
alignTreeFromTemplateStructure
public void alignTreeFromTemplateStructure()Aligns the tree from template structure. -
alignTemplateStructureFromTree
public void alignTemplateStructureFromTree()Aligns the template structure from tree. -
getGlobalExpressions
Returns the global expressions.- Returns:
- the global expressions
-
addGlobalExpressions
Adds the global expressions.- Parameters:
globalExpressions- the global expressions
-
addGlobalExpression
Add the global expression.- Parameters:
globalExpression- the global expression
-
setGlobalExpressions
Sets the global expressions.- Parameters:
globalExpressions- the global expressions
-
alignGlobalExpressionsFromTemplateStructure
public void alignGlobalExpressionsFromTemplateStructure()Aligns the global expressions from template structure. Deserializes the JSON string from the structure into a list of DataCollectionGlobalExpressions. -
alignTemplateStructureFromGlobalExpressions
public void alignTemplateStructureFromGlobalExpressions()Aligns the template structure from global expressions. Serializes the list of DataCollectionGlobalExpressions into a JSON string for the structure.
-