ingo@1115: /*
ingo@1115: * Copyright (c) 2010 by Intevation GmbH
ingo@1115: *
ingo@1115: * This program is free software under the LGPL (>=v2.1)
ingo@1115: * Read the file LGPL.txt coming with the software for details
ingo@1115: * or visit http://www.gnu.org/licenses/ if it does not exist.
ingo@1115: */
ingo@1115:
tim@335: package de.intevation.gnv.state.describedata;
tim@335:
tim@335: import java.util.Collection;
tim@335:
tim@335: /**
ingo@809: * This interface describes some methods to retrieve the name of this
ingo@809: * Collection
and to determine if this Collection
is a
ingo@809: * single or multiselect object.
ingo@809: *
ingo@809: * @param The objects in this class need to be of this type.
sascha@780: * @author Tim Englich
sascha@778: *
tim@335: */
tim@335: public interface NamedCollection extends Collection {
tim@335:
ingo@809: /**
ingo@809: * Returns the name of this Collection
.
ingo@809: *
ingo@809: * @return the name.
ingo@809: */
tim@335: public String getName();
tim@335:
ingo@809: /**
ingo@809: * Determines if this Collection
is a multi select object.
ingo@809: *
ingo@809: * @return true, if it is multi select, otherwise false.
ingo@809: */
tim@335: public boolean isMultiSelect();
tim@335:
ingo@809: /**
ingo@809: * Change between single and multiselect.
ingo@809: *
ingo@809: * @param multiSelect true, if this object should be a multiselect,
ingo@809: * otherwise false.
ingo@809: */
tim@335: public void setMultiSelect(boolean multiSelect);
tim@335: }
sascha@836: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :