Class LongType
java.lang.Object
org.nuxeo.ecm.core.schema.types.AbstractType
org.nuxeo.ecm.core.schema.types.PrimitiveType
org.nuxeo.ecm.core.schema.types.primitives.LongType
- All Implemented Interfaces:
Serializable,SimpleType,Type
The long type.
- See Also:
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.core.schema.types.PrimitiveType
PRIMITIVE_TYPE_STRICT_VALIDATION_PROPERTYFields inherited from class org.nuxeo.ecm.core.schema.types.AbstractType
constraints, EMPTY_SUPERTYPES, name, schema, superType -
Method Summary
Modifier and TypeMethodDescriptionConverts the given value to an object compatible with the associated type.Decodes the string representation into an object of this type.Encodes the given object that is assumed to be of this type into a string representation.protected Objectbooleansupport(Class<? extends Constraint> constraint) booleanTests whether the given object is of this type.Methods inherited from class org.nuxeo.ecm.core.schema.types.PrimitiveType
getConstraints, getObjectResolver, getPrimitiveType, getSuperType, getTypeHierarchy, isPrimitive, isSimpleType, isStrictValidationMethods inherited from class org.nuxeo.ecm.core.schema.types.AbstractType
addConstraints, getName, getSchema, getSchemaName, isAny, isAnyType, isComplexType, isCompositeType, isListType, isSuperTypeOf, newInstance, validateConstraintsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.core.schema.types.Type
getName, getSchema, getSchemaName, isAnyType, isComplexType, isCompositeType, isListType, isSuperTypeOf, newInstance
-
Field Details
-
ID
- See Also:
-
INSTANCE
-
-
Method Details
-
validate
Description copied from interface:TypeTests whether the given object is of this type.- Specified by:
validatein interfaceType- Specified by:
validatein classPrimitiveType- Parameters:
object- the object to test- Returns:
- true if the given object if of this type, false otherwise
-
convert
Description copied from interface:TypeConverts the given value to an object compatible with the associated type.- Parameters:
value- the value to convert- Returns:
- the converted value
-
decode
Description copied from interface:TypeDecodes the string representation into an object of this type.Returns null if the string can not be decoded.
- Specified by:
decodein interfaceType- Overrides:
decodein classAbstractType- Parameters:
str- the string to decode- Returns:
- the converted object that can be use as a value for an object of this type or null if the given object cannot be converted
-
encode
Description copied from interface:TypeEncodes the given object that is assumed to be of this type into a string representation.Null is returned if the object cannot be converted.
- Specified by:
encodein interfaceType- Overrides:
encodein classAbstractType- Parameters:
object- the object to convert- Returns:
- the string representation of the given object or null if object cannot be converted
-
readResolve
-
support
- Specified by:
supportin classPrimitiveType- Returns:
- true if this primitive types supports this constraints, false otherwise.
-