86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# File 'lib/ontomde-uml2-flex/main.rb', line 86
def as_write_metadata
if uml_type_one.kind_of?(Muml_DataType)
write %{ <!-- datatype property="#{as_Name}" -->\n}
elsif umlx_oneToMany?
write %{ <one-to-many property="#{as_Name}" destination="#{uml_type_one.as_destinationName}" lazy="#{as_lazyMode}"/>\n}
elsif umlx_manyToOne?
write %{ <!-- many-to-one property="#{as_Name}" destination="#{uml_type_one.as_destinationName}" lazy="#{as_lazyMode}"/ -->\n}
elsif umlx_oneToOne?
write %{ <!-- one-to-one property="#{as_Name}" destination="#{uml_type_one.as_destinationName}" lazy="#{as_lazyMode}"/ -->\n}
elsif umlx_manyToMany?
write %{ <!-- many-to-many property="#{as_Name}" destination="#{uml_type_one.as_destinationName}" lazy="#{as_lazyMode}"/ -->\n}
else
write %{ <!-- property="#{as_Name}" destination="#{uml_type_one.as_destinationName}" lazy="#{as_lazyMode}"/ -->\n}
end
end
|