Class FeedInfoMergeStrategy

All Implemented Interfaces:
EntityMergeStrategy

public class FeedInfoMergeStrategy extends AbstractIdentifiableSingleEntityMergeStrategy<org.onebusaway.gtfs.model.FeedInfo>
Perform custom merge of FeedInfo to indicate the special configuration of a merged GTFS set.
  • Constructor Details

    • FeedInfoMergeStrategy

      public FeedInfoMergeStrategy()
  • Method Details

    • replaceDuplicateEntry

      protected void replaceDuplicateEntry(GtfsMergeContext context, org.onebusaway.gtfs.model.FeedInfo oldEntity, org.onebusaway.gtfs.model.FeedInfo newEntity)
      Description copied from class: AbstractSingleEntityMergeStrategy
      If we've detected a duplicate for an entity in the source feed with some entity in the merged output feed, we want to replace all references to the old entity with the new merged entity. Sub-classes will override this method to provide logic specific to particular entity types, as it relates to updating entity references.
      Specified by:
      replaceDuplicateEntry in class AbstractSingleEntityMergeStrategy<org.onebusaway.gtfs.model.FeedInfo>
      Parameters:
      context -
      oldEntity - the old entity in the source feed that should be replaced
      newEntity - the new entity in the output merged feed that duplicates the old entity