Further constraints

- MINMAX (NumericRangeConstraint)
 - LENGTH (StringLengthConstraint)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2622 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-04-05 09:42:00 +00:00
parent 4dcd14a59a
commit 303d518cbe
9 changed files with 456 additions and 53 deletions

View File

@@ -59,14 +59,37 @@ public class RegexConstraint extends AbstractConstraint
}
/**
* Set the regular expression used to evaluate string values
* @param expression similar to the {@link String#matches(java.lang.String) argument
* @return Returns the regular expression similar to the {@link String#matches(java.lang.String)}
*/
public String getExpression()
{
return expression;
}
/**
* Set the regular expression used to evaluate String values
* @param regular expression similar to the {@link String#matches(java.lang.String)} argument
*/
public void setExpression(String expression)
{
this.expression = expression;
}
/**
* @return Returns <tt>true</tt> if the value must match the regular expression
* or <tt>false</tt> if the value must not match the regular expression
*/
public boolean getRequiresMatch()
{
return requiresMatch;
}
/**
* Set whether the regular expression must be matched or not
*
* @param requiresMatch Set to <tt>true</tt> if the value must match the regular expression
* or <tt>false</tt> if the value must not match the regular expression
*/
public void setRequiresMatch(boolean requiresMatch)
{
this.requiresMatch = requiresMatch;