|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.schemedit.standards.asn.GradeRangeHelper
public class GradeRangeHelper
Helper to translate between controlled vocabs for cataloging grade levels in a particular framework and the numerical grade ranges implied by the vocabs.
Nested Class Summary | |
---|---|
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 Summary | |
---|---|
GradeRangeHelper()
Constructor for the GradeRangeHelper read from file at specified path |
Method Summary | |
---|---|
void |
addItem(String vocab,
int grade)
Adds a feature to the Item attribute of the GradeRangeHelper object |
void |
addItem(String vocab,
int startGrage,
int endGrade)
Adds a feature to the Item attribute of the GradeRangeHelper object |
void |
addItem(String vocab,
String label,
String value,
int minGrade,
int maxGrade)
Adds a feature to the Item attribute of the GradeRangeHelper object |
int |
getEndGrade(String gradeRangeVocab)
Gets the endGrade of the given gradeRange vocab value. |
int |
getEndGrade(String[] gradeRangeVocabs)
Return an integer representing the highest gradeLevel contained in the provided gradeRangeVocab values, or -1 if none are provided |
String |
getGradeOptionRangeValue(String gradeRangeValue)
Gets the gradeOptionRangeValue attribute of the GradeRangeHelper object |
GradeRangeHelper.GradeRangeItem |
getGradeRangeItem(String vocab)
Gets the gradeRangeItem for the provided vocab value |
String |
getGradeRangeOptionLabel(String gradeRangeValue)
Gets the label (for UI purposes) of a gradeRange vocab value. |
Collection |
getGradeRanges()
Returns unordered set of GradeRangeVocab values |
int |
getStartGrade(String gradeRangeVocab)
* Gets the startGrade of the given gradeRange vocab value. |
int |
getStartGrade(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(List list,
String name)
NOT YET DOCUMENTED |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GradeRangeHelper()
Method Detail |
---|
public Collection getGradeRanges()
public GradeRangeHelper.GradeRangeItem getGradeRangeItem(String vocab)
vocab
- a grade range vocab value
public String getGradeRangeOptionLabel(String gradeRangeValue)
gradeRangeValue
- NOT YET DOCUMENTED
public String getGradeOptionRangeValue(String gradeRangeValue)
gradeRangeValue
- NOT YET DOCUMENTED
public int getStartGrade(String gradeRangeVocab)
gradeRangeVocab
- NOT YET DOCUMENTED
public int getStartGrade(String[] gradeRangeVocabs)
gradeRangeVocabs
- NOT YET DOCUMENTED
public int getEndGrade(String gradeRangeVocab)
gradeRangeVocab
- NOT YET DOCUMENTED
public int getEndGrade(String[] gradeRangeVocabs)
gradeRangeVocabs
- NOT YET DOCUMENTED
public void addItem(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(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(String vocab, String label, 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(List list, String name)
list
- NOT YET DOCUMENTEDname
- NOT YET DOCUMENTED
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |