Class DeferredValueSupport


  • public class DeferredValueSupport
    extends Object
    • Method Detail

      • resolveAgencyAndId

        public AgencyAndId resolveAgencyAndId​(org.onebusaway.csv_entities.schema.BeanWrapper bean,
                                              String propertyName,
                                              String newId)
        Returns a AgencyAndId with the specified new id value and the appropriate agency id prefix. By default, we use the GTFS reader's default agency id. However, if the specified bean+property has an existing AgencyAndId value, we use the agency-id specified there.
      • resolveConverter

        public org.apache.commons.beanutils.Converter resolveConverter​(Class<?> targetEntityType,
                                                                       String targetPropertyName,
                                                                       Class<?> targetValueType)
        Returns a Converter that can convert values to the target value type. If the target entity type + property has a custom converter defined in the GTFS entity schema, we will use that as instead.
        Parameters:
        targetEntityType - the target entity type whose property will be updated.
        targetPropertyName - the target property name for the property that will be updated on the target entity.
        targetValueType - the target value type we wish to convert to