|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectde.unikassel.android.sdcframework.data.WeekdaySchedule
public class WeekdaySchedule
Weekday schedule representation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
Parcelable.Creator<T> |
| Field Summary | |
|---|---|
static Parcelable.Creator<WeekdaySchedule> |
CREATOR
The Parcelable creator. |
private List<WeekdayScheduleEntry> |
scheduleEntryList
The list with the weekday schedule entries. |
private Weekday |
weekday
The associated weekday. |
| Fields inherited from interface android.os.Parcelable |
|---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
| Constructor Summary | |
|---|---|
WeekdaySchedule(Parcel source)
Constructor |
|
WeekdaySchedule(Weekday weekday)
Constructor |
|
WeekdaySchedule(Weekday weekday,
List<WeekdayScheduleEntry> scheduleEntryList)
Constructor |
|
| Method Summary | |
|---|---|
void |
addEntry(WeekdayScheduleEntry entry)
Method to add entries. |
int |
describeContents()
|
boolean |
equals(Object o)
|
List<WeekdayScheduleEntry> |
getEntries()
Getter for the weekday schedule entries. |
Weekday |
getWeekday()
Getter for the weekday |
boolean |
isValid()
Test method for a valid weekday schedule. |
void |
removeEntry(WeekdayScheduleEntry entry)
Method to remove entries. |
String |
toXML()
Serialization from the type to it's XML representation |
void |
writeToParcel(Parcel dest,
int flags)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Weekday weekday
private final List<WeekdayScheduleEntry> scheduleEntryList
public static final Parcelable.Creator<WeekdaySchedule> CREATOR
| Constructor Detail |
|---|
public WeekdaySchedule(Parcel source)
source - the associated weekday schedule
public WeekdaySchedule(Weekday weekday,
List<WeekdayScheduleEntry> scheduleEntryList)
weekday - the weekdayscheduleEntryList - the scheduled entries for this weekdaypublic WeekdaySchedule(Weekday weekday)
weekday - the weekday| Method Detail |
|---|
public Weekday getWeekday()
public void addEntry(WeekdayScheduleEntry entry)
entry - the schedule entry to addpublic void removeEntry(WeekdayScheduleEntry entry)
entry - the schedule entry to removepublic List<WeekdayScheduleEntry> getEntries()
public String toXML()
throws Exception
SerializableData
toXML in interface SerializableDataException - if the schema for the object is not validpublic boolean equals(Object o)
equals in class Objectpublic boolean isValid()
public int describeContents()
describeContents in interface Parcelable
public void writeToParcel(Parcel dest,
int flags)
writeToParcel in interface Parcelable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||