Module: Muml_Classifier
- Defined in:
- lib/ontomde-uml2-flex/main.rb
Constant Summary collapse
- ACTIONSCRIPT_IMPORT_COMPUTED_DEPENDENCIES =
true
Instance Method Summary collapse
- #as_destinationName ⇒ Object
- #as_FDS_writeConfiguration ⇒ Object
- #as_FileName ⇒ Object
- #as_write_metadata ⇒ Object
- #as_writePackageDeclaration(&block) ⇒ Object
Instance Method Details
#as_destinationName ⇒ Object
76 77 78 |
# File 'lib/ontomde-uml2-flex/main.rb', line 76 def as_destinationName return "dst-#{as_qualifiedName}" end |
#as_FDS_writeConfiguration ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/ontomde-uml2-flex/main.rb', line 44 def as_FDS_writeConfiguration write %{ <destination id="#{as_destinationName}"> <adapter ref="#{Mrdf_Model::ACTIONSCRIPT_JAVA_ADAPTER_ID}"/> <properties> <source>#{java_qualifiedName}Assembler</source> <scope>application</scope> <metadata> <identity property="id"></identity> #{mtk_stss{()}} </metadata> <server> <fill-method> <name>load</name> </fill-method> <fill-method> <name>load</name> <params>java.lang.String</params> </fill-method> <sync-method> <name>sync</name> </sync-method> </server> </properties> </destination> } end |
#as_FileName ⇒ Object
26 27 28 |
# File 'lib/ontomde-uml2-flex/main.rb', line 26 def as_FileName return "#{as_FilePath}#{as_Name}.as" end |
#as_write_metadata ⇒ Object
71 72 73 74 75 |
# File 'lib/ontomde-uml2-flex/main.rb', line 71 def uml_ownedAttribute.each { |a| a. } end |
#as_writePackageDeclaration(&block) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/ontomde-uml2-flex/main.rb', line 30 def as_writePackageDeclaration(&block) p = umlx_package if p.nil? write("package {\n") else write("package #{p.as_qualifiedName} {\n") end yield if p.nil? write("//end of package *unnamed*\n") else write("} // end of package #{p.as_qualifiedName};\n") end end |