Class: UML13ToECore

Inherits:
RGen::Transformer show all
Includes:
RGen::ECore
Defined in:
lib/transformers/uml13_to_ecore.rb

Constant Summary

Constants included from RGen::ECore

RGen::ECore::EBoolean, RGen::ECore::EFloat, RGen::ECore::EInt, RGen::ECore::EJavaClass, RGen::ECore::EJavaObject, RGen::ECore::ERubyClass, RGen::ECore::ERubyObject, RGen::ECore::EString

Instance Method Summary collapse

Methods included from RGen::MetamodelBuilder::ModuleExtension

#_annotations, #_constantOrder, #annotation, extended, #final_method, #method_added

Methods included from RGen::ECore::ECoreInstantiator

clear_ecore_cache, #ecore

Methods inherited from RGen::Transformer

_methods, #_transformProperties, _transformer_blocks, copy, copy_all, #copy_features, #initialize, method, #method_missing, #trans, transform

Constructor Details

This class inherits a constructor from RGen::Transformer

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RGen::Transformer

Instance Method Details

#createAnnotations(taggedValues) ⇒ Object



73
74
75
76
77
78
79
# File 'lib/transformers/uml13_to_ecore.rb', line 73

def createAnnotations(taggedValues)
  if taggedValues.size > 0
    [ EAnnotation.new(:details => trans(taggedValues)) ]
  else
    []
  end
end

#transformObject



9
10
11
# File 'lib/transformers/uml13_to_ecore.rb', line 9

def transform
	trans(:class => UML13::Class)
end