Class: Lutaml::Uml::Class

Inherits:
Classifier show all
Includes:
HasMembers
Defined in:
lib/lutaml/uml/class.rb

Direct Known Subclasses

SysMl::Block, Sysml::Requirement, Behavior

Instance Attribute Summary collapse

Attributes inherited from Classifier

#generalization

Attributes inherited from TopElement

#comments, #definition, #href, #keyword, #name, #namespace, #stereotype, #visibility, #xmi_id, #xmi_uuid

Instance Method Summary collapse

Methods included from HasMembers

#members=

Methods inherited from TopElement

#full_name

Methods included from HasAttributes

#update_attributes

Constructor Details

#initialize(attributes = {}) ⇒ Class

Returns a new instance of Class.



30
31
32
33
34
35
36
# File 'lib/lutaml/uml/class.rb', line 30

def initialize(attributes = {})
  @nested_classifier = []
  @stereotype = []
  @generalization = []
  @is_abstract = false
  super
end

Instance Attribute Details

#associationsObject

Returns the value of attribute associations.



22
23
24
# File 'lib/lutaml/uml/class.rb', line 22

def associations
  @associations
end

#attributesObject

Returns the value of attribute attributes.



22
23
24
# File 'lib/lutaml/uml/class.rb', line 22

def attributes
  @attributes
end

#constraintsObject

Returns the value of attribute constraints.



22
23
24
# File 'lib/lutaml/uml/class.rb', line 22

def constraints
  @constraints
end

#data_typesObject

Returns the value of attribute data_types.



22
23
24
# File 'lib/lutaml/uml/class.rb', line 22

def data_types
  @data_types
end

#is_abstractObject

Returns the value of attribute is_abstract.



17
18
19
# File 'lib/lutaml/uml/class.rb', line 17

def is_abstract
  @is_abstract
end

#membersObject (readonly)

Returns the value of attribute members.



22
23
24
# File 'lib/lutaml/uml/class.rb', line 22

def members
  @members
end

#modifierObject

Returns the value of attribute modifier.



22
23
24
# File 'lib/lutaml/uml/class.rb', line 22

def modifier
  @modifier
end

#nested_classifierObject

Returns the value of attribute nested_classifier.



17
18
19
# File 'lib/lutaml/uml/class.rb', line 17

def nested_classifier
  @nested_classifier
end

#operationsObject

Returns the value of attribute operations.



22
23
24
# File 'lib/lutaml/uml/class.rb', line 22

def operations
  @operations
end

#packageObject

Returns the value of attribute package.



17
18
19
# File 'lib/lutaml/uml/class.rb', line 17

def package
  @package
end

#typeObject

Returns the value of attribute type.



17
18
19
# File 'lib/lutaml/uml/class.rb', line 17

def type
  @type
end

Instance Method Details

#methodsObject



72
73
74
75
# File 'lib/lutaml/uml/class.rb', line 72

def methods
  # @members&.select { |member| member.class == Method }
  []
end

#relationshipsObject



77
78
79
80
# File 'lib/lutaml/uml/class.rb', line 77

def relationships
  # @members&.select { |member| member.class == ClassRelationship }
  []
end