|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unikassel.android.sdcframework.data.WeekdayScheduleEntry
public class WeekdayScheduleEntry
A weekday schedule entry marks a time stamp hh:mm:ss at the connected weekday and an action to perform.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface android.os.Parcelable |
---|
Parcelable.Creator<T> |
Field Summary | |
---|---|
private WeekdaySchedulerAction |
action
The action to perform |
static Parcelable.Creator<WeekdayScheduleEntry> |
CREATOR
The Parcelable creator. |
private boolean |
isValid
The validation flag for display purpose. |
private int |
time
The time offset in seconds (hh:mm:ss) at the related weekday. |
private WeekdaySchedule |
weekdaySchedule
The associated weekday schedule. |
Fields inherited from interface android.os.Parcelable |
---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
Constructor Summary | |
---|---|
WeekdayScheduleEntry(Intent intent)
Constructor |
|
WeekdayScheduleEntry(int startTime,
WeekdaySchedulerAction action)
Constructor |
|
WeekdayScheduleEntry(Parcel source)
Constructor |
|
WeekdayScheduleEntry(WeekdayScheduleEntry source)
Constructor |
Method Summary | |
---|---|
int |
describeContents()
|
boolean |
equals(Object o)
|
WeekdaySchedulerAction |
getAction()
Getter for the action |
Intent |
getIntent()
Getter for an intent representation |
int |
getMilliseconds()
Getter for the time in millisecond precision |
int |
getSeconds()
Getter for the time in second precision |
Weekday |
getWeekday()
Getter for the week day |
WeekdaySchedule |
getWeekdaySchedule()
Getter for the day |
boolean |
isValid()
Getter for the isValid |
void |
setAction(WeekdaySchedulerAction action)
Setter for the action |
void |
setSeconds(int time)
Setter for the time |
void |
setValid(boolean isValid)
Setter for the isValid |
void |
setWeekdaySchedule(WeekdaySchedule weekdaySchedule)
Setter for the weekday schedule |
String |
toString()
|
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, wait, wait, wait |
Field Detail |
---|
private WeekdaySchedule weekdaySchedule
private int time
private WeekdaySchedulerAction action
private boolean isValid
public static final Parcelable.Creator<WeekdayScheduleEntry> CREATOR
Constructor Detail |
---|
public WeekdayScheduleEntry(Intent intent)
intent
- the intent to create frompublic WeekdayScheduleEntry(WeekdayScheduleEntry source)
source
- the source to copy frompublic WeekdayScheduleEntry(Parcel source)
source
- the associated weekday schedulepublic WeekdayScheduleEntry(int startTime, WeekdaySchedulerAction action)
startTime
- the time stampaction
- the action to performMethod Detail |
---|
public WeekdaySchedule getWeekdaySchedule()
public Weekday getWeekday()
public void setWeekdaySchedule(WeekdaySchedule weekdaySchedule)
weekdaySchedule
- the weekday schedule to setpublic int getSeconds()
public int getMilliseconds()
public void setSeconds(int time)
time
- the time to setpublic WeekdaySchedulerAction getAction()
public void setAction(WeekdaySchedulerAction action)
action
- the action to setpublic String toXML() throws Exception
SerializableData
toXML
in interface SerializableData
Exception
- if the schema for the object is not validpublic String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public void setValid(boolean isValid)
isValid
- the isValid to setpublic boolean isValid()
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public Intent getIntent()
BroadcastableEvent
getIntent
in interface BroadcastableEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |