org.nuxeo.ecm.core.api.impl.converter
Class ValueConverter
java.lang.Object
org.nuxeo.ecm.core.api.impl.converter.ValueConverter
- Direct Known Subclasses:
- BlobConverter
public abstract class ValueConverter
- extends Object
Converts input values into values suitable to be set to a typed object.
Converters are associated with a type.
- Author:
- Bogdan Stefanescu
ValueConverter
public ValueConverter()
convert
public abstract Object convert(Object value)
throws TypeException
- Throws:
TypeException
addConvertor
public static void addConvertor(String type,
ValueConverter convertor)
removeConvertor
public static void removeConvertor(String type)
getValue
public static Object getValue(String type,
Object value)
throws TypeException
- Throws:
TypeException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.