Class StopLocationFieldMappingImpl

java.lang.Object
org.onebusaway.csv_entities.schema.AbstractFieldMapping
org.onebusaway.gtfs.serialization.mappings.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 Summary

    Constructors
    Constructor
    Description
    StopLocationFieldMappingImpl(Class<?> entityType, String csvFieldName, String objFieldName, Class<?> objFieldType, boolean required)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.commons.beanutils.Converter
    create(org.onebusaway.csv_entities.CsvEntityContext context)
    void
    translateFromCSVToObject(org.onebusaway.csv_entities.CsvEntityContext context, Map<String,Object> csvValues, org.onebusaway.csv_entities.schema.BeanWrapper object)
     
    void
    translateFromObjectToCSV(org.onebusaway.csv_entities.CsvEntityContext context, org.onebusaway.csv_entities.schema.BeanWrapper object, Map<String,Object> csvValues)
     

    Methods inherited from class org.onebusaway.csv_entities.schema.AbstractFieldMapping

    getCsvFieldName, getCSVFieldNames, getObjFieldName, getOrder, isAlwaysIncludeInOutput, isMissing, isMissing, isMissing, isMissingAndOptional, isMissingAndOptional, isOptional, setAlwaysIncludeInOutput, setDefaultValue, setIsSetMethod, setOrder

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StopLocationFieldMappingImpl

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

    • create

      public org.apache.commons.beanutils.Converter create(org.onebusaway.csv_entities.CsvEntityContext context)
      Specified by:
      create in interface ConverterFactory
      Parameters:
      context -
      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