Package de.xima.fc.form.common.models
Class XFormVariableDescriptor
- java.lang.Object
- 
- de.xima.fc.form.common.models.XFormVariableDescriptor
 
- 
 public final class XFormVariableDescriptor extends Object Wrapper for a variable JSON object from the form persist (designer.getPersist().variables). Contains several methods for accessing the data in a structured manner.- Author:
- XIMA MEDIA GmbH
 
- 
- 
Constructor SummaryConstructors Constructor Description XFormVariableDescriptor(com.alibaba.fastjson.JSONObject variableJson)Wraps a variable JSON object and provides additional methods for accessing the properties of the variable.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlias()StringgetDefaultValue()StringgetId()longgetIndex()StringgetName()booleanisServerOnly()
 
- 
- 
- 
Method Detail- 
getAliaspublic String getAlias() - Returns:
- The alias of the variable, which provides an alternative way to reference the variable. The
 getName()does not allow special characters.
 
 - 
getDefaultValuepublic String getDefaultValue() - Returns:
- The default value for the variable when a new form record is created.
 
 - 
getIdpublic String getId() - Returns:
- A string with a unique ID of the variable. Usually this has the format xi-var-[number].
 
 - 
getIndexpublic long getIndex() - Returns:
- The numerical (0-based) index of the variable.
 
 - 
getNamepublic String getName() - Returns:
- The name of the variable, which is also the name attribute of the hidden input field.
 
 - 
isServerOnlypublic boolean isServerOnly() - Returns:
- Whether the variable is available only on the server.
 
 
- 
 
-