public class SubstitutionPlan
extends java.lang.Object
Parse
Constructor and Description |
---|
SubstitutionPlan()
|
SubstitutionPlan(boolean hours,
java.lang.String... courses)
|
Modifier and Type | Method and Description |
---|---|
boolean |
areDocsDownloaded()
|
java.lang.String[][] |
getAll(boolean today)
|
java.lang.String |
getAllString(boolean today)
|
java.util.ArrayList<java.lang.String>
|
getCourses()
|
java.lang.String[][] |
getDay(boolean today)
|
java.lang.String |
getDayString(boolean today)
|
org.jsoup.nodes.Document |
getDoc(boolean today)
|
boolean |
getSenior()
|
java.lang.String[] |
getTitleArray(boolean today)
|
java.lang.String |
getTitleString(boolean today)
|
void |
reCreate(boolean hours,
java.lang.String... courses)
|
void |
setContext(android.content.Context value)
|
void |
setDocs(org.jsoup.nodes.Document today,
org.jsoup.nodes.Document tomorrow)
|
void |
setTodayDoc(org.jsoup.nodes.Document value)
|
void |
setTomorrowDoc(org.jsoup.nodes.Document value)
|
public SubstitutionPlan()
public SubstitutionPlan(boolean hours, java.lang.String... courses)
hours
- boolean if it should show the matching
hours, like a 1 will be converted to 8:10
courses
- The class names, which the
substiution plan should be searched for
getMatchingTime(int)
,
reCreate(boolean,
java.lang.String...)
public void reCreate(boolean hours, java.lang.String... courses)
hours
- boolean if it should show the matching
hours, like a 1 will be converted to 8:10
courses
- The class names, which the
substiution plan should be searched for
getMatchingTime(int)
public void setContext(android.content.Context value)
value
- Context for the Stringspublic java.lang.String[] getTitleArray(boolean today)
today:
- boolean if the title of today or
tomorrow should be analyzed
Parse.getTitleArraySorted(org.jsoup.nodes.Document,
boolean, java.lang.String, java.lang.String,
java.lang.String)
public java.lang.String getTitleString(boolean today)
today:
- boolean if the title of today or
tomorrow should be analyzed
Parse.getTitleStringSorted(org.jsoup.nodes.Document,
boolean, java.lang.String, java.lang.String,
java.lang.String)
,
getTitleArray(boolean)
public java.lang.String[][] getDay(boolean today)
today:
- boolean if the plan of today or
tomorrow should be analyzed
getAll(boolean)
public java.lang.String getDayString(boolean today)
public java.lang.String[][] getAll(boolean today)
today:
- boolean if the plan of today or
tomorrow should be analyzed
public java.lang.String getAllString(boolean today)
public boolean getSenior()
public void setTodayDoc(org.jsoup.nodes.Document value)
public void setTomorrowDoc(org.jsoup.nodes.Document value)
public void setDocs(org.jsoup.nodes.Document today, org.jsoup.nodes.Document tomorrow)
today
- Document of the today plan (Jsoup)tomorrow
- Document of the tomorrow plan
(Jsoup)
public org.jsoup.nodes.Document getDoc(boolean today)
public boolean areDocsDownloaded()
public java.util.ArrayList<java.lang.String> getCourses()