class UML13EAToUML13

Public Instance Methods

cleanModel() click to toggle source
# File lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_to_uml13.rb, line 17
def cleanModel
  @env_out.find(:class => UML13::ModelElement).each do |me|
    me.taggedValue = []
  end
end
copyAssociationEnd() click to toggle source
# File lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_to_uml13.rb, line 43
def copyAssociationEnd
  copy_features :except => [:isOrdered, :changeable] do
    {:ordering => isOrdered ? :ordered : :unordered,
     :changeability => {:none => :frozen}[changeable] || changeable,
     :aggregation => {:shared => :aggregate}[aggregation] || aggregation,
     :multiplicity => UML13::Multiplicity.new(
      :range => [UML13::MultiplicityRange.new(
        :lower => multiplicity && multiplicity.split("..").first,
        :upper => multiplicity && multiplicity.split("..").last)])}
  end
end
transform() click to toggle source
# File lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_to_uml13.rb, line 8
def transform
  trans(:class => Package)
  trans(:class => Class)
  @env_out.find(:class => UML13::Attribute).each do |me|
    # remove tagged vales internally used by EA which have been converted to UML

    me.taggedValue = me.taggedValue.reject{|tv| ["lowerBound", "upperBound"].include?(tv.tag)}
  end
end