Class MetadataMergeStrategy
java.lang.Object
org.onebusaway.gtfs_merge.strategies.MetadataMergeStrategy
- All Implemented Interfaces:
EntityMergeStrategy
Merge metadata files such as modifications.txt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetEntityTypes(Collection<Class<?>> entityTypes) Determine the list of entity types handled by this merge strategy.voidmerge(GtfsMergeContext context) Perform a merge operation for the entities specified in theGtfsMergeContext.
-
Constructor Details
-
MetadataMergeStrategy
public MetadataMergeStrategy()
-
-
Method Details
-
getEntityTypes
Description copied from interface:EntityMergeStrategyDetermine the list of entity types handled by this merge strategy.- Specified by:
getEntityTypesin interfaceEntityMergeStrategy- Parameters:
entityTypes- the handled types should be added to this output collection.
-
merge
Description copied from interface:EntityMergeStrategyPerform a merge operation for the entities specified in theGtfsMergeContext. This method will be called repeated by theGtfsMerger, once for each input feed.- Specified by:
mergein interfaceEntityMergeStrategy- Parameters:
context- the merge state for the current merge operation
-