public abstract class FieldDefinition
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
binding |
protected java.lang.String |
dataKeyName |
protected java.lang.String |
defaultValue |
protected java.lang.String |
description |
protected FieldGroup |
group |
protected java.lang.String |
label |
protected java.lang.String |
name |
protected boolean |
protectedField |
| Constructor and Description |
|---|
FieldDefinition(java.lang.String name)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBinding()
Returns the binding for the field, this is used by some
FormModelProcessor implementations to generate an
alternative representation of the data
|
java.lang.String |
getDataKeyName()
Returns the name of the key being used to hold the data for the field
|
java.lang.String |
getDefaultValue()
Returns any default value the field may have
|
java.lang.String |
getDescription()
Returns the description of the field
|
FieldGroup |
getGroup()
Returns the group the field may be a part of
|
java.lang.String |
getLabel()
Returns the display label for the field
|
java.lang.String |
getName()
Returns the name of the field
|
boolean |
isProtectedField()
Determines whether the field is protected i.e.
|
void |
setBinding(java.lang.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(java.lang.String dataKeyName)
Sets the name of the key to be used to hold the data for the field
|
void |
setDefaultValue(java.lang.String defaultValue)
Sets the default value for the field
|
void |
setDescription(java.lang.String description)
Sets the description of the field
|
void |
setGroup(FieldGroup group)
Sets the group the field is part of
|
void |
setLabel(java.lang.String label)
Sets the display label for the field
|
void |
setProtectedField(boolean protectedField)
Sets whether the field is protected i.e.
|
protected java.lang.String name
protected java.lang.String label
protected java.lang.String description
protected java.lang.String binding
protected java.lang.String defaultValue
protected java.lang.String dataKeyName
protected FieldGroup group
protected boolean protectedField
public FieldDefinition(java.lang.String name)
public java.lang.String getName()
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - The field's display labelpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The field's descriptionpublic java.lang.String getBinding()
public void setBinding(java.lang.String binding)
binding - The field's bindingpublic java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String defaultValue)
defaultValue - The field's default valuepublic java.lang.String getDataKeyName()
public void setDataKeyName(java.lang.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 - 2010 Alfresco Software, Inc. All Rights Reserved.