| org.mmbase.datatypes.ComparableDataType
All known Subclasses: org.mmbase.datatypes.DateTimeDataType,
ComparableDataType | abstract public class ComparableDataType extends BasicDataType (Code) | | Comparable datatypes have values which are
java.lang.Comparable , so can be ordered, and
therefore can have a minimum and a maximum value.
author: Michiel Meeuwissen version: $Id: ComparableDataType.java,v 1.34 2007/09/16 17:55:28 michiel Exp $ since: MMBase-1.8 |
Inner Class :protected class MinRestriction extends AbstractRestriction | |
Inner Class :protected class MaxRestriction extends AbstractRestriction | |
maxRestriction | protected MaxRestriction maxRestriction(Code) | | |
minRestriction | protected MinRestriction minRestriction(Code) | | |
ComparableDataType | protected ComparableDataType(String name, Class<E> classType)(Code) | | |
getDefaultValue | final public E getDefaultValue()(Code) | | |
getEnforceStrength | public int getEnforceStrength()(Code) | | |
isMaxInclusive | public boolean isMaxInclusive()(Code) | | Returns whether the maximum value for this data type is inclusive or not.
true if the maximum value if inclusive, false if it is not, or if there is no minimum. |
isMinInclusive | public boolean isMinInclusive()(Code) | | Returns whether the minimum value for this data type is inclusive or not.
true if the minimum value if inclusive, false if it is not, or if there is no minimum. |
setMax | public void setMax(E value, boolean inclusive)(Code) | | Sets the maximum Date value for this data type.
Parameters: value - the maximum as an Comparable (and Serializable ), or null if there is no maximum. Parameters: inclusive - whether the maximum value is inclusive or not throws: Class - Identifier: java.lang.UnsupportedOperationException if this data type is read-only (i.e. defined by MMBase) |
setMin | public void setMin(E value, boolean inclusive)(Code) | | Sets the minimum Date value for this data type.
Parameters: value - the minimum as an Comparable (and Serializable ), or null if there is no minimum. Parameters: inclusive - whether the minimum value is inclusive or not throws: Class - Identifier: java.lang.UnsupportedOperationException if this data type is read-only (i.e. defined by MMBase) |
|
|