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
puppet-retrospec-1.3.1 vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.3 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.3-x86-mingw32 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.3-x64-mingw32 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.3-universal-darwin lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.2 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.2-x86-mingw32 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.2-x64-mingw32 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.2-universal-darwin lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.1 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.1-x86-mingw32 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.1-x64-mingw32 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.1-universal-darwin lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-retrospec-1.3.0 vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.0 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.0-x86-mingw32 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.0-x64-mingw32 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.9.0-universal-darwin lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.8.2 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb
puppet-4.8.2-x86-mingw32 lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb