org.mmbase.datatypes
Class FloatDataType

java.lang.Object
  extended byorg.mmbase.core.AbstractDescriptor
      extended byorg.mmbase.datatypes.BasicDataType
          extended byorg.mmbase.datatypes.ComparableDataType
              extended byorg.mmbase.datatypes.NumberDataType
                  extended byorg.mmbase.datatypes.FloatDataType
All Implemented Interfaces:
Cloneable, Comparable, DataType, Descriptor, Serializable

public class FloatDataType
extends NumberDataType

DataType associated with Float, as NumberDataType, but provides getMin and getMax as float.

Since:
MMBase-1.8
Version:
$Id: FloatDataType.java,v 1.8 2006/04/29 19:41:09 michiel Exp $
Author:
Pierre van Rooden
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.mmbase.datatypes.ComparableDataType
ComparableDataType.MaxRestriction, ComparableDataType.MinRestriction
 
Nested classes inherited from class org.mmbase.datatypes.BasicDataType
BasicDataType.AbstractRestriction, BasicDataType.EnumerationRestriction, BasicDataType.RequiredRestriction, BasicDataType.RestrictedEnumerationIterator, BasicDataType.StaticAbstractRestriction, BasicDataType.TypeRestriction, BasicDataType.UniqueRestriction
 
Nested classes inherited from class org.mmbase.datatypes.DataType
DataType.Restriction
 
Field Summary
 
Fields inherited from class org.mmbase.datatypes.ComparableDataType
maxRestriction, minRestriction
 
Fields inherited from class org.mmbase.datatypes.BasicDataType
DATATYPE_BUNDLE, 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, PROCESS_GET, PROCESS_SET, VALID, XMLNS
 
Constructor Summary
FloatDataType(String name, boolean primitive)
           
 
Method Summary
 float getMax()
           
 float getMin()
           
 
Methods inherited from class org.mmbase.datatypes.NumberDataType
castToValidate
 
Methods inherited from class org.mmbase.datatypes.ComparableDataType
clone, cloneRestrictions, getDefaultValue, getMaxRestriction, getMinRestriction, inheritRestrictions, isMaxInclusive, isMinInclusive, setMax, setMin, toStringBuffer, toXml, validateCastedValue
 
Methods inherited from class org.mmbase.datatypes.BasicDataType
cast, cast, checkType, clone, compareTo, edit, equals, finish, finish, getBaseType, getBaseTypeIdentifier, getCloud, getCommitProcessor, getElement, getElement, getEnumerationFactory, getEnumerationRestriction, getEnumerationValue, getEnumerationValues, getOrigin, getProcessor, getProcessor, getRequiredRestriction, getTypeAsClass, getUniqueRestriction, hashCode, inherit, inheritProperties, isCorrectType, isFinished, isRequired, isUnique, preCast, preCast, preCast, rewrite, setCommitProcessor, setDefaultValue, setProcessor, setProcessor, setRequired, setUnique, setXml, toString, toXml, validate, validate
 
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.bridge.Descriptor
getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName
 

Constructor Detail

FloatDataType

public FloatDataType(String name,
                     boolean primitive)
Parameters:
primitive - indicate if a primitive type should be used
Method Detail

getMin

public float getMin()
Returns:
the minimum value as a float, or Float.NEGATIVE_INFINITY if there is no minimum.

getMax

public float getMax()
Returns:
the maximum value as a float, or Float.POSITIVE_INFINITY if there is no maximum.


MMBase build 1.8.1.20060716