Class: Expressir::Model::Declarations::SubtypeConstraint
- Inherits:
-
Expressir::Model::Declaration
- Object
- ModelElement
- Expressir::Model::Declaration
- Expressir::Model::Declarations::SubtypeConstraint
- Includes:
- Identifier
- Defined in:
- lib/expressir/model/declarations/subtype_constraint.rb
Overview
Specified in ISO 10303-11:2004
-
section 9.7 Subtype constraints
Instance Attribute Summary collapse
- #abstract ⇒ Boolean
- #applies_to ⇒ Reference
- #supertype_expression ⇒ SupertypeExpression
- #total_over ⇒ Array<Reference>
Attributes included from Identifier
#id, #remark_items, #remarks, #source
Attributes inherited from ModelElement
Instance Method Summary collapse
- #children ⇒ Array<Declaration>
-
#initialize(options = {}) ⇒ SubtypeConstraint
constructor
A new instance of SubtypeConstraint.
Methods inherited from ModelElement
#children_by_id, #find, from_hash, model_attr_accessor, model_attrs, #path, #reset_children_by_id, #to_hash, #to_liquid, #to_s
Constructor Details
#initialize(options = {}) ⇒ SubtypeConstraint
Returns a new instance of SubtypeConstraint.
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/expressir/model/declarations/subtype_constraint.rb', line 20 def initialize( = {}) initialize_identifier() @applies_to = [:applies_to] @abstract = [:abstract] @total_over = [:total_over] || [] @supertype_expression = [:supertype_expression] super end |
Instance Attribute Details
#abstract ⇒ Boolean
10 |
# File 'lib/expressir/model/declarations/subtype_constraint.rb', line 10 model_attr_accessor :abstract, "Boolean" |
#applies_to ⇒ Reference
9 |
# File 'lib/expressir/model/declarations/subtype_constraint.rb', line 9 model_attr_accessor :applies_to, "Reference" |
#supertype_expression ⇒ SupertypeExpression
12 |
# File 'lib/expressir/model/declarations/subtype_constraint.rb', line 12 model_attr_accessor :supertype_expression, "SupertypeExpression" |
#total_over ⇒ Array<Reference>
11 |
# File 'lib/expressir/model/declarations/subtype_constraint.rb', line 11 model_attr_accessor :total_over, "Array<Reference>" |
Instance Method Details
#children ⇒ Array<Declaration>
32 33 34 35 36 |
# File 'lib/expressir/model/declarations/subtype_constraint.rb', line 32 def children [ *remark_items, ] end |