Class: MergeAssociationEnd
- Defined in:
- lib/xmimerge/merge_associations_end.rb
Instance Method Summary collapse
-
#initialize(name, from_association_end, to_association_end) ⇒ MergeAssociationEnd
constructor
A new instance of MergeAssociationEnd.
- #verify ⇒ Object
Methods inherited from Merge
#check, #check_change_propertie, #merge
Constructor Details
#initialize(name, from_association_end, to_association_end) ⇒ MergeAssociationEnd
Returns a new instance of MergeAssociationEnd.
10 11 12 13 14 15 |
# File 'lib/xmimerge/merge_associations_end.rb', line 10 def initialize(name, from_association_end, to_association_end) super() @name = name @from_association_end = from_association_end @to_association_end = to_association_end end |
Instance Method Details
#verify ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/xmimerge/merge_associations_end.rb', line 17 def verify # Visibility check_change_propertie("visibility", @from_association_end, @to_association_end, "AssociationVisibility") # IsNavegable check_change_propertie("is_navigable", @from_association_end, @to_association_end, "AssociationIsNavegable") # Initial Value check_change_propertie("is_specification", @from_association_end, @to_association_end, "AssociationIsSpecification") # Ordering check_change_propertie("ordering", @from_association_end, @to_association_end, "AssociationOrdering") # Aggregation check_change_propertie("aggregation", @from_association_end, @to_association_end, "AssociationAggregation") # Initial Value check_change_propertie("target_scope", @from_association_end, @to_association_end, "AssociationTargetScope") # Changeability check_change_propertie("changeability", @from_association_end, @to_association_end, "AssociationChangeability") # Multiplicity merge = MergeMultiplicity.new("Attribute", @from_association_end, @to_association_end) @only_check ? merge.check : merge.merge # Stereotypes merge = MergeStereotypes.new("Association", @from_association_end, @to_association_end) @only_check ? merge.check : merge.merge # TaggedValues t = MergeTaggedValues.new("Association", @from_association_end, @to_association_end) @only_check ? t.check : t.merge # TODO # Type Modifier # Scope # Documentation end |