Module: Xmi::Sparx::SparxExtensionAttributes

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

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object

rubocop:disable Metrics/MethodLength



812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
# File 'lib/xmi/sparx.rb', line 812

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
    attribute :ea_stub, SparxEAStub, collection: true
  end
end