public abstract class FieldDefinition extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
binding |
protected String |
dataKeyName |
protected String |
defaultValue |
protected String |
description |
protected FieldGroup |
group |
protected String |
label |
protected String |
name |
protected boolean |
protectedField |
Constructor and Description |
---|
FieldDefinition(String name)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getBinding()
Returns the binding for the field, this is used by some
FormModelProcessor implementations to generate an
alternative representation of the data
|
String |
getDataKeyName()
Returns the name of the key being used to hold the data for the field
|
String |
getDefaultValue()
Returns any default value the field may have
|
String |
getDescription()
Returns the description of the field
|
FieldGroup |
getGroup()
Returns the group the field may be a part of
|
String |
getLabel()
Returns the display label for the field
|
String |
getName()
Returns the name of the field
|
boolean |
isProtectedField()
Determines whether the field is protected i.e.
|
void |
setBinding(String binding)
Sets the binding to use for the field, this is used by some
FormModelProcessor implementations to generate an
alternative representation of the data
|
void |
setDataKeyName(String dataKeyName)
Sets the name of the key to be used to hold the data for the field
|
void |
setDefaultValue(String defaultValue)
Sets the default value for the field
|
void |
setDescription(String description)
Sets the description of the field
|
void |
setGroup(FieldGroup group)
Sets the group the field is part of
|
void |
setLabel(String label)
Sets the display label for the field
|
void |
setProtectedField(boolean protectedField)
Sets whether the field is protected i.e.
|
protected String name
protected String label
protected String description
protected String binding
protected String defaultValue
protected String dataKeyName
protected FieldGroup group
protected boolean protectedField
public FieldDefinition(String name)
public String getName()
public String getLabel()
public void setLabel(String label)
label
- The field's display labelpublic String getDescription()
public void setDescription(String description)
description
- The field's descriptionpublic String getBinding()
public void setBinding(String binding)
binding
- The field's bindingpublic String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue
- The field's default valuepublic String getDataKeyName()
public void setDataKeyName(String dataKeyName)
dataKeyName
- The name of the key to be used to hold the data for the fieldpublic FieldGroup getGroup()
public void setGroup(FieldGroup group)
group
- The group the field belongs topublic boolean isProtectedField()
public void setProtectedField(boolean protectedField)
protectedField
- true if the field is protectedCopyright © 2005–2017 Alfresco Software. All rights reserved.