summaryrefslogtreecommitdiff
path: root/support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Rule.kt
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-04-04 03:02:28 +0000
committerNorbert Preining <norbert@preining.info>2020-04-04 03:02:28 +0000
commit4f71d4ff0d1e7ff4607b58eb7d030bd860e44f3a (patch)
treed4e56c2a7dc233a34c572829037ac8fb346f14bc /support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Rule.kt
parent6cacb7b2abf477262c442913f467f219649afb26 (diff)
CTAN sync 202004040302
Diffstat (limited to 'support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Rule.kt')
-rw-r--r--support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Rule.kt48
1 files changed, 0 insertions, 48 deletions
diff --git a/support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Rule.kt b/support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Rule.kt
deleted file mode 100644
index 53ac2aa8b1..0000000000
--- a/support/arara/source/src/main/kotlin/org/islandoftex/arara/ruleset/Rule.kt
+++ /dev/null
@@ -1,48 +0,0 @@
-// SPDX-License-Identifier: BSD-3-Clause
-package org.islandoftex.arara.ruleset
-
-import kotlinx.serialization.Serializable
-import org.islandoftex.arara.utils.CommonUtils
-
-/**
- * Implements the rule model.
- *
- * @author Island of TeX
- * @version 5.0
- * @since 4.0
- */
-@Serializable
-class Rule {
- /**
- * The rule identifier
- */
- var identifier: String = INVALID_RULE_IDENTIFIER
- get() = CommonUtils.removeKeywordNotNull(field)
-
- /**
- * The rule name
- */
- var name: String = INVALID_RULE_NAME
- get() = CommonUtils.removeKeywordNotNull(field)
-
- /**
- * The list of authors
- */
- var authors: List<String> = listOf()
- get() = field.mapNotNull { CommonUtils.removeKeyword(it) }
-
- /**
- * The list of commands
- */
- var commands: List<RuleCommand> = listOf()
-
- /**
- * The list of arguments
- */
- var arguments: List<Argument> = listOf()
-
- companion object {
- const val INVALID_RULE_IDENTIFIER = "INVALID_RULE"
- const val INVALID_RULE_NAME = "INVALID_RULE"
- }
-}