use of org.onebusaway.gtfs.model.IdentityBean in project onebusaway-gtfs-modules by OneBusAway.
the class EntityFieldMappingImpl method translateFromObjectToCSV.
@SuppressWarnings("unchecked")
public void translateFromObjectToCSV(CsvEntityContext context, BeanWrapper object, Map<String, Object> csvValues) {
IdentityBean<AgencyAndId> entity = (IdentityBean<AgencyAndId>) object.getPropertyValue(_objFieldName);
if (isOptional() && entity == null)
return;
AgencyAndId id = entity.getId();
csvValues.put(_csvFieldName, id.getId());
}
Aggregations