Search in sources :

Example 1 with RemoveEntityUpdateStrategy

use of org.onebusaway.gtfs_transformer.impl.RemoveEntityUpdateStrategy in project onebusaway-gtfs-modules by OneBusAway.

the class TransformFactory method handleRemoveOperation.

private void handleRemoveOperation(String line, JSONObject json) throws JSONException, TransformSpecificationException {
    TypedEntityMatch match = getMatch(line, json);
    EntitiesTransformStrategy strategy = getStrategy(EntitiesTransformStrategy.class);
    RemoveEntityUpdateStrategy mod = new RemoveEntityUpdateStrategy();
    strategy.addModification(match, mod);
}
Also used : TypedEntityMatch(org.onebusaway.gtfs_transformer.match.TypedEntityMatch) RemoveEntityUpdateStrategy(org.onebusaway.gtfs_transformer.impl.RemoveEntityUpdateStrategy)

Aggregations

RemoveEntityUpdateStrategy (org.onebusaway.gtfs_transformer.impl.RemoveEntityUpdateStrategy)1 TypedEntityMatch (org.onebusaway.gtfs_transformer.match.TypedEntityMatch)1