Nuxeo Enterprise Platform 5.4

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

All Superinterfaces:
java.io.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 java.io.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
 java.lang.Object convert(java.lang.Object value)
          Deprecated. Converts the given value to an object compatible with the associated type.
 

Method Detail

convert

java.lang.Object convert(java.lang.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 © 2010 Nuxeo SAS. All Rights Reserved.