Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.schema.types
Interface ValueConverter

All Superinterfaces:
Serializable
All Known Subinterfaces:
ComplexType, CompositeType, DocumentType, ListType, Schema, SimpleType, Type
All Known Implementing Classes:
AbstractType, AnyType, BinaryType, BooleanType, ComplexTypeImpl, CompositeTypeImpl, DateType, DocumentTypeImpl, DoubleType, IntegerType, ListTypeImpl, LongType, PrimitiveType, SchemaImpl, SimpleTypeImpl, StringType

Deprecated. use TypeHelper instead

@Deprecated
public interface ValueConverter
extends Serializable

Converts a value to an object compatible with the associated type.

A value converter is associated with a type and enable the programmer to change the default java types corresponding to nuxeo types

Author:
Bogdan Stefanescu

Method Summary
 Object convert(Object value)
          Deprecated. Converts the given value to an object compatible with the associated type.
 

Method Detail

convert

Object convert(Object value)
               throws TypeException
Deprecated. 
Converts the given value to an object compatible with the associated type.

Parameters:
value - the value to convert
Returns:
the converted value
Throws:
TypeException - if the value to convert is not compatible with the associated type

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.