P15GEN2\59518
2024-05-29 d4210c7c4b04abde20037ea8aa0f54ef8a2649aa
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package foundation.io.mapping;
 
import foundation.data.meta.field.Field;
import foundation.translator.ValueType;
 
public class FieldMappingRuntime {
    
     private FieldMapping item;
     private Field fromField;
     private Field toField;
     private String fromName;
     private String toName;  
     private int fromIndex;
     private int toIndex;     
     
     
     public FieldMappingRuntime(FieldMapping ioMappingItem, Field fromField, Field toField, int fromIndex, int toIndex) {
         item = ioMappingItem;
 
         this.fromField = fromField;
         this.toField = toField;
         
         this.fromIndex = fromIndex;
         this.toIndex = toIndex;
     }
     
     public FieldMappingRuntime(FieldMapping ioMappingItem, String fromName, Field toField, int fromIndex, int toIndex) {
         item = ioMappingItem;
 
         this.fromName = fromName;
         this.toField = toField;
         
         this.fromIndex = fromIndex;
         this.toIndex = toIndex;
     }
     
     
     public FieldMappingRuntime(FieldMapping ioMappingItem, Field fromField, String toName, int fromIndex, int toIndex) {
         item = ioMappingItem;
 
         this.fromField = fromField;
         this.toName = toName;
         
         this.fromIndex = fromIndex;
         this.toIndex = toIndex;
     }
     
     public FieldMappingRuntime(FieldMapping ioMappingItem, String fromName, String toName, int fromIndex, int toIndex) {
         item = ioMappingItem;
 
         this.fromName = fromName;
         this.toName = toName;
         
         this.fromIndex = fromIndex;
         this.toIndex = toIndex;
     }
     
     public FieldMapping getFieldMapping() {
         return item;
     }
 
     public String getFromName() {
         if (fromField != null) {
             return fromField.getName();
         }
         
         return fromName;
     }
 
     public ValueType getFromType() {
         if (fromField != null) {
             return fromField.getType();
         }
         
         return null;
     }
 
     public String getToName() {
         if (toField != null) {
             return toField.getName();
         }
         
         return toName;
     }
     
    public int getFromIndex() {
        return fromIndex;
    }
 
    public int getToIndex() {
         return toIndex;
    }
 
    public ValueType getToType() {
        if (toField != null) {
            return toField.getType();
        }
         
        return null;
    }
 
    public Field getFromField() {
        return fromField;
    }
    
}