org.databene.benerator.composite
Class ComponentTypeConverter
java.lang.Object
org.databene.commons.converter.AbstractConverter<Entity,Entity>
org.databene.benerator.composite.ComponentTypeConverter
- All Implemented Interfaces:
- org.databene.commons.Converter<Entity,Entity>, org.databene.commons.ThreadAware
public class ComponentTypeConverter
- extends org.databene.commons.converter.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
Fields inherited from class org.databene.commons.converter.AbstractConverter |
sourceType, targetType |
Methods inherited from class org.databene.commons.converter.AbstractConverter |
getSourceType, getTargetType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ComponentTypeConverter
public ComponentTypeConverter(ComplexTypeDescriptor type)
convert
public Entity convert(Entity entity)
throws org.databene.commons.ConversionException
- Throws:
org.databene.commons.ConversionException
isParallelizable
public boolean isParallelizable()
isThreadSafe
public boolean isThreadSafe()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2013. All Rights Reserved.