Package de.xima.fc.mdl.fdv.form
Class ParsedFieldName
- java.lang.Object
- 
- de.xima.fc.mdl.fdv.form.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 liketfName_dyn_container_9. This data class represents such a name.- Author:
- XIMA MEDIA GmbH
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParsedFieldNameforFieldName(String fieldName)StringgetContainerName()If the form element is not repeated, this returns just thegetElementName().intgetElementIndex()StringgetElementName()StringgetRawName()booleanisDynamic()booleanisQuestion()
 
- 
- 
- 
Method Detail- 
getElementNamepublic 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.
 
 - 
getContainerNamepublic String getContainerName() If the form element is not repeated, this returns just thegetElementName(). If the form element is itself repeated, this returns thegetElementName()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.
 
 - 
getElementIndexpublic int getElementIndex() - Returns:
- The index of the repetition, which may not necessarily start 0and may not be continuous.
 
 - 
isDynamicpublic boolean isDynamic() - Returns:
- trueif this element is dynamic or is inside a repeated container,- falseotherwise.
 
 - 
isQuestionpublic boolean isQuestion() - Returns:
- trueif this element is an multi-question with multiple rows,- falseotherwise.
 
 - 
forFieldNamepublic static ParsedFieldName forFieldName(String fieldName) - Parameters:
- fieldName- A submitted field name to parse.
- Returns:
- The parsed field name, see ParsedFieldNamefor details.
 
 - 
getRawNamepublic String getRawName() 
 
- 
 
-