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



834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
# File 'lib/xmi/sparx.rb', line 834

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