Module: Xmi::Uml::PackagedElementAttributes

Included in:
PackagedElement, PackagedElement2013
Defined in:
lib/xmi/uml.rb

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



342
343
344
345
346
347
348
349
350
351
352
353
354
355
# File 'lib/xmi/uml.rb', line 342

def self.included(klass)
  klass.class_eval do
    attribute :type, Shale::Type::String
    attribute :id, Shale::Type::String
    attribute :name, Shale::Type::String
    attribute :member_end, MemberEnd
    attribute :owned_literal, OwnedLiteral, collection: true
    attribute :owned_operation, OwnedOperation, collection: true

    # EA specific
    attribute :supplier, Shale::Type::String
    attribute :client, Shale::Type::String
  end
end