Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uaaltools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
universAAL
uaaltools
Commits
d5039dd8
Commit
d5039dd8
authored
12 years ago
by
Erlend Stav
Browse files
Options
Downloads
Patches
Plain Diff
Fixed some minor bugs with separator chars etc. and corrected reference to properties
parent
8f98ed49
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
transformations/org.universaal.tools.transformationcommand/transformations/serviceModelUML2Java.m2t
+18
-3
18 additions, 3 deletions
...formationcommand/transformations/serviceModelUML2Java.m2t
with
18 additions
and
3 deletions
transformations/org.universaal.tools.transformationcommand/transformations/serviceModelUML2Java.m2t
+
18
−
3
View file @
d5039dd8
...
...
@@ -130,7 +130,7 @@ import org.universAAL.middleware.api.annotation.UniversAALService;'
//declare the service
'\n\n@UniversAALService(namespace = ' self.name '.namespace, name="' self.name '")\n'
'@OntologyClasses(value
s
= {' ontologyClass '.class})\n'
'@OntologyClasses(value = {' ontologyClass '.class})\n'
'public interface ' self.name ' {\n'
//set the namespace based on the packagename reversed
...
...
@@ -295,7 +295,7 @@ import org.universAAL.ontology.phThing.PhysicalThing;
var valueType:String = ""
separator = ""
effectProps->forEach(p:uml.Property) {
separator + p.owner.name + '.
' + p.name
separator + p.owner.name + '.
PROP_' p.toUpperFormat()
separator = ", "
valueType = p.type.name // Use type of last property
}
...
...
@@ -334,7 +334,7 @@ import org.universAAL.ontology.phThing.PhysicalThing;
separator = ", "
}
}
')
')
;
'
}
...
...
@@ -345,7 +345,22 @@ import org.universAAL.ontology.phThing.PhysicalThing;
}
uml.Classifier::toUpperFormat():String {
var txt:String
var res:String
txt = self.name.trim()
res = ""
txt->forEach(aChar:String) {
if (aChar.isUpperCase(0)) {
res = res + "_";
}
res = res + aChar;
}
return res.toUpper()
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment