1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package de.aikiit.spamprotector.converter;
19
20 import lombok.Getter;
21
22
23
24
25
26
27 @Getter
28 public enum CharacterConverter {
29
30
31 SPACE(" ", " "),
32
33 EXCLAMATION_MARK("!", "!"),
34
35 QUOTE("\"", """),
36
37 HASH("#", "#"),
38
39 DOLLAR("$", "$"),
40
41 PERCENT("%", "%"),
42
43 AMPERSAND("&", "&"),
44
45 SINGLE_QUOTE("\'", "'"),
46
47 LEFT_BRACKET("(", "("),
48
49 RIGHT_BRACKET(")", ")"),
50
51 ASTERISK("*", "*"),
52
53 PLUS("+", "+"),
54
55 COMMA(",", ","),
56
57 MINUS("-", "-"),
58
59 DOT(".", "."),
60
61 SLASH("/", "/"),
62
63 ZERO("0", "0"),
64
65 ONE("1", "1"),
66
67 TWO("2", "2"),
68
69 THREE("3", "3"),
70
71 FOUR("4", "4"),
72
73 FIVE("5", "5"),
74
75 SIX("6", "6"),
76
77 SEVEN("7", "7"),
78
79 EIGHT("8", "8"),
80
81 NINE("9", "9"),
82
83 COLON(":", ":"),
84
85 SEMICOLON(";", ";"),
86
87 LT("<", "<"),
88
89 EQUAL("=", "="),
90
91 GT(">", ">"),
92
93 QUESTION_MARK("?", "?"),
94
95 AT("@", "@"),
96
97 CAPITAL_A("A", "A"),
98
99 CAPITAL_B("B", "B"),
100
101 CAPITAL_C("C", "C"),
102
103 CAPITAL_D("D", "D"),
104
105 CAPITAL_E("E", "E"),
106
107 CAPITAL_F("F", "F"),
108
109 CAPITAL_G("G", "G"),
110
111 CAPITAL_H("H", "H"),
112
113 CAPITAL_I("I", "I"),
114
115 CAPITAL_J("J", "J"),
116
117 CAPITAL_K("K", "K"),
118
119 CAPITAL_L("L", "L"),
120
121 CAPITAL_M("M", "M"),
122
123 CAPITAL_N("N", "N"),
124
125 CAPITAL_O("O", "O"),
126
127 CAPITAL_P("P", "P"),
128
129 CAPITAL_Q("Q", "Q"),
130
131 CAPITAL_R("R", "R"),
132
133 CAPITAL_S("S", "S"),
134
135 CAPITAL_T("T", "T"),
136
137 CAPITAL_U("U", "U"),
138
139 CAPITAL_V("V", "V"),
140
141 CAPITAL_W("W", "W"),
142
143 CAPITAL_X("X", "X"),
144
145 CAPITAL_Y("Y", "Y"),
146
147 CAPITAL_Z("Z", "Z"),
148
149 LEFT_SQUARE_BRACKET("[", "["),
150
151 BACKSLASH("\\", "\"),
152
153 RIGHT_SQUARE_BRACKET("]", "]"),
154
155 CIRCUMFLEX("^", "^"),
156
157 UNDERSCORE("_", "_"),
158
159 TICK("`", "`"),
160
161 A("a", "a"),
162
163 B("b", "b"),
164
165 C("c", "c"),
166
167 D("d", "d"),
168
169 E("e", "e"),
170
171 F("f", "f"),
172
173 G("g", "g"),
174
175 H("h", "h"),
176
177 I("i", "i"),
178
179 J("j", "j"),
180
181 K("k", "k"),
182
183 L("l", "l"),
184
185 M("m", "m"),
186
187 N("n", "n"),
188
189 O("o", "o"),
190
191 P("p", "p"),
192
193 Q("q", "q"),
194
195 R("r", "r"),
196
197 S("s", "s"),
198
199 T("t", "t"),
200
201 U("u", "u"),
202
203 V("v", "v"),
204
205 W("w", "w"),
206
207 X("x", "x"),
208
209 Y("y", "y"),
210
211 Z("z", "z"),
212
213 LEFT_CURLY_BRACKET("{", "{"),
214
215 PIPE("|", "|"),
216
217 RIGHT_CURLY_BRACKET("}", "}"),
218
219 TILDE("~", "~"),
220
221 ;
222
223 private final String plain;
224 private final String replacement;
225
226 CharacterConverter(final String plain, final String placement) {
227 this.plain = plain;
228 this.replacement = placement;
229 }
230
231 }