Class 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, 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.
    • Method Detail

      • convertValue

        public Object convertValue​(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.