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

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

There is a newer version: 2.5.0
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy