mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user