Class: ECoreToUML13
- Inherits:
-
RGen::Transformer
- Object
- RGen::Transformer
- ECoreToUML13
- Includes:
- RGen::ECore
- Defined in:
- lib/transformers/ecore_to_uml13.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, #annotation, #final_method, #method_added
Methods included from RGen::ECore::ECoreInstantiator
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
#createMultiplicity(ref) ⇒ Object
56 57 58 59 60 |
# File 'lib/transformers/ecore_to_uml13.rb', line 56 def createMultiplicity(ref) @env_out.new(UML13::Multiplicity, :range => [ @env_out.new(UML13::MultiplicityRange, :lower => ref.lowerBound.to_s.sub("-1","*"), :upper => ref.upperBound.to_s.sub("-1","*"))]) end |