public class NsdlGradeRangeHelper extends GradeRangeHelper
Modifier and Type | Class and Description |
---|---|
class |
NsdlGradeRangeHelper.GrItemComparator
NOT YET DOCUMENTED
|
GradeRangeHelper.GradeRangeItem
Constructor and Description |
---|
NsdlGradeRangeHelper()
Constructor for the NsdlGradeRangeHelper read from file at specified path
|
Modifier and Type | Method and Description |
---|---|
GradeRange |
getDerivedGradeRange(java.lang.String[] gradeRangeVocabs)
Gets the gradeRange "extents" of a group of gradeRangeVocabs.
|
int |
getEndGrade(java.lang.String[] gradeRangeVocabs)
Return an integer representing the highest gradeLevel contained in the
provided gradeRangeVocab values, or -1 if none are provided
|
int |
getStartGrade(java.lang.String[] gradeRangeVocabs)
Return an integer representing the lowest gradeLevel contained in the
provided gradeRangeVocab values, or -1 if none are provided
|
java.util.List |
makeSortedGRList(java.lang.String[] values)
Create a sorted list of gradeRangeItems using GrItemComparator.
|
java.util.List |
pruneSortedGRList(java.util.List sorted)
Removes GradeRangeItems that contain the item in front of them.
|
addItem, addItem, addItem, getEndGrade, getGradeOptionRangeValue, getGradeRangeItem, getGradeRangeOptionLabel, getGradeRanges, getStartGrade, report, showList
public NsdlGradeRangeHelper()
public int getStartGrade(java.lang.String[] gradeRangeVocabs)
getStartGrade
in class GradeRangeHelper
gradeRangeVocabs
- NOT YET DOCUMENTEDpublic int getEndGrade(java.lang.String[] gradeRangeVocabs)
getEndGrade
in class GradeRangeHelper
gradeRangeVocabs
- NOT YET DOCUMENTEDpublic java.util.List makeSortedGRList(java.lang.String[] values)
NOTE: gradeRange values that do not have a corresponding GradeRangeItem are ignored.
values
- grade range vocab valuespublic java.util.List pruneSortedGRList(java.util.List sorted)
sorted
- a list of GradeRangeItems sorted by GrItemComparatorpublic GradeRange getDerivedGradeRange(java.lang.String[] gradeRangeVocabs)
gradeRangeVocabs
- vocab values selected in an itemDocument