Class DeferredValueConverter
java.lang.Object
org.onebusaway.gtfs_transformer.deferred.DeferredValueConverter
In implementations, the source value is often a primitive
string but the target value type is often something more complex: a numeric
type, a
AgencyAndId, 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
ConstructorsConstructorDescriptionDeferredValueConverter(GtfsReader reader, EntitySchemaCache schemaCache, GtfsRelationalDao dao) -
Method Summary
Modifier and TypeMethodDescriptionconvertValue(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 Details
-
DeferredValueConverter
public DeferredValueConverter(GtfsReader reader, EntitySchemaCache schemaCache, GtfsRelationalDao dao)
-
-
Method Details