org.unisens
Interface Group


public interface Group

A Group can be used to semantically group related Entries. A unisens dataset can have multiple Groups. Within a dataset groups have to have a unique id.

Author:
Joerg Ottenbacher, Radi Nedkov, Malte Kirst

Method Summary
 void addEntry(Entry entry)
          Adds an Entry to this Group.
 java.lang.String getComment()
          Gets the comment for this Group
 java.util.List<Entry> getEntries()
          Gets all Entries of this Group.
 java.lang.String getId()
          Gets the id of this group.
 void removeEntry(Entry entry)
          Removes an Entry from this Group
 void setComment(java.lang.String comment)
          Sets this comment for this Group
 void setId(java.lang.String id)
          Sets the id of this group.
 

Method Detail

setComment

void setComment(java.lang.String comment)
Sets this comment for this Group

Parameters:
comment - the comment

getComment

java.lang.String getComment()
Gets the comment for this Group

Returns:
the comment

getId

java.lang.String getId()
Gets the id of this group. Within a dataset groups have to have a unique id.

Returns:
the id of this Group

setId

void setId(java.lang.String id)
Sets the id of this group. Within a dataset groups have to have a unique id.

Parameters:
id - the new id of this Group

getEntries

java.util.List<Entry> getEntries()
Gets all Entries of this Group.

Returns:
the List of all Entries in this Group

addEntry

void addEntry(Entry entry)
Adds an Entry to this Group.

Parameters:
entry - the Entry to be added

removeEntry

void removeEntry(Entry entry)
Removes an Entry from this Group

Parameters:
entry - the Entry to be removed