public class SubstitutionScheduleData
extends java.lang.Object
SubstitutionScheduleParser instance so that it can parse the schedule.| Constructor and Description |
|---|
SubstitutionScheduleData() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAdditionalInfos()
Get the types of
AdditionalInfo this schedule should contain. |
java.lang.String |
getApi()
Get the type of parser to use for this schedule, as a string representation.
|
AuthenticationData |
getAuthenticationData()
Get information about what kind of
Credential is needed to parse
this schedule and if there are additional parameters for authentication (such as a pre-set school number with
only the password needing to be filled in). |
org.json.JSONObject |
getData()
Get additional data about this substitution schedule in form of a JSON object.
|
SubstitutionSchedule.Type |
getType()
Get the
SubstitutionSchedule.Type of the substitution schedule this data represents |
void |
setAdditionalInfos(java.util.List<java.lang.String> additionalInfos)
Set the types of
AdditionalInfo this schedule should contain. |
void |
setApi(java.lang.String api)
Set the type of parser to use for this schedule, as a string representation.
|
void |
setAuthenticationData(AuthenticationData authenticationData)
Set information about what kind of
Credential is needed to parse
this schedule and if there are additional parameters for authentication (such as a pre-set school number with
only the password needing to be filled in). |
void |
setData(org.json.JSONObject data)
Set additional data about this substitution schedule in form of a JSON object.
|
void |
setType(SubstitutionSchedule.Type type)
Set the
SubstitutionSchedule.Type of the substitution schedule this data represents |
public SubstitutionSchedule.Type getType()
SubstitutionSchedule.Type of the substitution schedule this data representspublic void setType(SubstitutionSchedule.Type type)
SubstitutionSchedule.Type of the substitution schedule this data representstype - the type of this schedulepublic java.lang.String getApi()
BaseParser.getInstance(SubstitutionScheduleData, CookieProvider) to create a
suitable parser instance.public void setApi(java.lang.String api)
BaseParser.getInstance(SubstitutionScheduleData, CookieProvider) to create a
suitable parser instance. Currently supported values are:
"untis-monitor""untis-info""untis-info-headless""untis-subst""dsbmobile""svplan""davinci""turbovertretung""csv""legionboard"api - the type of parser to usepublic java.util.List<java.lang.String> getAdditionalInfos()
AdditionalInfo this schedule should contain. Used by
BaseAdditionalInfoParser.getInstance(String) to create a suitable
parser instance.public void setAdditionalInfos(java.util.List<java.lang.String> additionalInfos)
AdditionalInfo this schedule should contain. Used by
BaseAdditionalInfoParser.getInstance(String) to create a suitable
parser instance. Currently supported values are:
"winter-sh"additionalInfos - the additional info types to setpublic org.json.JSONObject getData()
me.vertretungsplan.parser package.public void setData(org.json.JSONObject data)
me.vertretungsplan.parser package.data - additional data about this substitution schedulepublic AuthenticationData getAuthenticationData()
Credential is needed to parse
this schedule and if there are additional parameters for authentication (such as a pre-set school number with
only the password needing to be filled in). If no credential is needed, this should return a
NoAuthenticationData instance.public void setAuthenticationData(AuthenticationData authenticationData)
Credential is needed to parse
this schedule and if there are additional parameters for authentication (such as a pre-set school number with
only the password needing to be filled in). If no credential is needed, set this to a
NoAuthenticationData instance.authenticationData - the authentication data to set