|
SunONE Application Server v8.0 PE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.appserv.web.cache.mapping.ValueConstraint
ValueConstraint class represents a field's value constraint; supports common matching expressions.
Constructor Summary | |
ValueConstraint(java.lang.String value,
java.lang.String expr)
create constraint: field value matches with the given string expression |
Method Summary | |
boolean |
matches(java.lang.Object value)
match with the given Object value. |
void |
setCacheOnMatch(boolean cacheOnMatch)
set whether to cache if there was a match |
void |
setCacheOnMatchFailure(boolean cacheOnMatchFailure)
set whether to cache if there was a failure to match |
void |
setMatchExpr(int expr)
set field matching expression |
void |
setMaxValue(float value)
set the maximum value |
void |
setMinValue(float value)
set minimum value |
void |
setValue(java.lang.String value)
set value for this constraint |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ValueConstraint(java.lang.String value, java.lang.String expr) throws java.lang.IllegalArgumentException
value
- specific value to matchexpr
- match expressionMethod Detail |
public void setValue(java.lang.String value)
value
- specific value to matchpublic void setMinValue(float value)
public void setMaxValue(float value)
public void setMatchExpr(int expr)
expr
- match expressionpublic void setCacheOnMatch(boolean cacheOnMatch)
cacheOnMatch
- should the field value match, enable cache?public void setCacheOnMatchFailure(boolean cacheOnMatchFailure)
cacheOnMatchFailure
- should the field value doesn't match,
enable cache?public boolean matches(java.lang.Object value)
Object
value.
public java.lang.String toString()
|
SunONE Application Server v8.0 PE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved.