Statistics
| Revision:

root / branches / modelio4.0.x / src / main / conf / res / custom / javaCustomizationFile.xml @ 451

History | View | Annotate | Download (6.69 KB)

1
<?xml version="1.0" encoding="windows-1250"?>
2
<Customization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="customFile.xsd">
3
  <!-- Model Types -->
4
  <ModelTypes>
5
    <ModelType name="boolean">
6
      <JavaType name="boolean"/>
7
      <wrapper name="Boolean"/>
8
    </ModelType>
9
    <ModelType name="byte">
10
      <JavaType name="byte"/>
11
      <wrapper name="Byte"/>
12
    </ModelType>
13
    <ModelType name="char">
14
      <JavaType name="char"/>
15
      <wrapper name="Character"/>
16
    </ModelType>
17
    <ModelType name="date">
18
      <JavaType name="Date">
19
        <import name="java.util.Date"/>
20
      </JavaType>
21
    </ModelType>
22
    <ModelType name="double">
23
      <JavaType name="double"/>
24
      <wrapper name="Double"/>
25
    </ModelType>
26
    <ModelType name="float">
27
      <JavaType name="float"/>
28
      <wrapper name="Float"/>
29
    </ModelType>
30
    <ModelType name="integer">
31
      <JavaType name="int"/>
32
      <wrapper name="Integer"/>
33
    </ModelType>
34
    <ModelType name="long">
35
      <JavaType name="long"/>
36
      <wrapper name="Long"/>
37
    </ModelType>
38
    <ModelType name="short">
39
      <JavaType name="short"/>
40
      <wrapper name="Short"/>
41
    </ModelType>
42
    <ModelType name="string">
43
      <JavaType name="String"/>
44
    </ModelType>
45
  </ModelTypes>
46
  <!-- Elements -->
47
  <Elements>
48
    <!--
49
     Possible macros to expand:
50
         $name
51
         $Name
52
         $visibility
53
         $Visibility
54
    
55
     Possible cardinalities, according to multiplicities:
56
               0 - 1 -> OptionalSimple                 
57
               1 - 1 -> MandatorySimple
58
               0 - * -> OptionalMultiple
59
               n - * -> MandatoryMultiple
60
               n - m -> Finite
61
         -->
62

    
63
<!-- Attribute -->
64

    
65
   <Attribute card="OptionalSimple">
66
      <getter>
67
        <defaultPattern>get$Name</defaultPattern>
68
        <variants>
69
          <pattern type="boolean">is$Name</pattern>
70
        </variants>
71
      </getter>
72
      <setter>
73
        <defaultPattern>set$Name</defaultPattern>
74
      </setter>
75
    </Attribute>
76

    
77
    <Attribute card="MandatorySimple">
78
      <getter>
79
        <defaultPattern>get$Name</defaultPattern>
80
        <variants>
81
          <pattern type="boolean">is$Name</pattern>
82
        </variants>
83
      </getter>
84
      <setter>
85
        <defaultPattern>set$Name</defaultPattern>
86
      </setter>
87
    </Attribute>
88

    
89
    <Attribute card="OptionalMultiple">
90
      <getter>
91
        <defaultPattern>get$Name</defaultPattern>
92
      </getter>
93
      <setter>
94
        <defaultPattern>set$Name</defaultPattern>
95
      </setter>
96
    </Attribute>
97
    
98
     <Attribute card="MandatoryMultiple">
99
      <getter>
100
        <defaultPattern>get$Name</defaultPattern>
101
      </getter>
102
      <setter>
103
        <defaultPattern>set$Name</defaultPattern>
104
      </setter>
105
    </Attribute>
106
    
107
    <Attribute card="Finite">
108
      <getter>
109
        <defaultPattern>get$Name</defaultPattern>
110
      </getter>
111
      <setter>
112
        <defaultPattern>set$Name</defaultPattern>
113
      </setter>
114
    </Attribute>
115
    
116
<!-- AssociationEnd -->
117

    
118
    <AssociationEnd card="OptionalSimple">
119
      <getter>
120
        <defaultPattern>get$Name</defaultPattern>
121
        <variants>
122
          <pattern type="boolean">is$Name</pattern>
123
        </variants>
124
      </getter>
125
      <setter>
126
        <defaultPattern>set$Name</defaultPattern>
127
      </setter>
128
    </AssociationEnd>
