ontomde-java-frontend 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,483 @@
1
+ ontomde-java is a command line utility to generate Java Code from a UML2 model stored in a UML2/RDF model file.
2
+
3
+ This command line is a front end to OntoMDE generator offering a set of pre-packaged, yet powerfull generation rules.
4
+
5
+ This Java code generator is full featured and covers many UML features (incremental generation, loading of additional MDA transformation rules, ...)
6
+
7
+ == Example: generate java code from one model file
8
+ $ ontomde-java --nt myUmlModel.emx.nt
9
+
10
+ == Example: generate java code in a custom directory
11
+ $ ontomde-java --nt myUmlModel.emx.nt --target ./src
12
+
13
+ == Usage:
14
+ ontomde-java [options]
15
+ == Source and Target options :
16
+
17
+ ===-nt FILE1.nt,FILE2.nt, ... :
18
+
19
+ Source UML2 model(s) (exported from a UML case tool)
20
+
21
+
22
+ <i>default:</i> --nt
23
+
24
+ ===-ntList FILE1,FILE2,... :
25
+
26
+ File containing a list of nt file to be loaded
27
+ ===-l, --load FILE1.rb,File2.rb :
28
+
29
+ Optionnal ruby extension or setup file (used as well new datatype declaration mappings, as for any generation customisation)
30
+
31
+
32
+ <i>default:</i> --load
33
+ ===-loadDir DIRECTORY1,.. :
34
+
35
+ Optionnal ruby extension or setup file
36
+ (used as well new datatype declaration mappings, as for any generation customisation)
37
+
38
+
39
+ <i>default:</i> --loadDir
40
+ ===-loadList FILE_list1,FILE_list2, ... :
41
+
42
+ File containing a list of ruby file to be loaded
43
+ (same as --load on each item)
44
+ ===-javaRelativeDir DIRECTORY :
45
+
46
+ Relative destination directory for generated java files, properties, ...
47
+ relative to --targetDir
48
+
49
+
50
+ <i>default:</i> --javaRelativeDir ./src/java/
51
+ ===-webResourcesDir DIRECTORY :
52
+
53
+ Relative destination directory for generated Web Resources properties, ...
54
+ relative to --targetDir
55
+
56
+
57
+ <i>default:</i> --webResourcesDir ./src/java/
58
+ ===-javaFilePathRegexp REGEXP@DIRECTORY :
59
+
60
+ Relative destination directory for generated java files, properties, ...
61
+ relative to --targetDir
62
+
63
+
64
+ <i>default:</i> --javaFilePathRegexp
65
+ ===-targetDir DIRECTORY :
66
+
67
+ Target generation root directory
68
+
69
+
70
+ <i>default:</i> --targetDir .
71
+ == Model pre-processors options :
72
+
73
+ ===-[no-]withMultipleInheritance :
74
+
75
+ Apply pattern to map UML model with multiple inheritance to Java compliant model.
76
+ (Class inheritance is mapped to interface implementation)
77
+
78
+
79
+ <i>default:</i> --withMultipleInheritance
80
+ ===-p, --[no-]withAutoImplementProperty :
81
+
82
+ Generate automatically missing property in concrete class implementing an interface uml properties
83
+ (feature introduced for model redondancy reduction)
84
+
85
+
86
+ <i>default:</i> --no-withAutoImplementProperty
87
+ ===-o, --[no-]withAutoImplementOperation :
88
+
89
+ Generate automatically missing operations in concrete class implementing an interface
90
+ (feature introduced for model redondancy reduction)
91
+
92
+
93
+ <i>default:</i> --no-withAutoImplementOperation
94
+ ===-[no-]makeCompositionBiNavigable :
95
+
96
+ Force compositions to be bi-navigable
97
+ (Feature introduced for web persistence handling)
98
+
99
+
100
+ <i>default:</i> --no-makeCompositionBiNavigable
101
+ == Model enhancement options:
102
+
103
+ ===-a, --[no-]withEnumAssignable :
104
+
105
+ Generates for each class and interfaces an enum containing assignable class
106
+ (required for creators)
107
+ NOTE: also disable generation of createAndAdd methods
108
+
109
+
110
+ <i>default:</i> --withEnumAssignable
111
+ ===-enumAssignableSubPackage SUBDIR :
112
+
113
+ Directory where enumAssignable artefacts wil be generated
114
+
115
+
116
+ <i>default:</i> --enumAssignableSubPackage assignable
117
+ ===-f, --[no-]withGenerateMethodForm :
118
+
119
+ Apply a pattern to generate a form (as a class) for every method of the model.
120
+ (Feature introduced for web form handling)
121
+
122
+
123
+ <i>default:</i> --no-withGenerateMethodForm
124
+ == Pre-Java 5 compatibility options:
125
+ ===-e, --[no-]withEnumAsString :
126
+
127
+ Generate additional string getter and setter
128
+ for properties with an enum type, so enums property can be manipulated as if it was a string
129
+ (feature introduced
130
+ for Flex interoperability)
131
+
132
+
133
+ <i>default:</i> --no-withEnumAsString
134
+
135
+ == Tests Data options:
136
+
137
+ ===-updateKB :
138
+
139
+ Create or update protege 2000 knowledge base project (for creating tests data and junit tests bases on use cases.)
140
+
141
+
142
+ <i>default:</i> --no-updateKB
143
+ ===-kbTargetfile FILENAME _WITHOUT_EXTENSION :
144
+
145
+ Protege data test file to be generated or update.
146
+ This generates a protege/2000 project file to be used for editing tests data attached to test instances.
147
+
148
+
149
+ <i>default:</i> --kbTargetfile defaultKbTargetFile
150
+ ===-[no-]excludeNonTestFiles :
151
+
152
+ Do not generate files which are not test files
153
+ junit,data,...
154
+
155
+
156
+ <i>default:</i> --no-excludeNonTestFiles
157
+ ===-[no-]includeTestFiles :
158
+
159
+ Include test files in generation
160
+ junit,data,...
161
+
162
+
163
+ <i>default:</i> --includeTestFiles
164
+ ===-testDataRDF RDFFILE :
165
+
166
+ Data file in RDF format
167
+ ===-jpaConfigDir JPA_CONFIG_DIR :
168
+
169
+ Directory for the persistence.xml
170
+ ===-testDataRDFS RDFSFILE :
171
+
172
+ Data file format in RDFS format
173
+ If absent, this RDFSFILE will be guessed from --dataRDF
174
+ == Access control enhancement options:
175
+
176
+ ===-[no-]security :
177
+
178
+ Activate authentification and access control
179
+
180
+
181
+ <i>default:</i> --no-security
182
+ == BPM enhancement options:
183
+
184
+ ===-[no-]bpm :
185
+
186
+ Activate bpm processing
187
+
188
+
189
+ <i>default:</i> --no-bpm
190
+ ===-jpdl FILE1.nt,FILE2.nt, ... :
191
+
192
+ Source jpdl xml BPM model(s)
193
+
194
+
195
+ <i>default:</i> --jpdl
196
+ ===-jpdlList FILE_list1,FILE_list2, ... :
197
+
198
+ File containing a list of jpdl file to be loaded
199
+ ===-bpm_javaSubPackage [SUBPACKAGE] :
200
+
201
+ Relative sub package where will be generated service class
202
+ (enums for transitions,...)
203
+
204
+
205
+ <i>default:</i> --bpm_javaSubPackage bpm
206
+
207
+ == Flex integration options:
208
+
209
+ ===-[no-]generateXMLStrutsForm :
210
+
211
+ Add XML form serializer.
212
+ feature introduced for FLEX
213
+
214
+
215
+ <i>default:</i> --no-generateXMLStrutsForm
216
+ ===-[no-]flex :
217
+
218
+ Generate flex code
219
+
220
+
221
+ <i>default:</i> --no-flex
222
+
223
+ == Database persistence options:
224
+
225
+ ===-m, --relational_mapping objr :
226
+
227
+ Select object/relation library
228
+ (none,jpa,jdo,jpox,jpa)
229
+
230
+
231
+ <i>default:</i> --relation_mapping none
232
+ ===-[no-]db_useStereotypeMarker :
233
+
234
+ Are persistent capable classes marked with a stereotype
235
+
236
+
237
+ <i>default:</i> --no-db_useStereotypeMarker
238
+ ===-[no-]silentlyTruncateTableName :
239
+
240
+ Silently truncate generated table name to maximum sgbd allowed length.
241
+
242
+
243
+ <i>default:</i> --no-silentlyTruncateTableName
244
+ ===-d, --ddl_mode [MODE] :
245
+
246
+ SGBD schema creation mode
247
+ (create/update/...)
248
+
249
+
250
+ <i>default:</i> --ddl_mode create
251
+ ===-s, --[no-]simulateNotImplementedMethods :
252
+
253
+ Replace unimplemeted method with a simulation method.
254
+
255
+
256
+ <i>default:</i> --no-simulateNotImplementedMethods
257
+ ===-[no-]java_addSuggester :
258
+
259
+ Add or remove the suggester method.
260
+
261
+
262
+ <i>default:</i> --no-java_addSuggester
263
+ ===-dbTypeDiscriminator [objr] :
264
+
265
+ Column type used to store an object type in database.
266
+ (default,int,:default,:int)
267
+
268
+
269
+ <i>default:</i> --dbTypeDiscriminator :default,:int
270
+ ===-dbDiscriminatorCacheRelFile [RBFILE] :
271
+
272
+ File where db discriminator will be saved
273
+ to allow subsquent generation to use the same ids
274
+ NOTE: generated file will not be used, unless specified using --load option
275
+
276
+
277
+ <i>default:</i> --dbDiscriminatorCacheRelFile dbDiscriminatorCache.rb
278
+ ===-[no-]mysql :
279
+
280
+ Optimize for mysql.
281
+
282
+
283
+ <i>default:</i> --no-mysql
284
+ ===-[no-]derby :
285
+
286
+ Optimize for derby.
287
+
288
+
289
+ <i>default:</i> --no-derby
290
+
291
+ == Webapp options:
292
+ ===-[no-]struts :
293
+
294
+ Enable struts generation.
295
+
296
+
297
+ <i>default:</i> --no-struts
298
+ ===-[no-]java_addJavaEnumInterface :
299
+
300
+ Add Enum Interface.
301
+
302
+
303
+ <i>default:</i> --no-java_addJavaEnumInterface
304
+ ===-u, --[no-]useUnzip :
305
+
306
+ Use unzip to install resources.
307
+
308
+
309
+ <i>default:</i> --no-useUnzip
310
+ ===-c, --[no-]message-check :
311
+
312
+ Check message ressources consistency.
313
+
314
+
315
+ <i>default:</i> --message-check
316
+ ===-webContentRelativeDir [DIRECTORY] :
317
+
318
+ Directory where webapp artefacts wil be generated (WEB-INF, META-INF, JSP, ...)
319
+
320
+
321
+ <i>default:</i> --webContentRelativeDir ./WebContent/
322
+ ===-strutsActionFormPackage [SUBPACKAGE] :
323
+
324
+ SubPackage where to generate struts related classes
325
+
326
+
327
+ <i>default:</i> --strutsActionFormPackage struts
328
+
329
+ == EJB options:
330
+ ===-[no-]ejb2 :
331
+
332
+ Enable ejb2 experimental processing
333
+
334
+
335
+ <i>default:</i> --no-ejb2
336
+ ===-t, --target_ejbconf DIRECTORY :
337
+
338
+ Destination directory for generated files
339
+
340
+
341
+ <i>default:</i> --target_ejbconf
342
+
343
+ == Misc. options:
344
+ ===-[no-]generateAntBuildFile :
345
+
346
+ Generates a default ant build file
347
+
348
+
349
+ <i>default:</i> --no-generateAntBuildFile
350
+ ===-versionSignature version :
351
+
352
+ Adds a version signature to generated code, so old cold will not compile.
353
+ (an implemented interface is added to class and interfaces)
354
+
355
+
356
+ <i>default:</i> --versionSignature
357
+ ===-[no-]skipNoReverseMarker :
358
+
359
+ Only write markers when reverse is already set to yes. Usefull to get rid of unused reverse zone and get a better code browsing experience.
360
+
361
+
362
+ <i>default:</i> --no-skipNoReverseMarker
363
+ ===-[no-]silentlyForceUnknownDatatypeToString :
364
+
365
+ Silently map an unknown datatype to String. This feature should only be used for testing.
366
+
367
+
368
+ <i>default:</i> --no-silentlyForceUnknownDatatypeToString
369
+ ===-[no-]java_failIfNonUniqueName :
370
+
371
+ Stop generation immediately when a name unicitiy constraint failure is detected.
372
+
373
+
374
+ <i>default:</i> --java_failIfNonUniqueName
375
+ ===-[no-]groovyExperimental :
376
+
377
+ Add experimental groovy features (alpha).
378
+
379
+
380
+ <i>default:</i> --no-groovyExperimental
381
+ ===-[no-]daemon :
382
+
383
+ Run this script as daemon.
384
+
385
+
386
+ <i>default:</i> --no-daemon
387
+ == Report generator:
388
+ ===-rsm6WebDocURI URL :
389
+
390
+ Base URL of RSM6 model html export
391
+
392
+
393
+ <i>default:</i> --
394
+ ===-[no-]generateCompositionDiagram :
395
+
396
+ Generate a composition diagram (in graphviz dot file format)
397
+
398
+
399
+ <i>default:</i> --no-generateCompositionDiagram
400
+ ===-[no-]checkForAbstractAndInheritance :
401
+
402
+ Check model for abstract class with inheriting classes. Stop generation if an invalid class is encountered.
403
+
404
+
405
+ <i>default:</i> --no-checkForAbstractAndInheritance
406
+ == Debug options:
407
+ ===-[no-]salvage :
408
+
409
+ Tries to handle highly defective model using best guess.
410
+ This feature is only intended for **quick demo** purposes.
411
+ Do not use for serious work!
412
+
413
+
414
+ <i>default:</i> --no-salvage
415
+ == File creation options:
416
+ ===-[no-]autoNewFileCreation :
417
+
418
+ Allows generator to create new file on its own
419
+ This feature should be deactivated for project under version control so no new file can be added to a project without a developper approval.
420
+ This feature should also be deactivated to help keep track of file rename and allow project refactoring
421
+
422
+
423
+ <i>default:</i> --autoNewFileCreation
424
+ ===-[no-]allowAutomaticCodeDeletion :
425
+
426
+ Automatically ignore deleted protected code.
427
+ If disabled, generator will halt when reversed code is not reused in file newly created
428
+
429
+
430
+ <i>default:</i> --no-allowAutomaticCodeDeletion
431
+ ===-[no-]dry-run :
432
+
433
+ Do a dry run without executing actions..
434
+ No file will be changed neither created on disk
435
+
436
+
437
+ <i>default:</i> --no-dry-run
438
+ ===-v, --[no-]verbose :
439
+
440
+ Run in verbose mode
441
+
442
+
443
+ <i>default:</i> --no-verbose
444
+ ===-[no-]benchmark :
445
+
446
+ Run in benchmark mode
447
+ Feature usefull for optimizing generation time
448
+
449
+
450
+ <i>default:</i> --no-benchmark
451
+ ===-[no-]profile :
452
+
453
+ Run in profile mode
454
+ Feature usefull for optimizing generation time
455
+
456
+
457
+ <i>default:</i> --no-profile
458
+ ===-[no-]logFileWrite :
459
+
460
+ Log file write access to screen
461
+
462
+
463
+ <i>default:</i> --no-logFileWrite
464
+ ===-[no-]selfTestAndExit :
465
+
466
+ Self test and exit.
467
+ (loads every dependencies)
468
+ (Note: used by binary generator)
469
+
470
+
471
+ <i>default:</i> --no-selfTestAndExit
472
+ ===-[no-]backTrace :
473
+
474
+ Display back trace on error.
475
+
476
+
477
+ <i>default:</i> --no-backTrace
478
+ ===-h, --help :
479
+
480
+ Show this message
481
+ ===-help-rdoc :
482
+
483
+ Show help in rdoc format
@@ -0,0 +1,7 @@
1
+ module Ontomde
2
+ module Java
3
+ module Frontend
4
+ VERSION = '1.0.4'
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,2 @@
1
+
2
+ require 'ontomde-java-frontend/version.rb'
@@ -0,0 +1,7 @@
1
+
2
+ ARGV.clear
3
+ ARGV << '--help'
4
+ require 'ontomde-java-frontend/command.rb'
5
+
6
+
7
+
@@ -0,0 +1,6 @@
1
+
2
+ ARGV.clear
3
+ ARGV << '--selfTestAndExit'
4
+ require 'ontomde-java-frontend/command.rb'
5
+
6
+
metadata ADDED
@@ -0,0 +1,174 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ontomde-java-frontend
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.4
5
+ platform: ruby
6
+ authors:
7
+ - Stephane (Pierre) Carrie
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-03-03 00:00:00 +01:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: ontomde-core
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - "="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.0.4
23
+ version:
24
+ - !ruby/object:Gem::Dependency
25
+ name: ontomde-uml2
26
+ version_requirement:
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - "="
30
+ - !ruby/object:Gem::Version
31
+ version: 1.0.4
32
+ version:
33
+ - !ruby/object:Gem::Dependency
34
+ name: ontomde-uml2-java
35
+ version_requirement:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "="
39
+ - !ruby/object:Gem::Version
40
+ version: 1.0.4
41
+ version:
42
+ - !ruby/object:Gem::Dependency
43
+ name: ontomde-uml2-jpa
44
+ version_requirement:
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "="
48
+ - !ruby/object:Gem::Version
49
+ version: 1.0.4
50
+ version:
51
+ - !ruby/object:Gem::Dependency
52
+ name: ontomde-uml2-struts
53
+ version_requirement:
54
+ version_requirements: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - "="
57
+ - !ruby/object:Gem::Version
58
+ version: 1.0.4
59
+ version:
60
+ - !ruby/object:Gem::Dependency
61
+ name: ontomde-uml2-kb
62
+ version_requirement:
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "="
66
+ - !ruby/object:Gem::Version
67
+ version: 1.0.4
68
+ version:
69
+ - !ruby/object:Gem::Dependency
70
+ name: ontomde-uml2-kbjava
71
+ version_requirement:
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "="
75
+ - !ruby/object:Gem::Version
76
+ version: 1.0.4
77
+ version:
78
+ - !ruby/object:Gem::Dependency
79
+ name: ontomde-uml2-apaCom
80
+ version_requirement:
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - "="
84
+ - !ruby/object:Gem::Version
85
+ version: 1.0.4
86
+ version:
87
+ - !ruby/object:Gem::Dependency
88
+ name: ontomde-uml2-ejb2
89
+ version_requirement:
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "="
93
+ - !ruby/object:Gem::Version
94
+ version: 1.0.4
95
+ version:
96
+ - !ruby/object:Gem::Dependency
97
+ name: ontomde-uml2-jpdl
98
+ version_requirement:
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "="
102
+ - !ruby/object:Gem::Version
103
+ version: 1.0.4
104
+ version:
105
+ - !ruby/object:Gem::Dependency
106
+ name: ontomde-uml2-flex
107
+ version_requirement:
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - "="
111
+ - !ruby/object:Gem::Version
112
+ version: 1.0.4
113
+ version:
114
+ - !ruby/object:Gem::Dependency
115
+ name: hoe
116
+ version_requirement:
117
+ version_requirements: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: 1.5.0
122
+ version:
123
+ description: "This includes * advanced UML2 to java generator (release) * JPA (release) * struts (beta) * jBPM integration * FLEX integration (beta) * junit and tests data == SYNOPSIS: $ ontomde-java --help == INSTALL:"
124
+ email: stephanepierre.carrie@orange-ftgroup.com
125
+ executables:
126
+ - ontomde-java
127
+ extensions: []
128
+
129
+ extra_rdoc_files:
130
+ - History.txt
131
+ - Manifest.txt
132
+ - README.txt
133
+ - lib/ontomde-java-frontend/command.rdoc
134
+ files:
135
+ - History.txt
136
+ - Manifest.txt
137
+ - README.txt
138
+ - Rakefile
139
+ - bin/ontomde-java
140
+ - lib/ontomde-java-frontend/command.rdoc
141
+ - lib/ontomde-java-frontend.rb
142
+ - lib/ontomde-java-frontend/version.rb
143
+ - lib/ontomde-java-frontend/command.rb
144
+ - test/test_ontomde-java-frontend.rb
145
+ has_rdoc: true
146
+ homepage: http://ontomde.rubyforge.org
147
+ post_install_message:
148
+ rdoc_options:
149
+ - --main
150
+ - lib/ontomde-java-frontend/command.rdoc
151
+ require_paths:
152
+ - lib
153
+ required_ruby_version: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ version: 1.8.6
158
+ version:
159
+ required_rubygems_version: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ version: 1.0.0
164
+ version:
165
+ requirements: []
166
+
167
+ rubyforge_project: ontomde
168
+ rubygems_version: 1.0.1
169
+ signing_key:
170
+ specification_version: 2
171
+ summary: OntoMDE java generator command line utility cartridge
172
+ test_files:
173
+ - test/test_ontomde-java-frontend.rb
174
+ - test/test_selfTestAndExit.rb