Package org.mozilla.zest.core.v1
Class ZestFieldDefinition
- java.lang.Object
-
- org.mozilla.zest.core.v1.ZestElement
-
- org.mozilla.zest.core.v1.ZestFieldDefinition
-
public class ZestFieldDefinition extends ZestElement
The Class ZestFieldDefinition.
-
-
Field Summary
-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestFieldDefinition()Instantiates a new zest field definition.ZestFieldDefinition(int formIndex, String fieldName)Instantiates a new zest field definition.ZestFieldDefinition(String formName, String fieldName)Instantiates a new zest field definition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZestFieldDefinitiondeepCopy()Deep copy.StringgetFieldName()Gets the field name.intgetFormIndex()Gets the form index.StringgetFormName()Gets the form name.StringgetKey()Gets the key.voidsetFieldName(String fieldName)Sets the field name.voidsetFormIndex(int formIndex)Sets the form index.voidsetFormName(String formName)Sets the form name.-
Methods inherited from class org.mozilla.zest.core.v1.ZestElement
getElementType, isSameSubclass, setElementType
-
-
-
-
Constructor Detail
-
ZestFieldDefinition
public ZestFieldDefinition()
Instantiates a new zest field definition.
-
ZestFieldDefinition
public ZestFieldDefinition(int formIndex, String fieldName)Instantiates a new zest field definition.- Parameters:
formIndex- the form indexfieldName- the field name
-
-
Method Detail
-
deepCopy
public ZestFieldDefinition deepCopy()
Description copied from class:ZestElementDeep copy.- Specified by:
deepCopyin classZestElement- Returns:
- the zest element
-
getFormIndex
public int getFormIndex()
Gets the form index.- Returns:
- the form index
-
setFormIndex
public void setFormIndex(int formIndex)
Sets the form index.- Parameters:
formIndex- the new form index
-
getFormName
public String getFormName()
Gets the form name.- Returns:
- the form name
-
setFormName
public void setFormName(String formName)
Sets the form name.- Parameters:
formName- the new form name
-
getFieldName
public String getFieldName()
Gets the field name.- Returns:
- the field name
-
setFieldName
public void setFieldName(String fieldName)
Sets the field name.- Parameters:
fieldName- the new field name
-
getKey
public String getKey()
Gets the key.- Returns:
- the key
-
-