Completed MOB-876: Period control (based on new d:period data type)

- Removed temporary period control from DOD project
- Added proper period control based on new d:period type
- Added ability for a data type to return a set of parameters to describe it or its restrictions (used here to return the period provider definitions)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14671 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2009-06-11 20:16:27 +00:00
parent ace9e44956
commit 0decb3ceb0
4 changed files with 309 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ import java.util.Map;
public class PropertyFieldDefinition extends FieldDefinition
{
protected String dataType;
protected DataTypeParameters dataTypeParams;
protected boolean mandatory = false;
protected boolean repeats = false;
protected List<FieldConstraint> constraints;
@@ -62,6 +63,26 @@ public class PropertyFieldDefinition extends FieldDefinition
{
return this.dataType;
}
/**
* Returns the data type parameters for the field
*
* @return DataTypeParameters object or null
*/
public DataTypeParameters getDataTypeParameters()
{
return this.dataTypeParams;
}
/**
* Sets the data type parameters for the field
*
* @param dataTypeParams The DataTypeParameters for the field
*/
public void setDataTypeParameters(DataTypeParameters dataTypeParams)
{
this.dataTypeParams = dataTypeParams;
}
/**
* Determines if the property is mandatory
@@ -133,6 +154,7 @@ public class PropertyFieldDefinition extends FieldDefinition
buffer.append(" (");
buffer.append("name=").append(this.name);
buffer.append(", dataType=").append(this.dataType);
buffer.append(", dataTypeParams=").append(this.dataTypeParams);
buffer.append(", label=").append(this.label);
buffer.append(", description=").append(this.description);
buffer.append(", binding=").append(this.binding);