Class AssignmentVariabilityProvider
java.lang.Object
de.hsh.graja.devasgmt.variability.AssignmentVariabilityProvider
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
AssignmentVariabilityProvider
(String mustachePattern) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getJavascriptSourceFromResource
(Class<? extends AssignmentVariabilityProvider> clazz, String jsResource) protected String
getJavascriptSourceFromResource
(String jsResource) final void
init
(boolean descriptionsUseJavascript, BigDecimal scoreMax) abstract TemplateSpec
initHook
(TemplateSpec tpl, BigDecimal scoreMax) To be overriden by subclasses.
-
Constructor Details
-
AssignmentVariabilityProvider
protected AssignmentVariabilityProvider() -
AssignmentVariabilityProvider
-
-
Method Details
-
init
- Throws:
Exception
-
initHook
To be overriden by subclasses.
The parameter
tpl
is prepared with a default set of artifacts, methods, and materializations replacing&xA7;(...)&xA7;
placeholders in the task xml file. A subclass may append and replace these materializations or add additional materializations. A subclass may refer to the artifacts and methods that are created here:- artifacts:
- artifact_task_xml = the task xml
- methods:
- method_mustache_default = mustache template renderer with pattern
&xA7;(...)&xA7;
- method_mustache_default = mustache template renderer with pattern
- Throws:
Exception
- artifacts:
-
getTemplateSpec
-
getJavascriptSourceFromResource
- Throws:
IOException
-
getJavascriptSourceFromResource
public static String getJavascriptSourceFromResource(Class<? extends AssignmentVariabilityProvider> clazz, String jsResource) throws IOException - Throws:
IOException
-