org.alfresco.repo.action.constraint
Class EnumParameterConstraint

java.lang.Object
  extended by org.alfresco.repo.action.constraint.BaseParameterConstraint
      extended by org.alfresco.repo.action.constraint.EnumParameterConstraint
All Implemented Interfaces:
ParameterConstraint, org.springframework.beans.factory.BeanNameAware

public class EnumParameterConstraint
extends BaseParameterConstraint

Enumerated type parameter constraint


Field Summary
 
Fields inherited from class org.alfresco.repo.action.constraint.BaseParameterConstraint
actionService, allowableValues, cache, name
 
Constructor Summary
EnumParameterConstraint()
           
 
Method Summary
protected  java.util.Map getAllowableValuesImpl()
          Gets the list of allowable values, calculating them every time it is called.
 void setEnumClassName(java.lang.String enumClassName)
          Set the enum class name
 
Methods inherited from class org.alfresco.repo.action.constraint.BaseParameterConstraint
getAllowableValues, getI18NLabel, getName, getValueDisplayLabel, init, isValidValue, setActionService, setBeanName, setCacheAllowableValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumParameterConstraint

public EnumParameterConstraint()
Method Detail

setEnumClassName

public void setEnumClassName(java.lang.String enumClassName)
Set the enum class name

Parameters:
enumClassName - enum class name

getAllowableValuesImpl

protected java.util.Map getAllowableValuesImpl()
Description copied from class: BaseParameterConstraint
Gets the list of allowable values, calculating them every time it is called.

Specified by:
getAllowableValuesImpl in class BaseParameterConstraint
Returns:
Map map of allowable values
See Also:
ParameterConstraint.getAllowableValues()


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