summaryrefslogtreecommitdiff
path: root/support/texplate/source/main/kotlin/org/islandoftex/texplate/util/HandlerUtils.kt
blob: 9f6c65d8e656a64b904c555b84a94656adafefed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// SPDX-License-Identifier: BSD-3-Clause
package org.islandoftex.texplate.util

import org.islandoftex.texplate.model.handlers.BooleanHandler
import org.islandoftex.texplate.model.handlers.CSVListHandler
import org.islandoftex.texplate.model.handlers.FileReaderHandler
import org.islandoftex.texplate.model.handlers.Handler

/**
 * Provides the map of handlers.
 *
 * @version 1.0
 * @since 1.0
 */
object HandlerUtils {
    /**
     * Gets the map of handlers.
     *
     * @return Map of handlers.
     */
    @JvmStatic
    val handlers: Map<String, Handler> = mapOf(
            "to-csv-list" to CSVListHandler(),
            "to-boolean" to BooleanHandler(),
            "to-string-list-from-file" to FileReaderHandler()
    )
}