org.opentripplanner.netex.loader.GroupEntries Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.netex.loader;
import org.opentripplanner.datastore.DataSource;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/**
* 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.
*/
class GroupEntries {
private String name;
private List sharedEntries = new ArrayList<>();
private List entries = new ArrayList<>();
GroupEntries(String name) {
this.name = name;
}
public String name() {
return name;
}
void addSharedEntry(DataSource entry) {
sharedEntries.add(entry);
}
Collection sharedEntries() {
return sharedEntries;
}
void addIndependentEntries(DataSource entry) {
entries.add(entry);
}
Collection independentEntries() {
return entries;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy