|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.core.AbstractDescriptor
org.mmbase.datatypes.BasicDataType<E>
org.mmbase.datatypes.ComparableDataType<E>
org.mmbase.datatypes.NumberDataType<Integer>
org.mmbase.datatypes.IntegerDataType
public class IntegerDataType
DataType associated with Integer, a NumberDataType, but provides getMin and getMax as int.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.mmbase.datatypes.ComparableDataType |
|---|
ComparableDataType.MaxRestriction, ComparableDataType.MinRestriction |
| Nested classes/interfaces inherited from class org.mmbase.datatypes.BasicDataType |
|---|
BasicDataType.AbstractRestriction<D extends Serializable>, BasicDataType.DataTypeComparator<D>, BasicDataType.EnumerationRestriction, BasicDataType.RequiredRestriction, BasicDataType.RestrictedEnumerationIterator, BasicDataType.StaticAbstractRestriction<D extends Serializable>, BasicDataType.TypeRestriction, BasicDataType.UniqueRestriction |
| Nested classes/interfaces inherited from interface org.mmbase.datatypes.DataType |
|---|
DataType.Restriction<D extends Serializable> |
| Field Summary |
|---|
| Fields inherited from class org.mmbase.datatypes.NumberDataType |
|---|
allowSpecialNumbers |
| Fields inherited from class org.mmbase.datatypes.ComparableDataType |
|---|
maxRestriction, minRestriction |
| Fields inherited from class org.mmbase.datatypes.BasicDataType |
|---|
DATATYPE_BUNDLE, defaultValue, enumerationRestriction, origin, requiredRestriction, typeRestriction, uniqueRestriction |
| Fields inherited from class org.mmbase.core.AbstractDescriptor |
|---|
description, guiName, key |
| Fields inherited from interface org.mmbase.datatypes.DataType |
|---|
ENFORCE_ABSOLUTE, ENFORCE_ALWAYS, ENFORCE_NEVER, ENFORCE_ONCHANGE, ENFORCE_ONCREATE, ENFORCE_ONVALIDATE, PROCESS_GET, PROCESS_SET, VALID, XMLNS |
| Constructor Summary | |
|---|---|
IntegerDataType(String name,
boolean primitive)
|
|
| Method Summary | |
|---|---|
Integer |
decrease(Integer pos)
Given a certain value, returns the value with is 1 smaller. |
Integer |
first()
Returns a natural 'first' value. |
int |
getMax()
|
int |
getMin()
|
Integer |
increase(Integer pos)
Given a certain value, returns the value with is 1 bigger. |
protected void |
inheritRestrictions(BasicDataType origin)
If a datatype inherits from another datatype all its restrictions inherit too. |
| Methods inherited from class org.mmbase.datatypes.NumberDataType |
|---|
cast, castString, castToValidate, setAllowSpecialNumbers, toNumber |
| Methods inherited from class org.mmbase.datatypes.ComparableDataType |
|---|
clone, cloneRestrictions, compare, getComparator, getDefaultValue, getEnforceStrength, getMaxRestriction, getMinRestriction, isMaxInclusive, isMinInclusive, setMax, setMin, toStringBuilder, toXml, validateCastValue |
| Methods inherited from class org.mmbase.core.AbstractDescriptor |
|---|
getDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mmbase.datatypes.DataType |
|---|
cast, castAndValidate, castForSearch, castOrException, checkType, clone, clone, finish, getBaseType, getBaseTypeIdentifier, getCommitProcessor, getDefaultValue, getDefaultValue, getDeleteProcessor, getEnforceStrength, getEnumerationFactory, getEnumerationRestriction, getEnumerationValue, getEnumerationValues, getHandler, getHandlers, getOrigin, getProcessor, getProcessor, getRequiredRestriction, getStyleClasses, getTypeAsClass, getUniqueRestriction, isFinished, isRequired, isUnique, preCast, rewrite, setCommitProcessor, setDefaultValue, setProcessor, setProcessor, setRequired, setUnique, toXml, toXml, validate, validate |
| Methods inherited from interface org.mmbase.bridge.Descriptor |
|---|
getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public IntegerDataType(String name,
boolean primitive)
primitive - indicate if a primitive type should be used| Method Detail |
|---|
protected void inheritRestrictions(BasicDataType origin)
BasicDataType
inheritRestrictions in class ComparableDataType<Integer>public int getMin()
int, or a very very small number if there is no minimum.public int getMax()
int, or a very very big number if there is no maximum.public Integer increase(Integer pos)
SequentialDataTypenull if there is no such value (and the given value is
the biggest one possible)
increase in interface SequentialDataType<Integer>public Integer decrease(Integer pos)
SequentialDataTypenull if there is no such value (and the given value is
the smallest one possible)
decrease in interface SequentialDataType<Integer>public Integer first()
ComparableDataType0
first in interface SequentialDataType<Integer>first in class ComparableDataType<Integer>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||