Class AbstractCATHelperPlugin
java.lang.Object
org.dlese.dpc.schemedit.standards.AbstractCATHelperPlugin
- All Implemented Interfaces:
CATHelperPlugin
- Direct Known Subclasses:
AdnFrameworkPlugin,AsnCATPlugin
Abstract class for framework-specific plugins to the CATServiceHelper
- Author:
- ostwald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CATServiceHelperGets the catHelper attribute of the AbstractCATHelperPlugin objectabstract StringGets the gradeRangeOptionValue corresponding to the highest selected gradeRange in the current instance document.abstract StringGets the startGradeContraintOptionValue corresponsing to the lowest gradeRange selected in the current record.abstract StringGets the descriptionPath attribute of the AbstractCATHelperPlugin objectabstract ListGets the gradeRangeOptions attribute of the AbstractCATHelperPlugin objectabstract StringGets the gradeRangePath attribute of the SuggestionServiceHelper objectabstract StringGets the keywordPath attribute of the SuggestionServiceHelper objectGets the fields besides url, description and graderanges that a particular framework wants to control via the CAT UI.Gets the value of the description field of the current metadata record, concatenating multiple description field values in the case where the description field is repeating.String[]Returns the gradeRange vocab values currently selected in the recordString[]Gets the keyword values currently defined in the record.String[]Gets the recordSubjects from the current instance doc using the subjectPath defined in the concrete plugin instance.String[]getRecordSubjects(List subjectPaths) Gets the recordSubjects from the current instance doc using the supplied subjectPaths.abstract intgetSelectedCATEndGrade(String[] gradeConstraints) Compute a end Grade value based on currently selected CAT grade Level controlsabstract intgetSelectedCATStartGrade(String[] gradeConstraints) Compute a startGrade value based on currently selected CAT grade Level controlsabstract StringGets the subjectPath attribute of the AbstractCATHelperPlugin objectvoidinit(CATServiceHelper helper) NOT YET DOCUMENTEDprotected StringnormalizeSubjectValue(String value) Hook to preprocess subject values before submitting them to the CAT APIstatic voidNOT YET DOCUMENTED
-
Constructor Details
-
AbstractCATHelperPlugin
public AbstractCATHelperPlugin()
-
-
Method Details
-
getCatHelper
Gets the catHelper attribute of the AbstractCATHelperPlugin object- Returns:
- The catHelper value
-
init
NOT YET DOCUMENTED- Specified by:
initin interfaceCATHelperPlugin- Parameters:
helper- NOT YET DOCUMENTED
-
getOptionalCatUIFields
Gets the fields besides url, description and graderanges that a particular framework wants to control via the CAT UI.- Specified by:
getOptionalCatUIFieldsin interfaceCATHelperPlugin- Returns:
- The optionalCatUIFields value
-
getRecordSubjects
Gets the recordSubjects from the current instance doc using the supplied subjectPaths.- Parameters:
subjectPaths- a list of xpaths containing subject values- Returns:
- The recordSubjects value
-
normalizeSubjectValue
Hook to preprocess subject values before submitting them to the CAT API- Parameters:
value- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
-
getRecordSubjects
Gets the recordSubjects from the current instance doc using the subjectPath defined in the concrete plugin instance.- Specified by:
getRecordSubjectsin interfaceCATHelperPlugin- Returns:
- The recordSubjects value
-
getRecordDescription
Gets the value of the description field of the current metadata record, concatenating multiple description field values in the case where the description field is repeating.- Specified by:
getRecordDescriptionin interfaceCATHelperPlugin- Returns:
- The description
-
getRecordKeywords
Gets the keyword values currently defined in the record.- Specified by:
getRecordKeywordsin interfaceCATHelperPlugin- Returns:
- The recordKeywords value
-
getRecordGradeRanges
Returns the gradeRange vocab values currently selected in the record- Specified by:
getRecordGradeRangesin interfaceCATHelperPlugin- Returns:
- The recordGradeRanges value
-
getDerivedCATStartGrade
Gets the startGradeContraintOptionValue corresponsing to the lowest gradeRange selected in the current record.- Specified by:
getDerivedCATStartGradein interfaceCATHelperPlugin- Returns:
- The startGradeOptionValue value
-
getDerivedCATEndGrade
Gets the gradeRangeOptionValue corresponding to the highest selected gradeRange in the current instance document.NOTE: this requires converting from possible gradeRange metadata values to the values supplied for gradeRangeOptions.
- Specified by:
getDerivedCATEndGradein interfaceCATHelperPlugin- Returns:
- The endGrade value
-
getGradeRangePath
Gets the gradeRangePath attribute of the SuggestionServiceHelper object- Returns:
- The gradeRangePath value
-
getKeywordPath
Gets the keywordPath attribute of the SuggestionServiceHelper object- Returns:
- The keywordPath value
-
getDescriptionPath
Gets the descriptionPath attribute of the AbstractCATHelperPlugin object- Returns:
- The descriptionPath value
-
getSubjectPath
Gets the subjectPath attribute of the AbstractCATHelperPlugin object- Returns:
- The subjectPath value
-
getSelectedCATStartGrade
Compute a startGrade value based on currently selected CAT grade Level controls- Specified by:
getSelectedCATStartGradein interfaceCATHelperPlugin- Returns:
- The startGrade value
-
getSelectedCATEndGrade
Compute a end Grade value based on currently selected CAT grade Level controls- Specified by:
getSelectedCATEndGradein interfaceCATHelperPlugin- Returns:
- The endGrade value
-
getGradeRangeOptions
Gets the gradeRangeOptions attribute of the AbstractCATHelperPlugin object- Specified by:
getGradeRangeOptionsin interfaceCATHelperPlugin- Returns:
- The gradeRangeOptions value
-
prtlnErr
NOT YET DOCUMENTED- Parameters:
s- NOT YET DOCUMENTED
-