|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.custom.schedule.model.PlannerEntity
A Planner entity is a person, room, piece of equipment, ... that is displayed as a row in the planner component.
TODO this should be an interface, with a DefaultPlannerEntity implementation
Constructor Summary | |
PlannerEntity(java.lang.String id,
java.lang.String name)
Creates a new PlannerEntity object. |
Method Summary | |
boolean |
addEntry(ScheduleEntry entry)
Add a schedule entry to this planner entity |
void |
clear()
Remove all entries |
boolean |
equals(java.lang.Object o)
|
java.util.TreeSet |
getEntries()
|
java.lang.String |
getId()
|
java.lang.String |
getName()
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
boolean |
remove(ScheduleEntry entry)
Remove an entry from this entity |
void |
setEntries(java.util.TreeSet entries)
|
int |
size()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PlannerEntity(java.lang.String id, java.lang.String name)
id
- the unique identifiername
- the nameMethod Detail |
public boolean isEmpty()
public void setEntries(java.util.TreeSet entries)
entries
- The entries to set.public java.util.TreeSet getEntries()
public java.lang.String getId()
public java.lang.String getName()
public boolean addEntry(ScheduleEntry entry)
Add a schedule entry to this planner entity
entry
- the entry to be added
public void clear()
Remove all entries
public boolean equals(java.lang.Object o)
Object.equals(java.lang.Object)
public java.util.Iterator iterator()
public boolean remove(ScheduleEntry entry)
Remove an entry from this entity
entry
- the entry to be removed
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |