Class DescriptionsMendHelper

java.lang.Object
de.hsh.graja.transform.DescriptionsMendHelper

public class DescriptionsMendHelper extends Object
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).
  • Constructor Details

    • DescriptionsMendHelper

      public DescriptionsMendHelper()
  • Method Details

    • createEmptyVariable

      public static String createEmptyVariable(DescriptionsMendHelper.Variable variable)
    • 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

      public static String fillVariablePassagesInDescription(String descriptionIn, proforma.xml21.GradingHintsType gh, proforma.xml21.TestsType tests, boolean descriptionsUseJavascript)
    • 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)