| org.mmbase.datatypes.AbstractLengthDataType
AbstractLengthDataType | abstract public class AbstractLengthDataType extends BasicDataType implements LengthDataType<E>(Code) | | A LengthDataType is a datatype that defines a length for its values (
AbstractLengthDataType.getLength(Object) ) ,
and restrictions on that (minimal an maximal length).
author: Pierre van Rooden author: Michiel Meeuwissen version: $Id: AbstractLengthDataType.java,v 1.24 2007/09/16 17:55:28 michiel Exp $ since: MMBase-1.8 |
Inner Class :static class MinRestriction extends StaticAbstractRestriction | |
Inner Class :static class MaxRestriction extends StaticAbstractRestriction | |
maxLengthRestriction | protected MaxRestriction maxLengthRestriction(Code) | | |
minLengthRestriction | protected MinRestriction minLengthRestriction(Code) | | |
AbstractLengthDataType | public AbstractLengthDataType(String name, Class<E> classType)(Code) | | Constructor for big data field.
Parameters: name - the name of the data type Parameters: classType - the class of the data type's possible value |
getEnforceStrength | public int getEnforceStrength()(Code) | | |
getMaxLength | public long getMaxLength()(Code) | | |
getMinLength | public long getMinLength()(Code) | | |
setMaxLength | public void setMaxLength(long value)(Code) | | Sets the maximum length of binary values for this datatype.
Parameters: value - the maximum length as an int , or -1 if there is no maximum length. throws: Class - Identifier: java.lang.UnsupportedOperationException if this datatype is finished |
setMinLength | public void setMinLength(long value)(Code) | | |
|
|