Class DataCollectionTemplate

java.lang.Object
overit.geocallapp.wfm.mobileforms.bl.template.DataCollectionTemplate
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DataCollectionTemplateRelease, DataCollectionTemplateWorkingCopy

public class DataCollectionTemplate extends Object implements Serializable
Object that defines the data collection template.
Since:
12.0
See Also:
GCApi:
bo
  • Field Details

  • Constructor Details

    • DataCollectionTemplate

      public DataCollectionTemplate()
  • Method Details

    • getTemplate

      public BODataCollectionTemplateHeader getTemplate()
      Returns the template.
      Returns:
      the template
    • setTemplate

      public void setTemplate(BODataCollectionTemplateHeader template)
      Sets the template.
      Parameters:
      template - the template
    • getStructure

      public BODataCollectionTemplateStructure getStructure()
      Returns the structure.
      Returns:
      the structure
    • setStructure

      public void setStructure(BODataCollectionTemplateStructure structure)
      Sets the structure.
      Parameters:
      structure - the structure
    • getTree

      public TreeModel<DataCollectionNode> getTree()
      Returns the tree.
      Returns:
      the tree
    • setTree

      public void setTree(TreeModel<DataCollectionNode> tree)
      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

      public List<DataCollectionGlobalExpression> getGlobalExpressions()
      Returns the global expressions.
      Returns:
      the global expressions
    • addGlobalExpressions

      public void addGlobalExpressions(List<DataCollectionGlobalExpression> globalExpressions)
      Adds the global expressions.
      Parameters:
      globalExpressions - the global expressions
    • addGlobalExpression

      public void addGlobalExpression(DataCollectionGlobalExpression globalExpression)
      Add the global expression.
      Parameters:
      globalExpression - the global expression
    • setGlobalExpressions

      public void setGlobalExpressions(List<DataCollectionGlobalExpression> globalExpressions)
      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.