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

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

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.
 */
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;
    }

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

    public Collection sharedEntries() {
        return sharedEntries;
    }

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

    public Collection independentEntries() {
        return entries;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy