@@ -122,7 +122,7 @@ class MOF2KerMLText {
122122 }
123123
124124 def toMetaclass (org.eclipse.uml2.uml. Class class_ ) {
125- toMetaclass(class_, " metaclass" )
125+ class_ . toMetaclass(" metaclass" )
126126 }
127127
128128 def toMetaclass (org.eclipse.uml2.uml. Class class_ , String keyword ) {
@@ -158,12 +158,13 @@ class MOF2KerMLText {
158158 }
159159
160160 def toFeature (org.eclipse.uml2.uml. Property property ) {
161- toFeature(property, property. isComposite, " feature" )
161+ val keyword = ' ' ' «IF property.isComposite»composite «ENDIF»«IF property.readOnly»const «ELSE»var «ENDIF»feature' ' '
162+ property. toFeature(keyword)
162163 }
163164
164- def toFeature (org.eclipse.uml2.uml. Property property , boolean isComposite , String keyword ) {
165+ def toFeature (org.eclipse.uml2.uml. Property property , String keyword ) {
165166 ' ' '
166- «IF property.derivedUnion»abstract «ENDIF»«IF isComposite»composite «ENDIF»«IF property.readOnly»readonly «ENDIF»«IF property.derived»derived «ENDIF»«keyword» «nameOf(property)» : «property.type.toTypeName»«property.toMultiplicity»«property.toSubsets»«property.toRedefines»;
167+ «IF property.derived»derived «ENDIF»«IF property.derivedUnion»abstract «ENDIF»«keyword» «nameOf(property)» : «property.type.toTypeName»«property.toMultiplicity»«property.toSubsets»«property.toRedefines»;
167168 ' ' '
168169 }
169170
@@ -194,16 +195,16 @@ class MOF2KerMLText {
194195
195196 def String getReservedWords () {
196197 // Note: Every word must be preceded and followed by a space.
197- " about abstract alias all and as assign assoc behavior binding bool by chains
198- class classifier comment composite conjugate conjugates conjugation connector
199- datatype default derived differences disjoining disjoint doc element else end
200- expr false feature featured featuring filter first flow for from function
201- hastype if intersects implies import in inout interaction inv inverse
202- inverting istype language locale member metaclass metadata multiplicity namespace
203- nonunique not null of or ordered out package portion predicate private
204- protected public readonly references redefines redefinition relationship rep
205- return specialization specializes step struct subclassifier subset subsets
206- subtype succession then to true type typed typing unions xor "
198+ " about abstract alias all and as assoc behavior binding bool by chains class
199+ classifier comment composite conjugate conjugates conjugation connector const
200+ crosses datatype default dependency derived differences disjoining disjoint doc
201+ else end expr false feature featured featuring filter first flow for from
202+ function hastype if implies import in inout interaction intersects inv inverse
203+ inverting istype language library locale member meta metaclass metadata
204+ multiplicity namespace nonunique not null of or ordered out package portion
205+ predicate private protected public redefines redefinition references rep return
206+ specialization specializes standard step struct subclassifier subset subsets
207+ subtype succession then to true type typed typing unions var xor "
207208 }
208209
209210 def toTypeName (Type type ) {
0 commit comments