public interface LengthDataType<E> extends DataType<E>
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...DataType.Restriction<D extends Serializable>ENFORCE_ABSOLUTE, ENFORCE_ALWAYS, ENFORCE_NEVER, ENFORCE_ONCHANGE, ENFORCE_ONCREATE, ENFORCE_ONVALIDATE, PROCESS_GET, PROCESS_SET, VALID, XMLNS| Modifier and Type | Method and Description |
|---|---|
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 values for this datatype.
|
DataType.Restriction<Long> |
getMaxLengthRestriction()
Returns the 'maxLength' restriction, containing the value, errormessages, and fixed status of this attribute.
|
long |
getMinLength()
Returns the minimum length of values for this datatype.
|
DataType.Restriction<Long> |
getMinLengthRestriction()
Returns the 'minLength' restriction, containing the value, errormessages, and fixed status of this attribute.
|
void |
setMaxLength(long value)
Sets the maximum length of values for this datatype.
|
void |
setMinLength(long value)
Sets the minimum length of binary values for this datatype.
|
cast, castAndValidate, castForSearch, 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, validategetDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUINamecompareTolong getLength(Object value)
long getMinLength()
int, or 0 if there is no minimum length.DataType.Restriction<Long> getMinLengthRestriction()
DataType.Restrictionvoid setMinLength(long value)
long getMaxLength()
long, or a very very big value
(Long.MAX_VALUE) if there is no maximum length.DataType.Restriction<Long> getMaxLengthRestriction()
DataType.Restrictionvoid setMaxLength(long value)
value - see getMaxLength()Class<T> - Identifier: java.lang.UnsupportedOperationException if this datatype is finishedMMBase 1.9-SNAPSHOT - ${javadoctimestamp}