|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A LengthDataType is a datatype that defines a length for its values (getLength(Object)) ,
and restrictions on that (minimal an maximal length). Sometimes you may think 'size' in stead of
length, but we think that there is is not much difference between those...
| Nested Class Summary |
| Nested classes inherited from class org.mmbase.datatypes.DataType |
DataType.Restriction |
| Field Summary |
| Fields inherited from interface org.mmbase.datatypes.DataType |
ENFORCE_ABSOLUTE, ENFORCE_ALWAYS, ENFORCE_NEVER, ENFORCE_ONCHANGE, ENFORCE_ONCREATE, PROCESS_GET, PROCESS_SET, VALID, XMLNS |
| Method Summary | |
long |
getLength(Object value)
In this method should be implemented how to calculate such a length for a certain value of this datatype. |
long |
getMaxLength()
Returns the maximum length of binary values for this datatype. |
DataType.Restriction |
getMaxLengthRestriction()
Returns the 'maxLength' restriction, containing the value, errormessages, and fixed status of this attribute. |
long |
getMinLength()
Returns the minimum length of binary values for this datatype. |
DataType.Restriction |
getMinLengthRestriction()
Returns the 'minLength' restriction, containing the value, errormessages, and fixed status of this attribute. |
void |
setMaxLength(long value)
Sets the maximum length of binary values for this datatype. |
void |
setMinLength(long value)
Sets the minimum length of binary values for this datatype. |
| Methods inherited from interface org.mmbase.datatypes.DataType |
cast, checkType, clone, clone, finish, getBaseType, getBaseTypeIdentifier, getCommitProcessor, getDefaultValue, getEnumerationFactory, getEnumerationRestriction, getEnumerationValue, getEnumerationValues, getOrigin, getProcessor, getProcessor, getRequiredRestriction, getTypeAsClass, getUniqueRestriction, inherit, 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 |
| Method Detail |
public long getLength(Object value)
public long getMinLength()
int, or 0 if there is no minimum length.public DataType.Restriction getMinLengthRestriction()
DataType.Restrictionpublic void setMinLength(long value)
value - the minimum length as an long, or 0 if there is no minimum length.
Class - Identifier: java.lang.UnsupportedOperationException if this datatype is finishedpublic long getMaxLength()
long, or a very very big value
(Long.MAX_VALUE) if there is no maximum length.public DataType.Restriction getMaxLengthRestriction()
DataType.Restrictionpublic void setMaxLength(long value)
value - see getMaxLength()
Class - Identifier: java.lang.UnsupportedOperationException if this datatype is finished
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||