diff options
author | Norbert Preining <norbert@preining.info> | 2020-03-05 03:00:59 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-03-05 03:00:59 +0000 |
commit | 898048513951b471a492afa23e46112d14bcb236 (patch) | |
tree | 8596afc705f55d2d07b324a756f7283ac0e2d21b /support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Argument.kt | |
parent | 19d25b8009801aa98ea2f46b45c37c257f990491 (diff) |
CTAN sync 202003050300
Diffstat (limited to 'support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Argument.kt')
-rw-r--r-- | support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Argument.kt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Argument.kt b/support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Argument.kt new file mode 100644 index 0000000000..dfd2b99403 --- /dev/null +++ b/support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Argument.kt @@ -0,0 +1,40 @@ +// SPDX-License-Identifier: BSD-3-Clause +package org.islandoftex.arara.ruleset + +import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable +import org.islandoftex.arara.utils.CommonUtils + +/** + * The rule argument model. + * + * @author Island of TeX + * @version 5.0 + * @since 4.0 + */ +@Serializable +class Argument { + /** + * The argument identifier + */ + var identifier: String? = null + get() = CommonUtils.removeKeyword(field) + + /** + * Boolean indicating if the current argument is required + */ + @SerialName("required") + var isRequired: Boolean = false + + /** + * Flag to hold the argument value manipulation + */ + var flag: String? = null + get() = CommonUtils.removeKeyword(field) + + /** + * The argument fallback if it is not defined in the directive + */ + var default: String? = null + get() = CommonUtils.removeKeyword(field) +} |