3 cpp_h_extension "h" cpp_src_extension "cpp" java_extension "java" php_extension "php" idl_extension "idl"
5 type_forms 15 // uml cpp java idl cpp_in cpp_out cpp_inout cpp_return
6 "void" "void" "void" "void" "${type}" "${type} &" "${type}" "${type}"
7 "any" "void *" "Object" "any" "const ${type}" "${type}" "${type} &" "${type}"
8 "bool" "bool" "boolean" "boolean" "${type}" "${type} &" "${type} &" "${type}"
9 "char" "char" "char" "char" "${type}" "${type} &" "${type} &" "${type}"
10 "uchar" "unsigned char" "char" "octet" "${type}" "${type} &" "${type} &" "${type}"
11 "byte" "unsigned char" "byte" "octet" "${type}" "${type} &" "${type} &" "${type}"
12 "short" "short" "short" "short" "${type}" "${type} &" "${type} &" "${type}"
13 "ushort" "unsigned short" "short" "unsigned short" "${type}" "${type} &" "${type} &" "${type}"
14 "int" "int" "int" "long" "${type}" "${type} &" "${type} &" "${type}"
15 "uint" "unsigned int" "int" "unsigned long" "${type}" "${type} &" "${type} &" "${type}"
16 "long" "long" "long" "long" "${type}" "${type} &" "${type} &" "${type}"
17 "ulong" "unsigned long" "long" "unsigned long" "${type}" "${type} &" "${type} &" "${type}"
18 "float" "float" "float" "float" "${type}" "${type} &" "${type} &" "${type}"
19 "double" "double" "double" "double" "${type}" "${type} &" "${type} &" "${type}"
20 "string" "string" "String" "string" "${type}" "${type} &" "${type} &" "${type}"
22 relations_stereotypes 5 // uml cpp java idl
23 "sequence" "vector" "Vector" "sequence"
24 "vector" "vector" "Vector" "sequence"
25 "list" "list" "List" "sequence"
26 "set" "set" "Set" "sequence"
27 "map" "map" "Map" "sequence"
29 classes_stereotypes 13 // uml cpp java php idl
30 "class" "class" "class" "class" "valuetype"
31 "interface" "class" "interface" "interface" "interface"
32 "exception" "class" "class" "class" "exception"
33 "enum" "enum" "enum" "enum" "enum"
34 "enum_pattern" "enum" "enum_pattern" "enum" "enum"
35 "struct" "struct" "class" "class" "struct"
36 "union" "union" "class" "class" "union"
37 "typedef" "typedef" "ignored" "ignored" "typedef"
38 "boundary" "class" "class" "class" "interface"
39 "control" "class" "class" "class" "valuetype"
40 "entity" "class" "class" "class" "valuetype"
41 "actor" "ignored" "ignored" "ignored" "ignored"
42 "@interface" "ignored" "@interface" "ignored" "ignored"
44 cpp_enum_default_type_forms "${type}" "${type} &" "${type} &" "${type}" // in out inout return
45 other_cpp_types_default_type_forms "const ${type} &" "${type} &" "${type} &" "${type}" // in out inout return
47 cpp_default_h_content "#ifndef ${NAMESPACE}_${NAME}_H
48 #define ${NAMESPACE}_${NAME}_H
58 cpp_default_src_content "${comment}
63 cpp_default_class_decl "${comment}${template}class ${name}${inherit} {
67 cpp_default_external_class_decl "${name}
70 cpp_default_struct_decl "${comment}${template}struct ${name}${inherit} {
74 cpp_default_union_decl "${comment}${template}union ${name} {
78 cpp_default_enum_decl "${comment}enum ${name} {
82 cpp_default_typedef_decl "${comment}typedef ${type} ${name};
84 cpp_default_attribute_declaration " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
86 " ${comment}${static}${mutable}${volatile}${const}${stereotype}<${type}> ${name}${value};
87 " // multiplicity * a..b
88 " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${multiplicity}${value};
89 " // multiplicity [..]
90 cpp_default_enum_item_declaration " ${name}${value},${comment}"
91 cpp_association_aggregation_declaration
92 " ${comment}${static}${mutable}${volatile}${const}${type} * ${name}${value};
94 " ${comment}${static}${mutable}${volatile}${const}${stereotype}<${type} *> ${name}${value};
95 " // multiplicity * a..b
96 " ${comment}${static}${mutable}${volatile}${const}${type} * ${name}${multiplicity}${value};
97 " // multiplicity [..]
98 cpp_aggregation_by_value_declaration
99 " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
101 " ${comment}${static}${mutable}${volatile}${const}${stereotype}<${type}> ${name}${value};
102 " // multiplicity * a..b
103 " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${multiplicity}${value};
104 " // multiplicity [..]
105 cpp_get "get_${name}" inline const value_const public
106 cpp_set "set_${name}" public
107 cpp_default_operation_declaration " ${comment}${friend}${static}${inline}${virtual}${type} ${name}${(}${)}${const}${volatile}${throw}${abstract};
109 cpp_default_operation_definition "${comment}${inline}${type} ${class}::${name}${(}${)}${const}${volatile}${throw}${staticnl}{
112 java_default_src_content "${comment}
116 java_default_class_decl "${comment}${@}${visibility}${final}${abstract}class ${name}${extends}${implements} {
119 java_default_external_class_decl "${name}"
120 java_default_interface_decl "${comment}${@}${visibility}interface ${name}${extends} {
123 java5_default_enum_decl "${comment}${@}${visibility}${final}${abstract}enum ${name}${implements} {
127 java_default_enum_decl "${comment}${@}${visibility}final class ${name} {
129 private final int value;
135 public static ${name} fromInt(int value) {
137 ${cases} default: throw new Error();
141 private ${name}(int v) { value = v; };
144 java_default_attribute_declaration " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type} ${name}${value};
146 " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${stereotype}<${type}> ${name}${value};
147 " // multiplicity * a..b
148 " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type}${multiplicity} ${name}${value};
150 java5_default_enum_item_declaration " ${@}${name}${value},${comment}"
151 java_default_enum_item_declaration " ${comment}${@}public static final int _${name}${value};
152 public static final ${class} ${name} = new ${class}(_${name});
154 java_default_enum_case " case _${name}: return ${name};
156 java_association_aggregation_declaration
157 " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type} ${name}${value};
159 " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${stereotype}<${type}> ${name}${value};
160 " // multiplicity * a..b
161 " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type}${multiplicity} ${name}${value};
163 java_get "get${Name}" final public
164 java_set "set${Name}" public
165 java_default_operation_definition " ${comment}${@}${visibility}${final}${static}${abstract}${synchronized}${type} ${name}${(}${)}${throws}${staticnl}{
168 php_default_src_content "<?php
173 php_default_class_decl "${comment}${final}${visibility}${abstract}class ${name}${extends}${implements} {
176 php_default_enum_decl "${comment}final ${visibility}class ${name} {
179 php_default_external_class_decl "${name}"
180 php_default_interface_decl "${comment}${visibility}interface ${name} {
183 php_default_attribute_declaration " ${comment}${visibility}${const}${static}${var}${name}${value};
185 php_default_enum_item_decl " const ${name}${value};${comment}
187 php_default_relation_declaration" ${comment}${visibility}${const}${static}${var}${name}${value};
189 php_get "get${Name}" final
191 php_default_operation_definition " ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
195 idl_default_src_content "#ifndef ${MODULE}_${NAME}_H
196 #define ${MODULE}_${NAME}_H
205 idl_default_interface_decl "${comment}${abstract}${local}interface ${name}${inherit} {
208 idl_default_valuetype_decl "${comment}${abstract}${custom}valuetype ${name}${inherit} {
211 idl_default_struct_decl "${comment}struct ${name} {
214 idl_default_typedef_decl "${comment}typedef ${type} ${name};
216 idl_default_exception_decl "${comment}exception ${name} {
219 idl_default_union_decl "${comment}union ${name} switch(${switch}) {
222 idl_default_enum_decl "${comment}enum ${name} {
225 idl_default_external_class_decl "${name}
226 #include \"${name}.idl\"
228 idl_default_attribute_declaration " ${comment}${readonly}${attribute}${type} ${name};
230 " ${comment}${readonly}${attribute}${stereotype}<${type}> ${name};
231 " // multiplicity * a..b
232 " ${comment}${readonly}${attribute}${stereotype}<${type},${multiplicity}> ${name};
234 idl_default_valuetype_attribute_declaration " ${comment}${visibility}${type} ${name};
236 " ${comment}${visibility}${stereotype}<${type}> ${name};
237 " // multiplicity * a..b
238 " ${comment}${visibility}${stereotype}<${type},${multiplicity}> ${name};
240 idl_default_const_declaration " ${comment}const ${type} ${name}${value};
242 " ${comment}const ${stereotype}<${type}> ${name}${value};
243 " // multiplicity * a..b
244 " ${comment}const ${stereotype}<${type},${multiplicity}> ${name}${value};
246 idl_default_enum_item_declaration " ${name},${comment}"
247 idl_default_union_item_declaration " ${comment}case ${case} : ${readonly}${type} ${name};" // multiplicity 1
248 " ${comment}case ${case} : ${readonly}${stereotype}<${type}> ${name};" // multiplicity * a..b
249 " ${comment}case ${case} : ${readonly}${stereotype}<${type},${multiplicity}> ${name};" // multiplicity N
250 idl_association_aggregation_declaration
251 " ${comment}${readonly}${attribute}${type} ${name};
253 " ${comment}${readonly}${attribute}${stereotype}<${type}> ${name};
254 " // multiplicity * a..b
255 " ${comment}${readonly}${attribute}${stereotype}<${type},${multiplicity}> ${name};
257 idl_valuetype_association_aggregation_declaration
258 " ${comment}${visibility}${type} ${name};
260 " ${comment}${visibility}${stereotype}<${type}> ${name};
261 " // multiplicity * a..b
262 " ${comment}${visibility}${stereotype}<${type},${multiplicity}> ${name};
264 idl_union_association_aggregation_declaration
265 " ${comment}case ${case} : ${readonly}${type} ${name};" // multiplicity 1
266 " ${comment}case ${case} : ${readonly}${stereotype}<${type}> ${name};" // multiplicity * a..b
267 " ${comment}case ${case} : ${readonly}${stereotype}<${type},${multiplicity}> ${name};" // multiplicity N
268 idl_get "get_${name}"
269 idl_set "set_${name}" twoways
270 idl_default_operation_declaration " ${comment}${oneway}${type} ${name}${(}${)}${raisesnl}${raises};
272 uml_get_name uml uml_set_name uml