Class: Lutaml::Qea::Models::EaObjectType
- Defined in:
- lib/lutaml/qea/models/ea_object_type.rb
Overview
Represents an object type definition from t_objecttypes table
This table provides reference data for object/class types available in EA. These define what kinds of UML elements can be created.
Class Method Summary collapse
-
.primary_key_column ⇒ Object
Primary key is Object_Type (text).
- .table_name ⇒ Object
Instance Method Summary collapse
-
#actor_type? ⇒ Boolean
Check if this is an Actor type.
-
#class_type? ⇒ Boolean
Check if this is a Class type.
-
#design_object? ⇒ Boolean
Check if this is a design object.
-
#interface_type? ⇒ Boolean
Check if this is an Interface type.
-
#name ⇒ String
Friendly name for object type.
-
#package_type? ⇒ Boolean
Check if this is a Package type.
Methods inherited from BaseModel
Class Method Details
.primary_key_column ⇒ Object
Primary key is Object_Type (text)
27 28 29 |
# File 'lib/lutaml/qea/models/ea_object_type.rb', line 27 def self.primary_key_column "Object_Type" end |
.table_name ⇒ Object
22 23 24 |
# File 'lib/lutaml/qea/models/ea_object_type.rb', line 22 def self.table_name "t_objecttypes" end |
Instance Method Details
#actor_type? ⇒ Boolean
Check if this is an Actor type
67 68 69 |
# File 'lib/lutaml/qea/models/ea_object_type.rb', line 67 def actor_type? object_type == "Actor" end |
#class_type? ⇒ Boolean
Check if this is a Class type
49 50 51 |
# File 'lib/lutaml/qea/models/ea_object_type.rb', line 49 def class_type? object_type == "Class" end |
#design_object? ⇒ Boolean
Check if this is a design object
39 40 41 |
# File 'lib/lutaml/qea/models/ea_object_type.rb', line 39 def design_object? designobject == 1 end |
#interface_type? ⇒ Boolean
Check if this is an Interface type
55 56 57 |
# File 'lib/lutaml/qea/models/ea_object_type.rb', line 55 def interface_type? object_type == "Interface" end |
#name ⇒ String
Friendly name for object type
33 34 35 |
# File 'lib/lutaml/qea/models/ea_object_type.rb', line 33 def name object_type end |
#package_type? ⇒ Boolean
Check if this is a Package type
61 62 63 |
# File 'lib/lutaml/qea/models/ea_object_type.rb', line 61 def package_type? object_type == "Package" end |