org.alfresco.repo.dictionary.constraint
Class ConstraintRegistry

java.lang.Object
  extended by org.alfresco.repo.dictionary.constraint.ConstraintRegistry

public class ConstraintRegistry
extends java.lang.Object

A registry of constraints.

Since:
3.2

Method Summary
 Constraint getConstraint(java.lang.String name)
          Get the constraint by name
static ConstraintRegistry getInstance()
           
 void register(java.lang.String name, Constraint constraint)
          Register the constraint by name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConstraintRegistry getInstance()
Returns:
Returns the singleton

register

public void register(java.lang.String name,
                     Constraint constraint)
Register the constraint by name


getConstraint

public Constraint getConstraint(java.lang.String name)
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.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.