|
| 1 | +package org.broadinstitute.barclay.help; |
| 2 | + |
| 3 | +/** |
| 4 | + * String constants for properties used in the various freemarker templates. |
| 5 | + */ |
| 6 | +public class TemplateProperties { |
| 7 | + |
| 8 | + // Properties used by the base doc gen system |
| 9 | + public final static String ARGUMENTS_POSITIONAL = "positional"; |
| 10 | + |
| 11 | + // Single argument map properties |
| 12 | + public final static String ARGUMENT_NAME = "name"; |
| 13 | + public final static String ARGUMENT_TYPE = "type"; |
| 14 | + public final static String ARGUMENT_SUMMARY = "summary"; |
| 15 | + public final static String ARGUMENT_REQUIRED = "required"; |
| 16 | + public final static String ARGUMENT_DEFAULT_VALUE = "defaultValue"; |
| 17 | + |
| 18 | + // Properties specific to WDL generation |
| 19 | + |
| 20 | + // workflow/task argument names need to be wdl-conforming, but we need to preserve the actual arg name |
| 21 | + // for use in the command block |
| 22 | + public final static String WDL_ARGUMENT_ACTUAL_NAME = "actualArgName"; |
| 23 | + |
| 24 | + // The WDL input type (as opposed to the acutal/output type; these differ when an input is the name of |
| 25 | + // an output file. The input type is (String) but the output type is File. |
| 26 | + public final static String WDL_ARGUMENT_INPUT_TYPE = "wdlinputtype"; |
| 27 | + |
| 28 | + /** |
| 29 | + * Name of the top level freemarker map entry for runtime properties. |
| 30 | + * |
| 31 | + * Note that the property names used in this map will appear as workflow and task argument names in the |
| 32 | + * generated WDL, and should therefore not collide with any WDL reserved words. |
| 33 | + */ |
| 34 | + public static final String WDL_WORKFLOW_PROPERTIES = "workflowProperties"; |
| 35 | + /** |
| 36 | + * runtime memory property (stored in "workflowProperties", used to initialize arg value in JSON) |
| 37 | + */ |
| 38 | + public static final String WDL_WORKFLOW_MEMORY = "memoryRequirements"; |
| 39 | + /** |
| 40 | + * runtime disks property (stored in "workflowProperties", used to initialize arg value in JSON) |
| 41 | + */ |
| 42 | + public static final String WDL_WORKFLOW_DISKS = "diskRequirements"; |
| 43 | + /** |
| 44 | + * cpu property |
| 45 | + */ |
| 46 | + public static final String WDL_WORKFLOW_CPU = "cpuRequirements"; |
| 47 | + /** |
| 48 | + * bootDiskSizeGb property |
| 49 | + */ |
| 50 | + public static final String WDL_WORKFLOW_BOOT_DISK_SIZE_GB = "bootdisksizegbRequirements"; |
| 51 | + /** |
| 52 | + * preemptible property |
| 53 | + */ |
| 54 | + public static final String WDL_WORKFLOW_PREEMPTIBLE = "preemptibleRequirements"; |
| 55 | + |
| 56 | + /** |
| 57 | + * name of the top level freemarker map entry for runtime outputs |
| 58 | + */ |
| 59 | + public static final String WDL_RUNTIME_OUTPUTS = "runtimeOutputs"; |
| 60 | + /** |
| 61 | + * name of the top level freemarker map entry for required runtime outputs |
| 62 | + */ |
| 63 | + public static final String WDL_REQUIRED_OUTPUTS = "requiredOutputs"; |
| 64 | + /** |
| 65 | + * name of the top level freemarker map entry for required companion resources |
| 66 | + */ |
| 67 | + public static final String WDL_REQUIRED_COMPANIONS = "requiredCompanions"; |
| 68 | + /** |
| 69 | + * name of the top level freemarker map entry for optional companion resources |
| 70 | + */ |
| 71 | + public static final String WDL_OPTIONAL_COMPANIONS = "optionalCompanions"; |
| 72 | + |
| 73 | + /** |
| 74 | + * localization optional inputs |
| 75 | + */ |
| 76 | + public static final String WDL_LOCALIZATION_OPTIONAL = "localizationOptional"; |
| 77 | + |
| 78 | +} |
0 commit comments