Class ParsedFieldName


  • public class ParsedFieldName
    extends Object
    For normal form elements, the name as submitted in the HTTP request is the same as the name that was configured in the Designer. For repeated elements, the name contains several pieces of information and looks like tfName_dyn_container_9. This data class represents such a name.
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • getElementName

        public String getElementName()
        Returns:
        The name of the repeated element, usually as configured in the designer, eg. tfName. For repeated elements, this is the base name without the repetition index.
      • getContainerName

        public String getContainerName()
        If the form element is not repeated, this returns just the getElementName(). If the form element is itself repeated, this returns the getElementName() as well. If the form element is inside a repeated container, this returns the name of that container.
        Returns:
        The name of the repeated parent element.
      • getElementIndex

        public int getElementIndex()
        Returns:
        The index of the repetition, which may not necessarily start 0 and may not be continuous.
      • isDynamic

        public boolean isDynamic()
        Returns:
        true if this element is dynamic or is inside a repeated container, false otherwise.
      • isQuestion

        public boolean isQuestion()
        Returns:
        true if this element is an multi-question with multiple rows, false otherwise.
      • forFieldName

        public static ParsedFieldName forFieldName​(String fieldName)
        Parameters:
        fieldName - A submitted field name to parse.
        Returns:
        The parsed field name, see ParsedFieldName for details.
      • getRawName

        public String getRawName()