Class DeferredValueConverter
- java.lang.Object
-
- org.onebusaway.gtfs_transformer.deferred.DeferredValueConverter
-
public class DeferredValueConverter extends Object
In implementations, the source value is often a primitive string but the target value type is often something more complex: a numeric type, aAgencyAndId, a field with GTFS-specific formatting, or even a GTFS entity. Often, the value cannot be properly converted until the moment of assignment, as it must be resolved against existing and previously assigned values. This class provides methods for converting the input value into a resolved value appropriate for assignment.
-
-
Constructor Summary
Constructors Constructor Description DeferredValueConverter(GtfsReader reader, EntitySchemaCache schemaCache, GtfsRelationalDao dao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectconvertValue(org.onebusaway.csv_entities.schema.BeanWrapper targetBean, String targetPropertyName, Object value)Converts the specified value as appropriate such that the resulting value can be assigned to the specified property of the specified bean.
-
-
-
Constructor Detail
-
DeferredValueConverter
public DeferredValueConverter(GtfsReader reader, EntitySchemaCache schemaCache, GtfsRelationalDao dao)
-
-