Class FormContainerMetaData

    • Constructor Detail

      • FormContainerMetaData

        public FormContainerMetaData​(String containerName)
    • Method Detail

      • getSize

        public int getSize()
        Specified by:
        getSize in interface IFormContainerMetaData
        Returns:
        The number of existing repetition of the form field.
      • getContainerName

        public String getContainerName()
        Specified by:
        getContainerName in interface IFormContainerMetaData
        Returns:
        The name of the repeated container that contains this element. May be the element itself.
      • containsFormField

        public Boolean containsFormField​(String fieldName)
      • addFormField

        public void addFormField​(String fieldName,
                                 Integer index)
      • setSize

        public void setSize​(Integer size)
      • ordinalIndexToRepetitionId

        public Integer ordinalIndexToRepetitionId​(Integer inputIndex)
        Description copied from interface: IFormContainerMetaData
        Finds the repetition ID for an ordinal index (the nth repetition of the element). For example, when there are three element repetitions, the first could be tf1_dyn_tf1_4, the seconds could be tf1_dyn_tf1_9, and the third could be tf1_dyn_tf1_15. Then this method would return ordinalToRepetitionId(0) == 4, ordinalToRepetitionId(1) == 9, and ordinalToRepetitionId(2) = 15. All other parameters return -1.
        Specified by:
        ordinalIndexToRepetitionId in interface IFormContainerMetaData
        Parameters:
        inputIndex - Repetition ID of the given repetition.
        Returns:
        Ordinal index of the element repetition. -1 when no element with the given repetition index exists.
      • repetitionIdToOrdinalIndex

        public Integer repetitionIdToOrdinalIndex​(Integer inputIndex)
        Description copied from interface: IFormContainerMetaData
        Finds the ordinal index for a repetition ID. For example, when there are three element repetitions, the first could be tf1_dyn_tf1_4, the seconds could be tf1_dyn_tf1_9, and the third could be tf1_dyn_tf1_15. Then this method would return repetitionIdToOrdinalIndex(4) == 0, repetitionIdToOrdinalIndex(9) == 1, and repetitionIdToOrdinalIndex(15) = 2. All other parameters return -1.
        Specified by:
        repetitionIdToOrdinalIndex in interface IFormContainerMetaData
        Parameters:
        inputIndex - Repetition ID of the given repetition.
        Returns:
        Ordinal index of the element repetition. -1 when no element with the given repetition index exists.
      • removeRows

        public void removeRows​(List<Integer> idxList)