public abstract class UntisCommonParser extends BaseParser
DSBLightParser, DSBMobileParser, UntisInfoParser,
UntisInfoHeadlessParser, UntisMonitorParser and UntisSubstitutionParser.
SubstitutionScheduleData.setData(JSONObject) in addition to the
parameters specified in the documentation of the parser itself.
columns (Array of Strings, required)"lesson", "subject",
"previousSubject", "type", "type-entfall", "room", "previousRoom", "teacher", "previousTeacher", desc",
"desc-type", "substitutionFrom", "teacherTo", "class", "ignore" ("class" only works when
classInExtraLine is false.
lastChangeLeft (Boolean, optional).mon_head table.
Default: falseclassInExtraLine (Boolean, optional)falseclassesSeparated (Boolean, optional)false, combinations like "5abcde"
are attempted to be accounted for using an ugly algorithm based on RegExes generated from getAllClasses().
Default: trueexcludeClasses (Array of Strings, optional)"-----" is ignored.classRegex (String, optional)BaseParser.getSubstitutionSchedule(), not
getAllClasses(). The RegEx is matched against the class using Matcher.find(). If the RegEx
contains a group, the content of the first group Matcher.group(int) is used as the resulting class.
Otherwise, Matcher.group() is used. If the RegEx cannot be matched (Matcher.find() returns
false), the class is set to an empty string.
colorProvider, cookieProvider, cookieStore, credential, executor, PARAM_CLASS_REGEX, scheduleData| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllClasses()
Get a list of all available classes.
|
contains, getAllTeachers, getClassesFromJson, getCredential, getInstance, getSubstitutionSchedule, httpGet, httpGet, httpPost, httpPost, httpPost, httpPost, recognizeType, setCredentialpublic List<String> getAllClasses() throws IOException, org.json.JSONException
BaseParsergetAllClasses in class BaseParserIOException - Connection or parsing errororg.json.JSONException - Error with the JSON configuration