Class AdnFrameworkPlugin
java.lang.Object
org.dlese.dpc.schemedit.standards.AbstractCATHelperPlugin
org.dlese.dpc.schemedit.standards.adn.AdnFrameworkPlugin
- All Implemented Interfaces:
CATHelperPlugin
CATHelperPlugin for the ADN framework
- Author:
- ostwald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DleseSuggestionServiceHelperGets the catHelper attribute of the AdnFrameworkPlugin objectGets the gradeRangeOptionValue corresponding to the highest selected gradeRange in the current instance document.Gets the gradeRangeOptionValue corresponding to the lowest selected gradeRange vocab in the current instance document.Gets the descriptionPath attribute of the AdnFrameworkPlugin objectGets the gradeRanges options corresponding to the grades searchable in the ADN framework service.Gets the gradeRangePath attribute of the DleseSuggestionServiceHelper objectGets the keywordPath attribute of the DleseSuggestionServiceHelper objectGets the optionalCatUIFields attribute of the AdnFrameworkPlugin objectString[]Gets the recordGradeRange vocab values from the instance document (i.e., the selected gradeRange vocab values)intgetSelectedCATEndGrade(String[] gradeConstraints) Compute a CAT API value for the endGrade (highest grade level) of the selected grade ranges.intgetSelectedCATStartGrade(String[] gradeConstraints) Compute a CAT API value for the startGrade (lowest grade level) of the selected grade ranges.Gets the subjectPath attribute of the AdnFrameworkPlugin objectMethods inherited from class org.dlese.dpc.schemedit.standards.AbstractCATHelperPlugin
getRecordDescription, getRecordKeywords, getRecordSubjects, getRecordSubjects, init, normalizeSubjectValue, prtlnErr
-
Constructor Details
-
AdnFrameworkPlugin
public AdnFrameworkPlugin()
-
-
Method Details
-
getCatHelper
Gets the catHelper attribute of the AdnFrameworkPlugin object- Overrides:
getCatHelperin classAbstractCATHelperPlugin- Returns:
- The catHelper value
-
getOptionalCatUIFields
Gets the optionalCatUIFields attribute of the AdnFrameworkPlugin object- Specified by:
getOptionalCatUIFieldsin interfaceCATHelperPlugin- Overrides:
getOptionalCatUIFieldsin classAbstractCATHelperPlugin- Returns:
- The optionalCatUIFields value
-
getGradeRangePath
Gets the gradeRangePath attribute of the DleseSuggestionServiceHelper object- Specified by:
getGradeRangePathin classAbstractCATHelperPlugin- Returns:
- The gradeRangePath value
-
getDescriptionPath
Gets the descriptionPath attribute of the AdnFrameworkPlugin object- Specified by:
getDescriptionPathin classAbstractCATHelperPlugin- Returns:
- The descriptionPath value
-
getKeywordPath
Gets the keywordPath attribute of the DleseSuggestionServiceHelper object- Specified by:
getKeywordPathin classAbstractCATHelperPlugin- Returns:
- The keywordPath value
-
getRecordGradeRanges
Gets the recordGradeRange vocab values from the instance document (i.e., the selected gradeRange vocab values)- Specified by:
getRecordGradeRangesin interfaceCATHelperPlugin- Overrides:
getRecordGradeRangesin classAbstractCATHelperPlugin- Returns:
- The recordGradeRanges value
-
getSubjectPath
Gets the subjectPath attribute of the AdnFrameworkPlugin object- Specified by:
getSubjectPathin classAbstractCATHelperPlugin- Returns:
- The subjectPath value
-
getSelectedCATStartGrade
Compute a CAT API value for the startGrade (lowest grade level) of the selected grade ranges.The gradeConstraints for the adn framework are strings, such as "DLESE:Primary elementary", which represent a gradeRange (e.g., 0-2). This method determines the lowest bound of the supplied gradeConstraints.
- Specified by:
getSelectedCATStartGradein interfaceCATHelperPlugin- Specified by:
getSelectedCATStartGradein classAbstractCATHelperPlugin- Parameters:
gradeConstraints- NOT YET DOCUMENTED- Returns:
- The startGrade value
-
getSelectedCATEndGrade
Compute a CAT API value for the endGrade (highest grade level) of the selected grade ranges.The gradeConstraints for the adn framework are strings, such as "DLESE:Primary elementary", which represent a gradeRange (e.g., 0-2). This method determines the highest bound of the supplied gradeConstraints.
- Specified by:
getSelectedCATEndGradein interfaceCATHelperPlugin- Specified by:
getSelectedCATEndGradein classAbstractCATHelperPlugin- Parameters:
gradeConstraints- NOT YET DOCUMENTED- Returns:
- The endGrade value
-
getGradeRangeOptions
Gets the gradeRanges options corresponding to the grades searchable in the ADN framework service.The returned items contain two fields
- value - corresponding to a grade-level vocab defined for the ADN framework (e.g., "DLESE:Primary elementary")
- label - that indicates grade-levels in a human-readable form (e.g., "Primary elementary (0-2)")
- Specified by:
getGradeRangeOptionsin interfaceCATHelperPlugin- Specified by:
getGradeRangeOptionsin classAbstractCATHelperPlugin- Returns:
- A list of LabelValueBeans used to populate the GradeRange widget in the CAT UI
-
getDerivedCATStartGrade
Gets the gradeRangeOptionValue corresponding to the lowest selected gradeRange vocab in the current instance document.NOTE: in the case of ADN, gradeRange vocab values are same as gradeRangeOption values, so there is no need to convert, as there is for frameworks in which this isn't the case!
- Specified by:
getDerivedCATStartGradein interfaceCATHelperPlugin- Specified by:
getDerivedCATStartGradein classAbstractCATHelperPlugin- Returns:
- The startGradeOptionValue value
-
getDerivedCATEndGrade
Gets the gradeRangeOptionValue corresponding to the highest selected gradeRange in the current instance document.- Specified by:
getDerivedCATEndGradein interfaceCATHelperPlugin- Specified by:
getDerivedCATEndGradein classAbstractCATHelperPlugin- Returns:
- The endGrade value
-