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

@@ -19,6 +19,7 @@ package org.alfresco.repo.dictionary;
import org.alfresco.service.cmr.dictionary.AspectDefinition;
import org.alfresco.service.cmr.dictionary.AssociationDefinition;
import org.alfresco.service.cmr.dictionary.ClassDefinition;
import org.alfresco.service.cmr.dictionary.ConstraintDefinition;
import org.alfresco.service.cmr.dictionary.DataTypeDefinition;
import org.alfresco.service.cmr.dictionary.PropertyDefinition;
import org.alfresco.service.cmr.dictionary.TypeDefinition;
@@ -147,5 +148,17 @@ import org.alfresco.service.namespace.QName;
}
return def;
}
/* (non-Javadoc)
* @see ModelQuery#getConstraint(QName)
*/
public ConstraintDefinition getConstraint(QName name)
{
ConstraintDefinition def = query.getConstraint(name);
if (def == null)
{
def = delegate.getConstraint(name);
}
return def;
}
}