Module: Xmi::Uml::ProfileAttributes

Included in:
Profile
Defined in:
lib/xmi/uml.rb

Overview

TODO: add attributes xmlns:uml and xmlns:xmi

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



508
509
510
511
512
513
514
515
516
517
518
519
520
521
# File 'lib/xmi/uml.rb', line 508

def self.included(klass)
  klass.class_eval do
    attribute :packaged_element, PackagedElement, collection: true
    attribute :package_import, PackageImport, collection: true
    attribute :id, Shale::Type::String
    attribute :name, Shale::Type::String
    # attribute :xmi, Shale::Type::String
    # attribute :uml, Shale::Type::String
    attribute :ns_prefix, Shale::Type::String

    # Is this an EA thing?
    attribute :metamodel_reference, Shale::Type::String
  end
end