Module: Xmi::Sparx::SparxExtensionAttributes

Included in:
SparxExtension, SparxExtension2013
Defined in:
lib/xmi/sparx.rb

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object

rubocop:disable Metrics/MethodLength



785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
# File 'lib/xmi/sparx.rb', line 785

def self.included(klass) # rubocop:disable Metrics/MethodLength
  klass.class_eval do
    attribute :id, Shale::Type::String
    attribute :label, Shale::Type::String
    attribute :uuid, Shale::Type::String
    attribute :href, Shale::Type::String
    attribute :idref, Shale::Type::String
    attribute :type, Shale::Type::String
    attribute :extender, Shale::Type::String
    attribute :extender_id, Shale::Type::String
    attribute :elements, SparxElements
    attribute :connectors, SparxConnectors
    attribute :primitive_types, SparxPrimitiveTypes
    attribute :diagrams, SparxDiagrams
  end
end