Class: UML13ToUML13EA
- Inherits:
-
RGen::Transformer
- Object
- RGen::Transformer
- UML13ToUML13EA
- Includes:
- UML13
- Defined in:
- lib/ea_support/uml13_to_uml13_ea.rb
Constant Summary
Constants included from UML13
UML13::AggregationKind, UML13::CallConcurrencyKind, UML13::ChangeableKind, UML13::MessageDirectionKind, UML13::OperationDirectionKind, UML13::OrderingKind, UML13::ParameterDirectionKind, UML13::PseudostateKind, UML13::ScopeKind, UML13::VisibilityKind
Constants included from RGen::MetamodelBuilder::DataTypes
RGen::MetamodelBuilder::DataTypes::Boolean, RGen::MetamodelBuilder::DataTypes::Long
Instance Method Summary collapse
Methods included from RGen::MetamodelBuilder::ModuleExtension
#_annotations, #_constantOrder, #annotation, extended, #final_method, #method_added
Methods included from RGen::ECore::ECoreInterface
#_set_ecore_internal, 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
#copyAssociationEnd ⇒ Object
66 67 68 69 70 71 72 73 74 |
# File 'lib/ea_support/uml13_to_uml13_ea.rb', line 66 def copyAssociationEnd _lower = multiplicity && multiplicity.range.first.lower _upper = multiplicity && multiplicity.range.first.upper copy_features :except => [:multiplicity, :ordering, :changeability] do { :multiplicity => _lower == _upper ? _lower : "#{_lower}..#{_upper}", :isOrdered => ordering == :ordered, :changeable => :none } #{:frozen => :none}[changeability] || changeability} end end |