Class GradeRangeHelper
java.lang.Object
org.dlese.dpc.schemedit.standards.asn.GradeRangeHelper
- Direct Known Subclasses:
NsdlGradeRangeHelper
Helper to translate between controlled vocabs for cataloging grade levels in
a particular framework and the numerical grade ranges implied by the vocabs.
- Author:
- Jonathan Ostwald
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassUtility class to associate a gradeRange vocab value with a label suitable for UI, and a range of gradeLevels (min and max) -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the GradeRangeHelper read from file at specified path -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a feature to the Item attribute of the GradeRangeHelper objectvoidAdds a feature to the Item attribute of the GradeRangeHelper objectvoidAdds a feature to the Item attribute of the GradeRangeHelper objectintgetEndGrade(String gradeRangeVocab) Gets the endGrade of the given gradeRange vocab value.intgetEndGrade(String[] gradeRangeVocabs) Return an integer representing the highest gradeLevel contained in the provided gradeRangeVocab values, or -1 if none are providedgetGradeOptionRangeValue(String gradeRangeValue) Gets the gradeOptionRangeValue attribute of the GradeRangeHelper objectgetGradeRangeItem(String vocab) Gets the gradeRangeItem for the provided vocab valuegetGradeRangeOptionLabel(String gradeRangeValue) Gets the label (for UI purposes) of a gradeRange vocab value.Returns unordered set of GradeRangeVocab valuesintgetStartGrade(String gradeRangeVocab) * Gets the startGrade of the given gradeRange vocab value.intgetStartGrade(String[] gradeRangeVocabs) Return an integer representing the lowest gradeLevel contained in the provided gradeRangeVocab values, or -1 if none are providedvoidreport()NOT YET DOCUMENTEDvoidNOT YET DOCUMENTED
-
Constructor Details
-
GradeRangeHelper
public GradeRangeHelper()Constructor for the GradeRangeHelper read from file at specified path
-
-
Method Details
-
getGradeRanges
Returns unordered set of GradeRangeVocab values- Returns:
- The gradeRanges value
-
getGradeRangeItem
Gets the gradeRangeItem for the provided vocab value- Parameters:
vocab- a grade range vocab value- Returns:
- The gradeRangeItem value or null
-
getGradeRangeOptionLabel
Gets the label (for UI purposes) of a gradeRange vocab value. E.g., for the value of "DLESE:Primary elementary", the label is "Primary elementary".- Parameters:
gradeRangeValue- NOT YET DOCUMENTED- Returns:
- The gradeRangeLabel value
-
getGradeOptionRangeValue
Gets the gradeOptionRangeValue attribute of the GradeRangeHelper object- Parameters:
gradeRangeValue- NOT YET DOCUMENTED- Returns:
- The gradeOptionRangeValue value
-
getStartGrade
* Gets the startGrade of the given gradeRange vocab value. E.g., "DLESE:Primary elementary" would return 0.- Parameters:
gradeRangeVocab- NOT YET DOCUMENTED- Returns:
- The startGrade value
-
getStartGrade
Return an integer representing the lowest gradeLevel contained in the provided gradeRangeVocab values, or -1 if none are provided- Parameters:
gradeRangeVocabs- NOT YET DOCUMENTED- Returns:
- The startGrade value
-
getEndGrade
Gets the endGrade of the given gradeRange vocab value. E.g., "DLESE:Primary elementary" would return 2.- Parameters:
gradeRangeVocab- NOT YET DOCUMENTED- Returns:
- The endGrade value
-
getEndGrade
Return an integer representing the highest gradeLevel contained in the provided gradeRangeVocab values, or -1 if none are provided- Parameters:
gradeRangeVocabs- NOT YET DOCUMENTED- Returns:
- The startGrade value
-
addItem
Adds a feature to the Item attribute of the GradeRangeHelper object- Parameters:
vocab- The feature to be added to the Item attributegrade- The feature to be added to the Item attribute
-
addItem
Adds a feature to the Item attribute of the GradeRangeHelper object- Parameters:
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 attribute
-
addItem
Adds a feature to the Item attribute of the GradeRangeHelper object- Parameters:
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 attribute
-
report
public void report()NOT YET DOCUMENTED -
showList
NOT YET DOCUMENTED- Parameters:
list- NOT YET DOCUMENTEDname- NOT YET DOCUMENTED
-