1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| |
16 |
| package org.rblasch.convert.converters; |
17 |
| |
18 |
| import org.rblasch.convert.type.Type; |
19 |
| import org.rblasch.convert.MetaConverter; |
20 |
| import org.rblasch.convert.Converter; |
21 |
| |
22 |
| |
23 |
| |
24 |
| |
25 |
| public class StandardMetaConverter implements MetaConverter { |
26 |
| private final Type sourceType, destinationType; |
27 |
| private final Converter converter; |
28 |
| private final int weight; |
29 |
| |
30 |
0
| public StandardMetaConverter(final Type sourceType, final Type destinationType, final Converter converter, final int weight) {
|
31 |
0
| this.sourceType = sourceType;
|
32 |
0
| this.destinationType = destinationType;
|
33 |
0
| this.converter = converter;
|
34 |
0
| this.weight = weight;
|
35 |
| } |
36 |
| |
37 |
0
| public Type getSourceType() {
|
38 |
0
| return sourceType;
|
39 |
| } |
40 |
| |
41 |
0
| public Type getDestinationType() {
|
42 |
0
| return destinationType;
|
43 |
| } |
44 |
| |
45 |
0
| public int getWeight() {
|
46 |
0
| return weight;
|
47 |
| } |
48 |
| |
49 |
0
| public Converter getConverter() {
|
50 |
0
| return converter;
|
51 |
| } |
52 |
| } |