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.



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

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

Instance Attribute Details

#associationsObject

Returns the value of attribute associations.



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

def associations
  @associations
end

#attributesObject

Returns the value of attribute attributes.



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

def attributes
  @attributes
end

#constraintsObject

Returns the value of attribute constraints.



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

def constraints
  @constraints
end

#data_typesObject

Returns the value of attribute data_types.



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

def data_types
  @data_types
end

#is_abstractObject

Returns the value of attribute is_abstract.



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

def is_abstract
  @is_abstract
end

#membersObject (readonly)

Returns the value of attribute members.



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

def members
  @members
end

#modifierObject

Returns the value of attribute modifier.



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

def modifier
  @modifier
end

#nested_classifierObject

Returns the value of attribute nested_classifier.



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

def nested_classifier
  @nested_classifier
end

#operationsObject

Returns the value of attribute operations.



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

def operations
  @operations
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Instance Method Details

#methodsObject



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

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

#relationshipsObject



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

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