org.databene.benerator.composite
Class ComponentTypeConverter
java.lang.Object
org.databene.commons.converter.AbstractConverter<Entity,Entity>
org.databene.benerator.composite.ComponentTypeConverter
- All Implemented Interfaces:
- Converter<Entity,Entity>, ThreadAware
public class ComponentTypeConverter
- extends AbstractConverter<Entity,Entity>
Converts an Entity's components to the type specified by the EntityDescriptor.
This is used for e.g. importing Entities from file with String component values and
converting them to the correct target type.
Created at 06.05.2008 11:34:46
- Since:
- 0.5.3
- Author:
- Volker Bergmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentTypeConverter
public ComponentTypeConverter(ComplexTypeDescriptor type)
convert
public Entity convert(Entity entity)
throws ConversionException
- Description copied from interface:
Converter
- Concerts an object of type S to an object of type T
- Parameters:
entity - the object to convert
- Returns:
- the converted object
- Throws:
ConversionException - if the conversion fails
isParallelizable
public boolean isParallelizable()
isThreadSafe
public boolean isThreadSafe()
Copyright © 2010. All Rights Reserved.