Class: Lutaml::Uml::DataType
- Inherits:
-
Classifier
- Object
- TopElement
- Classifier
- Lutaml::Uml::DataType
- Includes:
- HasMembers
- Defined in:
- lib/lutaml/uml/data_type.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#associations ⇒ Object
Returns the value of attribute associations.
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#constraints ⇒ Object
Returns the value of attribute constraints.
-
#data_types ⇒ Object
Returns the value of attribute data_types.
-
#is_abstract ⇒ Object
Returns the value of attribute is_abstract.
-
#members ⇒ Object
readonly
Returns the value of attribute members.
-
#modifier ⇒ Object
Returns the value of attribute modifier.
-
#nested_classifier ⇒ Object
Returns the value of attribute nested_classifier.
-
#operations ⇒ Object
Returns the value of attribute operations.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Classifier
Attributes inherited from TopElement
#comments, #definition, #href, #keyword, #name, #namespace, #stereotype, #visibility, #xmi_id, #xmi_uuid
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ DataType
constructor
A new instance of DataType.
- #methods ⇒ Object
- #relationships ⇒ Object
Methods included from HasMembers
Methods inherited from TopElement
Methods included from HasAttributes
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
#associations ⇒ Object
Returns the value of attribute associations.
14 15 16 |
# File 'lib/lutaml/uml/data_type.rb', line 14 def associations @associations end |
#attributes ⇒ Object
Returns the value of attribute attributes.
14 15 16 |
# File 'lib/lutaml/uml/data_type.rb', line 14 def attributes @attributes end |
#constraints ⇒ Object
Returns the value of attribute constraints.
14 15 16 |
# File 'lib/lutaml/uml/data_type.rb', line 14 def constraints @constraints end |
#data_types ⇒ Object
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_abstract ⇒ Object
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 |
#members ⇒ Object (readonly)
Returns the value of attribute members.
14 15 16 |
# File 'lib/lutaml/uml/data_type.rb', line 14 def members @members end |
#modifier ⇒ Object
Returns the value of attribute modifier.
14 15 16 |
# File 'lib/lutaml/uml/data_type.rb', line 14 def modifier @modifier end |
#nested_classifier ⇒ Object
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 |
#operations ⇒ Object
Returns the value of attribute operations.
14 15 16 |
# File 'lib/lutaml/uml/data_type.rb', line 14 def operations @operations end |
#type ⇒ Object
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
#methods ⇒ Object
65 66 67 68 |
# File 'lib/lutaml/uml/data_type.rb', line 65 def methods # @members&.select { |member| member.class == Method } [] end |
#relationships ⇒ Object
70 71 72 73 |
# File 'lib/lutaml/uml/data_type.rb', line 70 def relationships # @members&.select { |member| member.class == ClassRelationship } [] end |