Class StopLocationFieldMappingImpl

  • All Implemented Interfaces:
    org.onebusaway.csv_entities.schema.FieldMapping, org.onebusaway.csv_entities.schema.SingleFieldMapping, ConverterFactory

    public class StopLocationFieldMappingImpl
    extends org.onebusaway.csv_entities.schema.AbstractFieldMapping
    • Field Summary

      • Fields inherited from class org.onebusaway.csv_entities.schema.AbstractFieldMapping

        _alwaysIncludeInOutput, _csvFieldName, _defaultValue, _entityType, _isSetMethod, _objFieldName, _order, _required
    • Constructor Detail

      • StopLocationFieldMappingImpl

        public StopLocationFieldMappingImpl​(Class<?> entityType,
                                            String csvFieldName,
                                            String objFieldName,
                                            Class<?> objFieldType,
                                            boolean required)
    • Method Detail

      • create

        public org.apache.commons.beanutils.Converter create​(org.onebusaway.csv_entities.CsvEntityContext context)
        Specified by:
        create in interface ConverterFactory
        Returns:
        creates a String-to-value Converter for the specified CsvEntityContext.
      • translateFromCSVToObject

        public void translateFromCSVToObject​(org.onebusaway.csv_entities.CsvEntityContext context,
                                             Map<String,​Object> csvValues,
                                             org.onebusaway.csv_entities.schema.BeanWrapper object)
        Specified by:
        translateFromCSVToObject in interface org.onebusaway.csv_entities.schema.FieldMapping
      • translateFromObjectToCSV

        public void translateFromObjectToCSV​(org.onebusaway.csv_entities.CsvEntityContext context,
                                             org.onebusaway.csv_entities.schema.BeanWrapper object,
                                             Map<String,​Object> csvValues)
        Specified by:
        translateFromObjectToCSV in interface org.onebusaway.csv_entities.schema.FieldMapping