Sha256: 122c9366012578b10b404336542156f4dbf49813afec2727813746f724bfa3f8

Contents?: true

Size: 1.13 KB

Versions: 232

Compression:

Stored size: 1.13 KB

Contents

module UML13EA
  class << self
    attr_accessor :idStore
  end
  module ModelElement::ClassModule
    def qualifiedName
      _name = (respond_to?(:_name) ? self._name : name) || "unnamed"
      _namespace = respond_to?(:_namespace) ? self._namespace : namespace
      _namespace && _namespace.qualifiedName ? _namespace.qualifiedName+"::"+_name : _name
    end
  end
  module XmiIdProvider::ClassModule
    def _xmi_id
      UML13EA.idStore.idHash[qualifiedName] ||= "EAID_"+object_id.to_s
    end
  end
  module Package::ClassModule
    def _xmi_id
      UML13EA.idStore.idHash[qualifiedName] ||= "EAPK_"+object_id.to_s
    end
  end
  module Generalization::ClassModule
    def _name
      "#{subtype.name}_#{supertype.name}"
    end
  end
  module Association::ClassModule
    def _name
      connection.collect{|c| "#{c.getType.name}_#{c.name}"}.sort.join("_")
    end
  end
  module AssociationEnd::ClassModule
    def _name
      "#{getType.name}_#{name}"
    end
    def _namespace
      association
    end
  end
  module StateVertex::ClassModule
    def _namespace
      container
    end
  end
end

Version data entries

232 entries across 232 versions & 3 rubygems

Version Path
rgen-0.9.1 ./lib/ea_support/uml13_ea_metamodel_ext.rb
rgen-0.8.3 lib/ea_support/uml13_ea_metamodel_ext.rb
rgen-0.8.4 lib/ea_support/uml13_ea_metamodel_ext.rb
rgen-0.9.0 lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-retrospec-1.8.0 vendor/pup410/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.10.12 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.10.12-x86-mingw32 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.10.12-x64-mingw32 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.10.12-universal-darwin lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.10.11 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.10.11-x86-mingw32 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.10.11-x64-mingw32 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.10.11-universal-darwin lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.10.10 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.10.10-x86-mingw32 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.10.10-x64-mingw32 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.10.10-universal-darwin lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-retrospec-1.6.1 vendor/pup410/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-retrospec-1.6.0 vendor/pup410/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb