Class DeferredValueSupport
java.lang.Object
org.onebusaway.gtfs_transformer.deferred.DeferredValueSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveAgencyAndId(org.onebusaway.csv_entities.schema.BeanWrapper bean, String propertyName, String newId) Returns aAgencyAndIdwith the specified new id value and the appropriate agency id prefix.org.apache.commons.beanutils.ConverterresolveConverter(Class<?> targetEntityType, String targetPropertyName, Class<?> targetValueType) Returns aConverterthat can convert values to the target value type.
-
Constructor Details
-
DeferredValueSupport
-
-
Method Details
-
getReader
-
resolveAgencyAndId
public AgencyAndId resolveAgencyAndId(org.onebusaway.csv_entities.schema.BeanWrapper bean, String propertyName, String newId) Returns aAgencyAndIdwith 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 existingAgencyAndIdvalue, we use the agency-id specified there. -
resolveConverter
public org.apache.commons.beanutils.Converter resolveConverter(Class<?> targetEntityType, String targetPropertyName, Class<?> targetValueType) Returns aConverterthat 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
-