public class BooleanDataType extends BasicDataType<Boolean>
BasicDataType.AbstractRestriction<D extends Serializable>, BasicDataType.DataTypeComparator<D>, BasicDataType.EnumerationRestriction, BasicDataType.RequiredRestriction, BasicDataType.RestrictedEnumerationIterator, BasicDataType.StaticAbstractRestriction<D extends Serializable>, BasicDataType.TypeRestriction, BasicDataType.UniqueRestrictionDataType.Restriction<D extends Serializable>DATATYPE_BUNDLE, defaultValue, enumerationRestriction, origin, requiredRestriction, typeRestriction, uniqueRestrictiondescription, guiName, keyENFORCE_ABSOLUTE, ENFORCE_ALWAYS, ENFORCE_NEVER, ENFORCE_ONCHANGE, ENFORCE_ONCREATE, ENFORCE_ONVALIDATE, PROCESS_GET, PROCESS_SET, VALID, XMLNS| Constructor and Description |
|---|
BooleanDataType(String name,
boolean primitive)
Constructor for a boolean datatype (either a primitive boolean type or the Boolean class).
|
| Modifier and Type | Method and Description |
|---|---|
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> D |
preCast(D value,
Cloud cloud,
Node node,
Field field)
This method implements 'precasting', which can be seen as a kind of datatype specific
casting.
|
addErrorDescription, addRestriction, addRestriction, addStyleClass, cast, castAndValidate, castForSearch, castToPresent, castToValidate, checkType, clone, clone, cloneRestrictions, compareTo, edit, equals, finish, finish, getBaseType, getBaseTypeIdentifier, getCloud, getCloud, getCommitProcessor, getComparator, getDefaultProcessor, getDefaultValue, getDefaultValue, getDeleteProcessor, getElement, getElement, getEnforceStrength, getEnforceString, getEnumerationFactory, getEnumerationRestriction, getEnumerationValue, getEnumerationValues, getHandler, getHandlers, getOrigin, getProcessor, getProcessor, getProcessorWithoutDefault, getRequiredRestriction, getRestrictions, getStyleClasses, getTypeAsClass, getUniqueRestriction, hashCode, inherit, inheritProperties, inheritRestrictions, isCorrectType, isFinished, isRequired, isUnique, preCast, preCast, rewrite, setCommitProcessor, setDefaultProcessor, setDefaultValue, setDeleteProcessor, setProcessor, setProcessor, setRequired, setUnique, setXml, toString, toStringBuilder, toXml, toXml, validate, validate, validateCastValue, validateCastValueOrNull, validateRequired, xmlValuegetDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUINamefinalize, getClass, notify, notifyAll, wait, wait, waitgetDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUINamepublic BooleanDataType(String name, boolean primitive)
name - the name of the data typeprimitive - indicate if a primitive type should be usedprotected <D> D preCast(D value,
Cloud cloud,
Node node,
Field field)
BasicDataTypenull. It should not
change the actual type of the value.preCast in class BasicDataType<Boolean>protected final Boolean cast(Object value, Cloud cloud, Node node, Field field) throws CastException
cast in class BasicDataType<Boolean>CastExceptionMMBase 1.9-SNAPSHOT - ${javadoctimestamp}