Module: Muml_Enumeration

Defined in:
lib/ontomde-uml2/extension.rb,
lib/ontomde-uml2/createAndAdd.rb,
lib/ontomde-uml2/versionSignature.rb

Instance Method Summary collapse

Instance Method Details

#uml_addVersionSignature(interface) ⇒ Object



21
22
23
# File 'lib/ontomde-uml2/versionSignature.rb', line 21

def uml_addVersionSignature(interface)
  umlx_createAndAddImplementation(interface)
end

#umlx_createAndAddImplementation(gen) ⇒ Object



76
77
78
79
80
81
82
# File 'lib/ontomde-uml2/createAndAdd.rb', line 76

def umlx_createAndAddImplementation(gen)
  g=Cuml_Implementation.new(rdf_Repository,nil)
  g.uml_supplier=gen
  g.uml_implementingClassifier=self
  self.uml_implementation_add(g)
  return g
end

#umlx_createAndAddLiteral(lit) ⇒ Object



69
70
71
72
73
74
75
# File 'lib/ontomde-uml2/createAndAdd.rb', line 69

def umlx_createAndAddLiteral(lit)
  lit=lit.to_s
  o=Cuml_EnumerationLiteral.new(rdf_Repository,"#{rdf_uri}_#{lit}")
  o.uml_name=lit
  self.uml_ownedLiteral_add(o)
  return o
end