Class: Lutaml::Uml::DataType

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

Direct Known Subclasses

PrimitiveType

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 = {}) ⇒ DataType

Returns a new instance of DataType.



21
22
23
24
25
26
27
28
# File 'lib/lutaml/uml/data_type.rb', line 21

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

Instance Attribute Details

#associationsObject

Returns the value of attribute associations.



13
14
15
# File 'lib/lutaml/uml/data_type.rb', line 13

def associations
  @associations
end

#attributesObject

Returns the value of attribute attributes.



13
14
15
# File 'lib/lutaml/uml/data_type.rb', line 13

def attributes
  @attributes
end

#constraintsObject

Returns the value of attribute constraints.



13
14
15
# File 'lib/lutaml/uml/data_type.rb', line 13

def constraints
  @constraints
end

#data_typesObject

Returns the value of attribute data_types.



13
14
15
# File 'lib/lutaml/uml/data_type.rb', line 13

def data_types
  @data_types
end

#is_abstractObject

Returns the value of attribute is_abstract.



9
10
11
# File 'lib/lutaml/uml/data_type.rb', line 9

def is_abstract
  @is_abstract
end

#membersObject (readonly)

Returns the value of attribute members.



13
14
15
# File 'lib/lutaml/uml/data_type.rb', line 13

def members
  @members
end

#modifierObject

Returns the value of attribute modifier.



13
14
15
# File 'lib/lutaml/uml/data_type.rb', line 13

def modifier
  @modifier
end

#nested_classifierObject

Returns the value of attribute nested_classifier.



9
10
11
# File 'lib/lutaml/uml/data_type.rb', line 9

def nested_classifier
  @nested_classifier
end

#operationsObject

Returns the value of attribute operations.



13
14
15
# File 'lib/lutaml/uml/data_type.rb', line 13

def operations
  @operations
end

#typeObject

Returns the value of attribute type.



9
10
11
# File 'lib/lutaml/uml/data_type.rb', line 9

def type
  @type
end

Instance Method Details

#methodsObject



64
65
66
67
# File 'lib/lutaml/uml/data_type.rb', line 64

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

#relationshipsObject



69
70
71
72
# File 'lib/lutaml/uml/data_type.rb', line 69

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