Fix AR-521: Constraints are inherited (added test to ensure) and overridable (new)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2970 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-05-24 15:22:34 +00:00
parent 0cc08b2518
commit b9a95c2b31
8 changed files with 126 additions and 22 deletions

View File

@@ -16,6 +16,8 @@
*/
package org.alfresco.repo.dictionary;
import java.util.List;
/**
* Property override definition
@@ -29,7 +31,7 @@ public class M2PropertyOverride
private Boolean isMandatory;
private boolean isMandatoryEnforced = false;
private String defaultValue;
private List<M2Constraint> constraints;
/*package*/ M2PropertyOverride()
{
@@ -74,5 +76,9 @@ public class M2PropertyOverride
{
this.defaultValue = defaultValue;
}
public List<M2Constraint> getConstraints()
{
return constraints;
}
}