| org.mmbase.datatypes.BooleanDataType
BooleanDataType | public class BooleanDataType extends BasicDataType (Code) | | The DataType associated with a boolean value.
author: Pierre van Rooden version: $Id: BooleanDataType.java,v 1.13 2007/08/28 10:06:05 michiel Exp $ since: MMBase-1.8 |
Constructor Summary | |
public | BooleanDataType(String name, boolean primitive) Constructor for a boolean datatype (either a primitive boolean type or the Boolean class). |
Method Summary | |
final protected Boolean | cast(Object value, Cloud cloud, Node node, Field field) Cast a bit more conservatively, because Casting aggressively casts everything to boolean,
which would make nearly every value valid. | protected D | preCast(D value, Cloud cloud, Node node, Field field) |
BooleanDataType | public BooleanDataType(String name, boolean primitive)(Code) | | Constructor for a boolean datatype (either a primitive boolean type or the Boolean class).
Parameters: name - the name of the data type Parameters: primitive - indicate if a primitive type should be used |
cast | final protected Boolean cast(Object value, Cloud cloud, Node node, Field field) throws CastException(Code) | | Cast a bit more conservatively, because Casting aggressively casts everything to boolean,
which would make nearly every value valid.
|
|
|