Module: Muml_Property

Defined in:
lib/ontomde-uml2-flex/main.rb

Instance Method Summary collapse

Instance Method Details

#as_lazyModeObject



82
83
84
85
# File 'lib/ontomde-uml2-flex/main.rb', line 82

def as_lazyMode
	return "false"
	#return "true"
end

#as_writeObject



101
102
103
104
105
106
107
# File 'lib/ontomde-uml2-flex/main.rb', line 101

def as_write
	return if uml_type_one.kind_of?(Muml_Enumeration)
	write("var");
	write(" _#{as_NameProperty}")
	write(":#{as_propertyAssociationType}")
	write(";\n")
end

#as_write_metadataObject

return “true”



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 
	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