com.stringsandints.inventium.khlrooster.data
Class Lesson

java.lang.Object
  extended by com.stringsandints.inventium.khlrooster.data.Lesson

public class Lesson
extends java.lang.Object

This class keeps track of the lessonId, name, summary and location of a lesson.


Field Summary
private  java.util.ArrayList<LessonHour> lessonhours
           
private  int lessonId
           
private  java.lang.String name
           
private  boolean notfoundinlastsync
           
private  java.lang.String reeks
           
private  java.lang.String summary
           
 
Constructor Summary
Lesson()
           
Lesson(int lesId, java.lang.String name, java.lang.String summary, java.lang.String reeks, boolean notfoundinlastsync)
           
Lesson(java.lang.String name, java.lang.String summary, java.lang.String reeks, boolean notfoundinlastsync)
           
 
Method Summary
 void addLessonHour(LessonHour l)
           
 boolean equals(java.lang.Object l)
           
 java.lang.String getEventName()
           
 java.util.ArrayList<LessonHour> getLessonHours()
           
 int getLessonId()
          Getters & setters
 java.lang.String getName()
           
 boolean getNotFoundInLastSync()
           
 java.lang.String getReeks()
           
 java.lang.String getShortName()
          Get a short name for the lesson
 java.lang.String getSummary()
           
 void removeLessonHour(LessonHour l)
           
protected  void setLessonId(int lessonId)
           
protected  void setName(java.lang.String name)
           
 void setNotFoundInLastSync(boolean arg)
           
protected  void setReeks(java.lang.String reeks)
           
protected  void setSummary(java.lang.String summary)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lessonId

private int lessonId

name

private java.lang.String name

summary

private java.lang.String summary

reeks

private java.lang.String reeks

notfoundinlastsync

private boolean notfoundinlastsync

lessonhours

private java.util.ArrayList<LessonHour> lessonhours
Constructor Detail

Lesson

public Lesson(int lesId,
              java.lang.String name,
              java.lang.String summary,
              java.lang.String reeks,
              boolean notfoundinlastsync)

Lesson

public Lesson(java.lang.String name,
              java.lang.String summary,
              java.lang.String reeks,
              boolean notfoundinlastsync)

Lesson

public Lesson()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getEventName

public java.lang.String getEventName()

getLessonId

public int getLessonId()
Getters & setters


setLessonId

protected void setLessonId(int lessonId)

getName

public java.lang.String getName()

getShortName

public java.lang.String getShortName()
Get a short name for the lesson

Returns:

setName

protected void setName(java.lang.String name)

getSummary

public java.lang.String getSummary()

setSummary

protected void setSummary(java.lang.String summary)

getReeks

public java.lang.String getReeks()

setReeks

protected void setReeks(java.lang.String reeks)

getNotFoundInLastSync

public boolean getNotFoundInLastSync()

setNotFoundInLastSync

public void setNotFoundInLastSync(boolean arg)

addLessonHour

public void addLessonHour(LessonHour l)

removeLessonHour

public void removeLessonHour(LessonHour l)

getLessonHours

public java.util.ArrayList<LessonHour> getLessonHours()

equals

public boolean equals(java.lang.Object l)
Overrides:
equals in class java.lang.Object