| java.lang.Object org.sakaiproject.metaobj.utils.xml.ValueRange
All known Subclasses: org.sakaiproject.metaobj.utils.xml.impl.NumberValueRange,
ValueRange | public class ValueRange (Code) | | Class that holds information about the range restrictions that
apply to an element value.
|
ValueRange | public ValueRange(Comparable max, Comparable min, boolean maxInclusive, boolean minInclusive)(Code) | | construct a new one
Parameters: max - the max comparable object, null if there is no upper bound Parameters: min - the min comparable object, null if there is no lower bound Parameters: maxInclusive - true if value can equal max Parameters: minInclusive - true if value can equal min |
inRange | public boolean inRange(Comparable value)(Code) | | test if the current value is in this range
Parameters: value - value to test true if the supplied value is in range |
isMaxInclusive | public boolean isMaxInclusive()(Code) | | |
isMinInclusive | public boolean isMinInclusive()(Code) | | |
setMaxInclusive | public void setMaxInclusive(boolean maxInclusive)(Code) | | |
setMinInclusive | public void setMinInclusive(boolean minInclusive)(Code) | | |
|
|