|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.forms.FieldDefinition
org.alfresco.repo.forms.PropertyFieldDefinition
public class PropertyFieldDefinition
A property field definition.
| Nested Class Summary | |
|---|---|
static class |
PropertyFieldDefinition.FieldConstraint
Represents a constraint on a property field |
| Field Summary | |
|---|---|
protected java.util.List |
constraints
|
protected java.lang.String |
dataType
|
protected DataTypeParameters |
dataTypeParams
|
protected boolean |
mandatory
|
protected boolean |
repeats
|
| Fields inherited from class org.alfresco.repo.forms.FieldDefinition |
|---|
binding, dataKeyName, defaultValue, description, group, label, name, protectedField |
| Constructor Summary | |
|---|---|
PropertyFieldDefinition(java.lang.String name,
java.lang.String dataType)
Default constructor |
|
| Method Summary | |
|---|---|
java.util.List |
getConstraints()
Returns a list of constraints the property may have |
java.lang.String |
getDataType()
Returns the dataType for the property, this is a value from the Alfresco data dictionary i.e. |
DataTypeParameters |
getDataTypeParameters()
Returns the data type parameters for the field |
boolean |
isMandatory()
Determines if the property is mandatory |
boolean |
isRepeating()
Determines if the property can contain multiple values |
void |
setConstraints(java.util.List constraints)
Sets the list of FieldConstraint objects for the property |
void |
setDataTypeParameters(DataTypeParameters dataTypeParams)
Sets the data type parameters for the field |
void |
setMandatory(boolean mandatory)
Sets whether the property is mandatory |
void |
setRepeating(boolean repeats)
Sets whether the property can contain multiple values |
java.lang.String |
toString()
|
| Methods inherited from class org.alfresco.repo.forms.FieldDefinition |
|---|
getBinding, getDataKeyName, getDefaultValue, getDescription, getGroup, getLabel, getName, isProtectedField, setBinding, setDataKeyName, setDefaultValue, setDescription, setGroup, setLabel, setProtectedField |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String dataType
protected DataTypeParameters dataTypeParams
protected boolean mandatory
protected boolean repeats
protected java.util.List constraints
| Constructor Detail |
|---|
public PropertyFieldDefinition(java.lang.String name,
java.lang.String dataType)
name - The name of the propertydataType - The data type of the property| Method Detail |
|---|
public java.lang.String getDataType()
public DataTypeParameters getDataTypeParameters()
public void setDataTypeParameters(DataTypeParameters dataTypeParams)
dataTypeParams - The DataTypeParameters for the fieldpublic boolean isMandatory()
public void setMandatory(boolean mandatory)
mandatory - true if it is mandatorypublic boolean isRepeating()
public void setRepeating(boolean repeats)
repeats - true if the field can contain multiple valuespublic java.util.List getConstraints()
public void setConstraints(java.util.List constraints)
constraints - List of FieldConstraint objectspublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||