Package de.hsh.graja.transform
Class DescriptionsMendHelper
java.lang.Object
de.hsh.graja.transform.DescriptionsMendHelper
This class helps when including generated passages (as the table of model solutions,
the grading scheme, the variability table) into description and internal description.
The BuildProforma task includes place holders that can be replaced with actual data.
The generation of actual data cannot be performed by BuildProforma for variable
assignments, since the overall structure of the generated data (e. g. for the
grading scheme) is subject to change for different assignment variants.
Hence, BuildProforma includes placeholders that will be filled by the instantiation
service during materialization of the task. The replacement of placeholders is a regular
materialization method (MatMethodGrajaInsertVariablePassagesIntoDescriptionsProvider).
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendVariableContent(DescriptionsMendHelper.Variable variable, String content, StringBuilder doc) static Stringstatic StringfillVariablePassagesInDescription(String descriptionIn, proforma.xml21.GradingHintsType gh, proforma.xml21.TestsType tests, boolean descriptionsUseJavascript) static voidfillVariablePassagesInDescription(proforma.xml21.TaskType task, Path pathToUnzippedContents, proforma.varproforma.CV cv, boolean descriptionsUseJavascript) static StringfillVariablePassagesInInternalDescription(String descriptionIn, proforma.xml21.GradingHintsType gh, proforma.xml21.TestsType tests, proforma.xml21.TaskFilesType files, proforma.xml21.ModelSolutionsType modelSolutions, Path pathToUnzippedContents, proforma.varproforma.CV cv, boolean descriptionsUseJavascript) static StringreplaceVariableContent(DescriptionsMendHelper.Variable variable, String newContent, String doc)
-
Constructor Details
-
DescriptionsMendHelper
public DescriptionsMendHelper()
-
-
Method Details
-
createEmptyVariable
-
appendVariableContent
public static void appendVariableContent(DescriptionsMendHelper.Variable variable, String content, StringBuilder doc) -
replaceVariableContent
public static String replaceVariableContent(DescriptionsMendHelper.Variable variable, String newContent, String doc) -
fillVariablePassagesInDescription
public static void fillVariablePassagesInDescription(proforma.xml21.TaskType task, Path pathToUnzippedContents, proforma.varproforma.CV cv, boolean descriptionsUseJavascript) -
fillVariablePassagesInDescription
-
fillVariablePassagesInInternalDescription
public static String fillVariablePassagesInInternalDescription(String descriptionIn, proforma.xml21.GradingHintsType gh, proforma.xml21.TestsType tests, proforma.xml21.TaskFilesType files, proforma.xml21.ModelSolutionsType modelSolutions, Path pathToUnzippedContents, proforma.varproforma.CV cv, boolean descriptionsUseJavascript)
-