blob: 7ab01f73281ff1f653679e02e62256f5c82834b3 (
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
28
29
30
31
|
// SPDX-License-Identifier: BSD-3-Clause
package org.islandoftex.texplate.util;
import java.util.HashMap;
import java.util.Map;
import org.islandoftex.texplate.model.handlers.BooleanHandler;
import org.islandoftex.texplate.model.handlers.CSVListHandler;
import org.islandoftex.texplate.model.handlers.Handler;
/**
* Provides the map of handlers.
*
* @version 1.0
* @since 1.0
*/
public class HandlerUtils {
/**
* Gets the map of handlers.
*
* @return Map of handlers.
*/
public static Map<String, Handler> getHandlers() {
Map<String, Handler> handlers = new HashMap<>();
handlers.put("to-csv-list", new CSVListHandler());
handlers.put("to-boolean", new BooleanHandler());
return handlers;
}
}
|