Package org.dnsge.powerschoolapi.util
Enum ColumnMode
- java.lang.Object
-
- java.lang.Enum<ColumnMode>
-
- org.dnsge.powerschoolapi.util.ColumnMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ColumnMode>
public enum ColumnMode extends java.lang.Enum<ColumnMode>
Enum class that refers to the Column that an Element is in- Version:
- 1.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.ArrayList<Pair<org.jsoup.nodes.Element,ColumnMode>>
allGradingElements(java.util.HashMap<ColumnMode,org.jsoup.nodes.Element> input)
Gets all elements and their corresponding ColumnMode if the ColumnMode is a grading periodstatic ColumnMode
fromString(java.lang.String s)
Gets a specific ColumnMode from a Stringstatic ColumnMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ColumnMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXP
public static final ColumnMode EXP
-
LAST_WEEK
public static final ColumnMode LAST_WEEK
-
THIS_WEEK
public static final ColumnMode THIS_WEEK
-
COURSE
public static final ColumnMode COURSE
-
Q1
public static final ColumnMode Q1
-
Q2
public static final ColumnMode Q2
-
E1
public static final ColumnMode E1
-
F1
public static final ColumnMode F1
-
Q3
public static final ColumnMode Q3
-
Q4
public static final ColumnMode Q4
-
E2
public static final ColumnMode E2
-
ABSENCES
public static final ColumnMode ABSENCES
-
TARDIES
public static final ColumnMode TARDIES
-
-
Method Detail
-
values
public static ColumnMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ColumnMode c : ColumnMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColumnMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromString
public static ColumnMode fromString(java.lang.String s)
Gets a specific ColumnMode from a String- Parameters:
s
- String to get from- Returns:
- Appropriate ColumnMode
-
allGradingElements
public static java.util.ArrayList<Pair<org.jsoup.nodes.Element,ColumnMode>> allGradingElements(java.util.HashMap<ColumnMode,org.jsoup.nodes.Element> input)
Gets all elements and their corresponding ColumnMode if the ColumnMode is a grading period- Parameters:
input
- HashMap of ColumnModes and JSoup Elements- Returns:
- ArrayList of Pairs of Elements and ColumnModes
-
-