|
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.AbstractCATHelperPlugin org.dlese.dpc.schemedit.standards.asn.AsnCATPlugin
public abstract class AsnCATPlugin
Abstract class for CATHelperPlugins whose frameworks store ASN identifiers.
These plugins make use of a GradeRangeHelper
to map GradeRange
vocabs defined in the schema to corresponding CAT API constraints.
Constructor Summary | |
---|---|
AsnCATPlugin()
|
Method Summary | |
---|---|
protected CATServiceHelper |
getCatHelper()
Gets the catHelper attribute of the AsnCATPlugin object |
String |
getDerivedCATEndGrade()
Gets the gradeRangeOptionValue corresponding to the highest selected gradeRange in the current instance document. |
String |
getDerivedCATStartGrade()
Gets the gradeRangeOptionValue corresponding to the lowest selected gradeRange in the current instance document. |
abstract String |
getDescriptionPath()
Gets the descriptionPath for the plugin's framework |
protected String |
getGradeLevelOptionValue(int i)
Convert the provided CAT API gradeLevel to the corresponding option value |
protected GradeRangeHelper |
getGradeRangeHelper()
Gets the gradeRangeHelper attribute of the AsnCATPlugin object |
abstract List |
getGradeRangeOptions()
Gets the gradeRanges corresponding to the grades searchable in the CAT service (and which can be specified in the control box). |
abstract String |
getGradeRangePath()
Gets the gradeRangePath attribute of the SuggestionServiceHelper object |
abstract String |
getKeywordPath()
Gets the keywordPath for the plugin's framework |
abstract List |
getOptionalCatUIFields()
Specifies the fields besides url, description and gradeRanges that a particular framework wants to control via the CAT UI. |
int |
getSelectedCATEndGrade(String[] gradeConstraints)
Returns the lesser of the selected gradeLevel constraints selected in the CAT UI (as an integer). |
int |
getSelectedCATStartGrade(String[] gradeConstraints)
Returns the greater of the selected gradeLevel constraints selected in the CAT UI (as an integer). |
abstract String |
getSubjectPath()
Gets the subjectPath for the plugin's framework |
protected abstract GradeRangeHelper |
gradeRangeHelperInit()
Initialize a gradeRangeHelper instance for the gradeRange Vocab values of a specific framework. |
static void |
prtlnErr(String s)
NOT YET DOCUMENTED |
Methods inherited from class org.dlese.dpc.schemedit.standards.AbstractCATHelperPlugin |
---|
getRecordDescription, getRecordGradeRanges, getRecordKeywords, getRecordSubjects, getRecordSubjects, init, normalizeSubjectValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsnCATPlugin()
Method Detail |
---|
protected CATServiceHelper getCatHelper()
getCatHelper
in class AbstractCATHelperPlugin
protected GradeRangeHelper getGradeRangeHelper()
protected abstract GradeRangeHelper gradeRangeHelperInit()
GradeRangeHelper
public abstract List getOptionalCatUIFields()
For example, some frameworks want to provide controls for the "subject" field. In this case the list returned would contain "subjects"
getOptionalCatUIFields
in interface CATHelperPlugin
getOptionalCatUIFields
in class AbstractCATHelperPlugin
protected String getGradeLevelOptionValue(int i)
i
- a string representation of the provided int that can be used as a
value in the CAT UI
public String getDerivedCATStartGrade()
NOTE: We have to convert from the lowest gradeRangeVocab to it's gradeRangeOption value
getDerivedCATStartGrade
in interface CATHelperPlugin
getDerivedCATStartGrade
in class AbstractCATHelperPlugin
public String getDerivedCATEndGrade()
NOTE: We return an gradeRangeOptionValue, so we have to convert from the lowest gradeRangeVocab to it's gradeRangeOption value
getDerivedCATEndGrade
in interface CATHelperPlugin
getDerivedCATEndGrade
in class AbstractCATHelperPlugin
public abstract String getGradeRangePath()
getGradeRangePath
in class AbstractCATHelperPlugin
public abstract String getKeywordPath()
getKeywordPath
in class AbstractCATHelperPlugin
public abstract String getDescriptionPath()
getDescriptionPath
in class AbstractCATHelperPlugin
public abstract String getSubjectPath()
getSubjectPath
in class AbstractCATHelperPlugin
public int getSelectedCATStartGrade(String[] gradeConstraints)
NOTE: Assumes CAT UI specifies two constraints, and that both can be parsed as integers.
getSelectedCATStartGrade
in interface CATHelperPlugin
getSelectedCATStartGrade
in class AbstractCATHelperPlugin
gradeConstraints
- NOT YET DOCUMENTED
public int getSelectedCATEndGrade(String[] gradeConstraints)
NOTE: Assumes CAT UI specifies two constraints, and that both can be parsed as integers.
getSelectedCATEndGrade
in interface CATHelperPlugin
getSelectedCATEndGrade
in class AbstractCATHelperPlugin
gradeConstraints
- NOT YET DOCUMENTED
public abstract List getGradeRangeOptions()
NOTE: the "values" should correspond to what the service expects, while the "labels" are human-meaningful representations of the values. E.g., one member of the gradeRangeOption list might be (value: "1", label: "1st Grade")
getGradeRangeOptions
in interface CATHelperPlugin
getGradeRangeOptions
in class AbstractCATHelperPlugin
public static void prtlnErr(String s)
s
- NOT YET DOCUMENTED
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |