|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.dictionary.constraint.AbstractConstraint
org.alfresco.repo.dictionary.constraint.StringLengthConstraint
public class StringLengthConstraint
Constraint implementation that ensures that the length of the String value.
StringLengthConstraint.setMinLength(int)
,
StringLengthConstraint.setMaxLength(int)
Field Summary |
---|
Fields inherited from class org.alfresco.repo.dictionary.constraint.AbstractConstraint |
---|
ERR_EVALUATE_EXCEPTION, ERR_PROP_NOT_SET |
Constructor Summary | |
---|---|
StringLengthConstraint()
|
Method Summary | |
---|---|
protected void |
evaluateSingleValue(java.lang.Object value)
Support for evaluation of properties. |
int |
getMaxLength()
|
int |
getMinLength()
|
java.util.Map |
getParameters()
Returns the parameters passed to the instance of the constraint. |
java.lang.String |
getType()
Returns the 'type' of the constraint, this is the identifier given to constraint in the configuration. |
void |
setMaxLength(int maxLength)
Set the maximum number of characters allowed. |
void |
setMinLength(int minLength)
Set the minimum number of characters allowed. |
java.lang.String |
toString()
|
Methods inherited from class org.alfresco.repo.dictionary.constraint.AbstractConstraint |
---|
checkPropertyNotNull, evaluate, evaluateCollection, getShortName, getTitle, initialize, set_shortName, setRegistry, setShortName, setTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringLengthConstraint()
Method Detail |
---|
public java.lang.String getType()
getType
in interface Constraint
getType
in class AbstractConstraint
public java.lang.String toString()
toString
in class java.lang.Object
public int getMinLength()
public void setMinLength(int minLength)
Integer.MAX_VALUE
].
minLength
- the minimum numbers of characters allowedpublic int getMaxLength()
public void setMaxLength(int maxLength)
Integer.MAX_VALUE
].
maxLength
- the minimum numbers of characters allowedpublic java.util.Map getParameters()
Constraint
getParameters
in interface Constraint
getParameters
in class AbstractConstraint
protected void evaluateSingleValue(java.lang.Object value)
AbstractConstraint
evaluateSingleValue
in class AbstractConstraint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |