public abstract class UntisCommonParser extends BaseParser
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)falseteacherInExtraLine (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.
typeAutoDetection (Boolean, optional)truecolorProvider, cookieProvider, cookieStore, credential, debuggingDataHandler, encodingDetector, executor, PARAM_CLASS_REGEX, scheduleData| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAllClasses()
Get a list of all available classes.
|
protected void |
parseSubstitutionTable(SubstitutionSchedule v,
java.lang.String lastChange,
org.jsoup.nodes.Document doc)
Parses an Untis substitution table (
UntisSubstitutionParser). |
contains, getAllTeachers, getClassesFromJson, getCredential, getInstance, getLastChange, getSubstitutionSchedule, httpGet, httpGet, httpPost, httpPost, httpPost, httpPost, isPersonal, recognizeType, setCredential, setDebuggingDataHandlerpublic java.util.List<java.lang.String> getAllClasses()
throws java.io.IOException,
org.json.JSONException,
CredentialInvalidException
BaseParsergetAllClasses in class BaseParserjava.io.IOException - Connection or parsing errororg.json.JSONException - Error with the JSON configurationCredentialInvalidExceptionprotected void parseSubstitutionTable(SubstitutionSchedule v, java.lang.String lastChange, org.jsoup.nodes.Document doc) throws org.json.JSONException, CredentialInvalidException, java.io.IOException
UntisSubstitutionParser).v - lastChange - doc - org.json.JSONExceptionCredentialInvalidExceptionjava.io.IOException