Class DeferredValueSupport
- java.lang.Object
-
- org.onebusaway.gtfs_transformer.deferred.DeferredValueSupport
-
public class DeferredValueSupport extends Object
-
-
Constructor Summary
Constructors Constructor Description DeferredValueSupport(GtfsReader reader, EntitySchemaCache schemaCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GtfsReadergetReader()AgencyAndIdresolveAgencyAndId(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 Detail
-
DeferredValueSupport
public DeferredValueSupport(GtfsReader reader, EntitySchemaCache schemaCache)
-
-
Method Detail
-
getReader
public GtfsReader 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
-
-