129

    
130
    <AssociationEnd card="MandatorySimple">
131
      <getter>
132
        <defaultPattern>get$Name</defaultPattern>
133
        <variants>
134
          <pattern type="boolean">is$Name</pattern>
135
        </variants>
136
      </getter>
137
      <setter>
138
        <defaultPattern>set$Name</defaultPattern>
139
      </setter>
140
    </AssociationEnd>
141

    
142
    <AssociationEnd card="OptionalMultiple">
143
      <defaultInterfaceContainer name="List">
144
        <import name="java.util.List"/>
145
      </defaultInterfaceContainer>
146
      <defaultImplementationContainer name="ArrayList">
147
        <import name="java.util.ArrayList"/>
148
      </defaultImplementationContainer>
149
      <getter>
150
        <defaultPattern>get$Name</defaultPattern>
151
      </getter>
152
      <setter>
153
        <defaultPattern>set$Name</defaultPattern>
154
      </setter>
155
    </AssociationEnd>
156
    
157
     <AssociationEnd card="MandatoryMultiple">
158
      <defaultInterfaceContainer name="List">
159
        <import name="java.util.List"/>
160
      </defaultInterfaceContainer>
161
      <defaultImplementationContainer name="ArrayList">
162
        <import name="java.util.ArrayList"/>
163
      </defaultImplementationContainer>
164
      <getter>
165
        <defaultPattern>get$Name</defaultPattern>
166
      </getter>
167
      <setter>
168
        <defaultPattern>set$Name</defaultPattern>
169
      </setter>
170
    </AssociationEnd>
171
    
172
    <AssociationEnd card="Finite">
173
      <defaultInterfaceContainer name="List">
174
        <import name="java.util.List"/>
175
      </defaultInterfaceContainer>
176
      <defaultImplementationContainer name="ArrayList">
177
        <import name="java.util.ArrayList"/>
178
      </defaultImplementationContainer>
179
      <getter>
180
        <defaultPattern>get$Name</defaultPattern>
181
      </getter>
182
      <setter>
183
        <defaultPattern>set$Name</defaultPattern>
184
      </setter>
185
    </AssociationEnd>
186

    
187
<!-- IOParameter -->
188

    
189
    <IOParameter card="OptionalSimple">
190
    </IOParameter>
191

    
192
    <IOParameter card="MandatorySimple">
193
    </IOParameter>
194

    
195
    <IOParameter card="OptionalMultiple">
196
      <defaultInterfaceContainer name="List">
197
        <import name="java.util.List"/>
198
      </defaultInterfaceContainer>
199
    </IOParameter>
200
    
201
     <IOParameter card="MandatoryMultiple">
202
      <defaultInterfaceContainer name="List">
203
        <import name="java.util.List"/>
204
      </defaultInterfaceContainer>
205
    </IOParameter>
206
    
207
    <IOParameter card="Finite">
208
      <defaultInterfaceContainer name="List">
209
        <import name="java.util.List"/>
210
      </defaultInterfaceContainer>
211
    </IOParameter>
212

    
213
<!-- ReturnParameter -->
214

    
215
    <ReturnParameter card="OptionalSimple">
216
    </ReturnParameter>
217

    
218
    <ReturnParameter card="MandatorySimple">
219
    </ReturnParameter>
220

    
221
    <ReturnParameter card="OptionalMultiple">
222
      <defaultInterfaceContainer name="List">
223
        <import name="java.util.List"/>
224
      </defaultInterfaceContainer>
225
    </ReturnParameter>
226
    
227
    <ReturnParameter card="MandatoryMultiple">
228
      <defaultInterfaceContainer name="List">
229
        <import name="java.util.List"/>
230
      </defaultInterfaceContainer>
231
    </ReturnParameter>
232
    
233
    <ReturnParameter card="Finite">
234
      <defaultInterfaceContainer name="List">
235
        <import name="java.util.List"/>
236
      </defaultInterfaceContainer>
237
    </ReturnParameter>
238

    
239
<!-- Property -->
240
        
241
        <Property>
242
                <Visibility model="Public" code="Private"/>
243
                <Visibility model="Protected" code="Private"/>
244
                <Visibility model="Private" code="Private"/>
245
                <Visibility model="Undefined" code="Private"/>
246
                <Visibility model="Package" code="Private"/>
247
    </Property>
248
  </Elements>
249
</Customization>