public final class BooleanType extends PrimitiveType
Modifier and Type | Field and Description |
---|---|
static String |
ID |
static BooleanType |
INSTANCE |
EMPTY_SUPERTYPES, F_NOTNULL, F_READONLY
Modifier and Type | Method and Description |
---|---|
Object |
convert(Object value)
Converts the given value to an object compatible with the associated type.
|
Object |
decode(String str)
Decodes the string representation into an object of this type.
|
String |
encode(Object value)
Encodes the given object that is assumed to be of this type into a string
representation.
|
Object |
newInstance()
Creates a new instance according to this type and filled with default
values.
|
boolean |
validate(Object object)
Tests whether the given object is of this type.
|
getPrimitiveType, getRef, getSuperType, getTypeHierarchy, isPrimitive, isSimpleType
getHelper, getName, getSchema, getSchemaName, isAny, isAnyType, isComplexType, isCompositeType, isListType, isNotNull, isReadOnly, isSuperTypeOf, setNotNull, setReadOnly
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHelper, getName, getSchema, getSchemaName, isAnyType, isComplexType, isCompositeType, isListType, isNotNull, isReadOnly, isSuperTypeOf
public static final String ID
public static final BooleanType INSTANCE
public boolean validate(Object object)
Type
validate
in interface Type
validate
in class PrimitiveType
object
- the object to testpublic Object convert(Object value)
ValueConverter
value
- the value to convertpublic Object decode(String str)
Type
Returns null if the string can not be decoded.
decode
in interface Type
decode
in class AbstractType
str
- the string to decodepublic String encode(Object value)
Type
Null is returned if the object cannot be converted.
encode
in interface Type
encode
in class AbstractType
value
- the object to convertpublic Object newInstance()
Type
newInstance
in interface Type
newInstance
in class AbstractType
Copyright © 2011 Nuxeo SA. All Rights Reserved.