Property constraint dictionary support

Constraint implementation support
Regular expression constraint


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2547 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-03-14 22:57:50 +00:00
parent f3658f2a58
commit 783de4f80a
24 changed files with 1066 additions and 54 deletions

View File

@@ -16,6 +16,9 @@
*/
package org.alfresco.repo.dictionary;
import java.util.Collections;
import java.util.List;
/**
* Property Definition
@@ -37,7 +40,7 @@ public class M2Property
private boolean isIndexedAtomically = true;
private boolean isStoredInIndex = false;
private boolean isTokenisedInIndex = true;
private List<M2Constraint> constraints;
/*package*/ M2Property()
{
@@ -192,5 +195,17 @@ public class M2Property
{
this.isTokenisedInIndex = isTokenisedInIndex;
}
public List<M2Constraint> getConstraints()
{
if (constraints == null)
{
return Collections.emptyList();
}
else
{
return constraints;
}
}
}