public class GradeRangeHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
GradeRangeHelper.GradeRangeItem
Utility class to associate a gradeRange vocab value with a label suitable
for UI, and a range of gradeLevels (min and max)
|
Constructor and Description |
---|
GradeRangeHelper()
Constructor for the GradeRangeHelper read from file at specified path
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(java.lang.String vocab,
int grade)
Adds a feature to the Item attribute of the GradeRangeHelper object
|
void |
addItem(java.lang.String vocab,
int startGrage,
int endGrade)
Adds a feature to the Item attribute of the GradeRangeHelper object
|
void |
addItem(java.lang.String vocab,
java.lang.String label,
java.lang.String value,
int minGrade,
int maxGrade)
Adds a feature to the Item attribute of the GradeRangeHelper object
|
int |
getEndGrade(java.lang.String gradeRangeVocab)
Gets the endGrade of the given gradeRange vocab value.
|
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
|
java.lang.String |
getGradeOptionRangeValue(java.lang.String gradeRangeValue)
Gets the gradeOptionRangeValue attribute of the GradeRangeHelper object
|
GradeRangeHelper.GradeRangeItem |
getGradeRangeItem(java.lang.String vocab)
Gets the gradeRangeItem for the provided vocab value
|
java.lang.String |
getGradeRangeOptionLabel(java.lang.String gradeRangeValue)
Gets the label (for UI purposes) of a gradeRange vocab value.
|
java.util.Collection |
getGradeRanges()
Returns unordered set of GradeRangeVocab values
|
int |
getStartGrade(java.lang.String gradeRangeVocab)
* Gets the startGrade of the given gradeRange vocab value.
|
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
|
void |
report()
NOT YET DOCUMENTED
|
void |
showList(java.util.List list,
java.lang.String name)
NOT YET DOCUMENTED
|
public GradeRangeHelper()
public java.util.Collection getGradeRanges()
public GradeRangeHelper.GradeRangeItem getGradeRangeItem(java.lang.String vocab)
vocab
- a grade range vocab valuepublic java.lang.String getGradeRangeOptionLabel(java.lang.String gradeRangeValue)
gradeRangeValue
- NOT YET DOCUMENTEDpublic java.lang.String getGradeOptionRangeValue(java.lang.String gradeRangeValue)
gradeRangeValue
- NOT YET DOCUMENTEDpublic int getStartGrade(java.lang.String gradeRangeVocab)
gradeRangeVocab
- NOT YET DOCUMENTEDpublic int getStartGrade(java.lang.String[] gradeRangeVocabs)
gradeRangeVocabs
- NOT YET DOCUMENTEDpublic int getEndGrade(java.lang.String gradeRangeVocab)
gradeRangeVocab
- NOT YET DOCUMENTEDpublic int getEndGrade(java.lang.String[] gradeRangeVocabs)
gradeRangeVocabs
- NOT YET DOCUMENTEDpublic void addItem(java.lang.String vocab, int grade)
vocab
- The feature to be added to the Item attributegrade
- The feature to be added to the Item attributepublic void addItem(java.lang.String vocab, int startGrage, int endGrade)
vocab
- The feature to be added to the Item attributestartGrage
- The feature to be added to the Item attributeendGrade
- The feature to be added to the Item attributepublic void addItem(java.lang.String vocab, java.lang.String label, java.lang.String value, int minGrade, int maxGrade)
vocab
- The feature to be added to the Item attributelabel
- The feature to be added to the Item attributevalue
- The feature to be added to the Item attributeminGrade
- The feature to be added to the Item attributemaxGrade
- The feature to be added to the Item attributepublic void report()
public void showList(java.util.List list, java.lang.String name)
list
- NOT YET DOCUMENTEDname
- NOT YET DOCUMENTED