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.
      • getContainerName

        public String getContainerName()
        If the form element is not repeated, this returns just the getElementName(). If the form element is itself repeat, 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, starting at 0.
      • isDynamic

        public boolean isDynamic()
        Returns:
        true if this element is dynamic or is inside a repeated container, 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.