Updates to data dictionary constraints

- Added getType and getParameters methods to Constraint interface
  - Updated existing constraint implementations
Updates to FormService
  - Implemented regex pattern match for selecting appropriate form processor
  - Added constraints to Form object constructed in NodeHandler

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12396 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2008-12-15 21:18:51 +00:00
parent 6bda204c4d
commit e04da90fac
14 changed files with 257 additions and 30 deletions

View File

@@ -151,30 +151,30 @@ public class PropertyFieldDefinition extends FieldDefinition
*/
public class FieldConstraint
{
protected String name;
protected String type;
protected Map<String, String> params;
/**
* Constructs a FieldConstraint
*
* @param name The name of the constraint
* @param type The type of the constraint
* @param params Map of parameters for the constraint
*/
public FieldConstraint(String name, Map<String, String> params)
public FieldConstraint(String type, Map<String, String> params)
{
super();
this.name = name;
this.type = type;
this.params = params;
}
/**
* Returns the name of the constraint
* Returns the type of the constraint
*
* @return The constraint name
* @return The constraint type
*/
public String getName()
public String getType()
{
return this.name;
return this.type;
}
/**