public class PropertyFieldDefinition extends FieldDefinition
Modifier and Type | Class and Description |
---|---|
static class |
PropertyFieldDefinition.FieldConstraint
Represents a constraint on a property field
|
Modifier and Type | Field and Description |
---|---|
protected List<PropertyFieldDefinition.FieldConstraint> |
constraints |
protected String |
dataType |
protected DataTypeParameters |
dataTypeParams |
protected org.alfresco.repo.dictionary.IndexTokenisationMode |
indexTokenisationMode |
protected boolean |
mandatory |
protected boolean |
repeats |
binding, dataKeyName, defaultValue, description, group, label, name, protectedField
Constructor and Description |
---|
PropertyFieldDefinition(String name,
String dataType)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
List<PropertyFieldDefinition.FieldConstraint> |
getConstraints()
Returns a list of constraints the property may have
|
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
|
org.alfresco.repo.dictionary.IndexTokenisationMode |
getIndexTokenisationMode()
Returns a IndexTokenisationMode the property
|
boolean |
isMandatory()
Determines if the property is mandatory
|
boolean |
isRepeating()
Determines if the property can contain multiple values
|
void |
setConstraints(List<PropertyFieldDefinition.FieldConstraint> constraints)
Sets the list of FieldConstraint objects for the property
|
void |
setDataTypeParameters(DataTypeParameters dataTypeParams)
Sets the data type parameters for the field
|
void |
setIndexTokenisationMode(org.alfresco.repo.dictionary.IndexTokenisationMode indexTokenisationMode)
Sets the IndexTokenisationMode objects for the property
|
void |
setMandatory(boolean mandatory)
Sets whether the property is mandatory
|
void |
setRepeating(boolean repeats)
Sets whether the property can contain multiple values
|
String |
toString() |
getBinding, getDataKeyName, getDefaultValue, getDescription, getGroup, getLabel, getName, isProtectedField, setBinding, setDataKeyName, setDefaultValue, setDescription, setGroup, setLabel, setProtectedField
protected String dataType
protected DataTypeParameters dataTypeParams
protected boolean mandatory
protected boolean repeats
protected org.alfresco.repo.dictionary.IndexTokenisationMode indexTokenisationMode
protected List<PropertyFieldDefinition.FieldConstraint> constraints
public 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 List<PropertyFieldDefinition.FieldConstraint> getConstraints()
public void setConstraints(List<PropertyFieldDefinition.FieldConstraint> constraints)
constraints
- List of FieldConstraint objectspublic org.alfresco.repo.dictionary.IndexTokenisationMode getIndexTokenisationMode()
public void setIndexTokenisationMode(org.alfresco.repo.dictionary.IndexTokenisationMode indexTokenisationMode)
indexTokenisationMode
- objectsCopyright © 2005–2017 Alfresco Software. All rights reserved.