Class ConstraintRegistry
java.lang.Object
org.alfresco.repo.dictionary.constraint.ConstraintRegistry
A registry of constraints.
- Since:
- 3.2
- Author:
- Derek Hulley
-
Method Summary
Modifier and TypeMethodDescriptiongetConstraint
(String name) Get the constraint by namestatic ConstraintRegistry
void
register
(String name, Constraint constraint) Register the constraint by name
-
Method Details
-
getInstance
- Returns:
- Returns the singleton
-
register
Register the constraint by name -
getConstraint
Get the constraint by name- Parameters:
name
- the name by which the constraint was registered- Returns:
- Returns the constraint or null if it does not exist.
-