org.alfresco.service.cmr.action
Interface ParameterConstraint

All Known Implementing Classes:
AspectParameterConstraint, BaseParameterConstraint, EnumParameterConstraint, FolderContentsParameterConstraint, MimetypeParameterConstraint, PropertyParameterConstraint, TypeParameterConstraint

public interface ParameterConstraint

Parameter constraint. Helps to constraint the list of allowable values for a


Method Summary
 java.util.Map getAllowableValues()
           
 java.lang.String getName()
          Gets the unique name of the constraint
 java.lang.String getValueDisplayLabel(java.lang.String value)
           
 boolean isValidValue(java.lang.String value)
          Indicates whether the provided value satisfies the constraint.
 

Method Detail

getName

java.lang.String getName()
Gets the unique name of the constraint

Returns:
String constraint name

isValidValue

boolean isValidValue(java.lang.String value)
Indicates whether the provided value satisfies the constraint. True if it does, false otherwise.

Returns:
boolean true if valid, false otherwise

getValueDisplayLabel

java.lang.String getValueDisplayLabel(java.lang.String value)
Parameters:
value -
Returns:

getAllowableValues

java.util.Map getAllowableValues()


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