blob: 9ceef61eff7cdb57631488ef87241746bbf7e435 (
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
|
package kr.syeyoung.dungeonsguide.roomedit.valueedit;
import kr.syeyoung.dungeonsguide.dungeon.data.OffsetPoint;
import kr.syeyoung.dungeonsguide.dungeon.data.OffsetPointSet;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ValueEditRegistry {
private static Map<String, ValueEditCreator> valueEditMap = new HashMap<String, ValueEditCreator>();
public static ValueEditCreator getValueEditMap(String className) {
return valueEditMap.get(className);
}
public static List<String> getClassesSupported() {
return new ArrayList<String>(valueEditMap.keySet());
}
static {
valueEditMap.put("null", new ValueEditNull());
valueEditMap.put(String.class.getName(), new ValueEditString.Generator());
valueEditMap.put(Boolean.class.getName(), new ValueEditBoolean.Generator());
valueEditMap.put(Integer.class.getName(), new ValueEditInteger.Generator());
valueEditMap.put(OffsetPoint.class.getName(), new ValueEditOffsetPoint.Generator());
valueEditMap.put(OffsetPointSet.class.getName(), new ValueEditOffsetPointSet.Generator());
}
}
|