|
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
public abstract class AbstractCATHelperPlugin
Abstract class for framework-specific plugins to the CATServiceHelper
Constructor Summary | |
---|---|
AbstractCATHelperPlugin()
|
Method Summary | |
---|---|
protected CATServiceHelper |
getCatHelper()
Gets the catHelper attribute of the AbstractCATHelperPlugin object |
abstract String |
getDerivedCATEndGrade()
Gets the gradeRangeOptionValue corresponding to the highest selected gradeRange in the current instance document. |
abstract String |
getDerivedCATStartGrade()
Gets the startGradeContraintOptionValue corresponsing to the lowest gradeRange selected in the current record. |
abstract String |
getDescriptionPath()
Gets the descriptionPath attribute of the AbstractCATHelperPlugin object |
abstract List |
getGradeRangeOptions()
Gets the gradeRangeOptions attribute of the AbstractCATHelperPlugin object |
abstract String |
getGradeRangePath()
Gets the gradeRangePath attribute of the SuggestionServiceHelper object |
abstract String |
getKeywordPath()
Gets the keywordPath attribute of the SuggestionServiceHelper object |
List |
getOptionalCatUIFields()
Gets the fields besides url, description and graderanges that a particular framework wants to control via the CAT UI. |
String |
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. |
String[] |
getRecordGradeRanges()
Returns the gradeRange vocab values currently selected in the record |
String[] |
getRecordKeywords()
Gets the keyword values currently defined in the record. |
String[] |
getRecordSubjects()
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 int |
getSelectedCATEndGrade(String[] gradeConstraints)
Compute a end Grade value based on currently selected CAT grade Level controls |
abstract int |
getSelectedCATStartGrade(String[] gradeConstraints)
Compute a startGrade value based on currently selected CAT grade Level controls |
abstract String |
getSubjectPath()
Gets the subjectPath attribute of the AbstractCATHelperPlugin object |
void |
init(CATServiceHelper helper)
NOT YET DOCUMENTED |
protected String |
normalizeSubjectValue(String value)
Hook to preprocess subject values before submitting them to the CAT API |
static void |
prtlnErr(String s)
NOT YET DOCUMENTED |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCATHelperPlugin()
Method Detail |
---|
protected CATServiceHelper getCatHelper()
public void init(CATServiceHelper helper)
init
in interface CATHelperPlugin
helper
- NOT YET DOCUMENTEDpublic List getOptionalCatUIFields()
getOptionalCatUIFields
in interface CATHelperPlugin
public String[] getRecordSubjects(List subjectPaths)
subjectPaths
- a list of xpaths containing subject values
protected String normalizeSubjectValue(String value)
value
- NOT YET DOCUMENTED
public String[] getRecordSubjects()
getRecordSubjects
in interface CATHelperPlugin
public String getRecordDescription()
getRecordDescription
in interface CATHelperPlugin
public String[] getRecordKeywords()
getRecordKeywords
in interface CATHelperPlugin
public String[] getRecordGradeRanges()
getRecordGradeRanges
in interface CATHelperPlugin
public abstract String getDerivedCATStartGrade()
getDerivedCATStartGrade
in interface CATHelperPlugin
public abstract String getDerivedCATEndGrade()
NOTE: this requires converting from possible gradeRange metadata values to the values supplied for gradeRangeOptions.
getDerivedCATEndGrade
in interface CATHelperPlugin
public abstract String getGradeRangePath()
public abstract String getKeywordPath()
public abstract String getDescriptionPath()
public abstract String getSubjectPath()
public abstract int getSelectedCATStartGrade(String[] gradeConstraints)
getSelectedCATStartGrade
in interface CATHelperPlugin
public abstract int getSelectedCATEndGrade(String[] gradeConstraints)
getSelectedCATEndGrade
in interface CATHelperPlugin
public abstract List getGradeRangeOptions()
getGradeRangeOptions
in interface CATHelperPlugin
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 |