All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.netex.loader.GroupEntries Maven / Gradle / Ivy

The newest version!
package org.opentripplanner.netex.loader;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.opentripplanner.datastore.api.DataSource;

/**
 * A named group of NeTEx file entries. The entries are grouped together with a set of shared group
 * entries and a set of _individual_ entries.
 */
public class GroupEntries {

  private final String name;
  private final List sharedEntries = new ArrayList<>();
  private final List entries = new ArrayList<>();

  GroupEntries(String name) {
    this.name = name;
  }

  public String name() {
    return name;
  }

  public Collection sharedEntries() {
    return sharedEntries;
  }

  public Collection independentEntries() {
    return entries;
  }

  void addSharedEntry(DataSource entry) {
    sharedEntries.add(entry);
  }

  void addIndependentEntries(DataSource entry) {
    entries.add(entry);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy