Module: Xmi::Sparx::SparxRootAttributes

Included in:
SparxRoot, SparxRoot2013
Defined in:
lib/xmi/sparx.rb

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object

rubocop:disable Metrics/MethodLength



969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
# File 'lib/xmi/sparx.rb', line 969

def self.included(klass) # rubocop:disable Metrics/MethodLength
  klass.class_eval do
    attribute :publication_date, SparxCustomProfilePublicationDate
    attribute :edition, SparxCustomProfileEdition
    attribute :number, SparxCustomProfileNumber
    attribute :year_version, SparxCustomProfileYearVersion
    attribute :modelica_parameter, SparxSysPhS

    attribute :eauml_import, EaRoot::Eauml::Import, collection: true
    attribute :gml_application_schema, EaRoot::Gml::ApplicationSchema, collection: true
    attribute :gml_code_list, EaRoot::Gml::CodeList, collection: true
    attribute :gml_data_type, EaRoot::Gml::CodeList, collection: true
    attribute :gml_union, EaRoot::Gml::CodeList, collection: true
    attribute :gml_enumeration, EaRoot::Gml::CodeList, collection: true
    attribute :gml_type, EaRoot::Gml::CodeList, collection: true
    attribute :gml_feature_type, EaRoot::Gml::CodeList, collection: true
    attribute :gml_property, EaRoot::Gml::Property, collection: true
  end
end