Sha256: 3800f30e138838bd937f93b0f15f03f5c99d21733fcd94ddbe9d12eb417c5169

Contents?: true

Size: 1.19 KB

Versions: 171

Compression:

Stored size: 1.19 KB

Contents

module Expressir
  module Model
    module Declarations
      # Specified in ISO 10303-11:2004
      # - section 9.7 Subtype constraints
      class SubtypeConstraint < Declaration
        include Identifier

        model_attr_accessor :applies_to, 'Reference'
        model_attr_accessor :abstract, 'Boolean'
        model_attr_accessor :total_over, 'Array<Reference>'
        model_attr_accessor :supertype_expression, 'SupertypeExpression'

        # @param [Hash] options
        # @option (see Identifier#initialize_identifier)
        # @option options [Reference] :applies_to
        # @option options [Boolean] :abstract
        # @option options [Array<Reference>] :total_over
        # @option options [SupertypeExpression] :supertype_expression
        def initialize(options = {})
          initialize_identifier(options)

          @applies_to = options[:applies_to]
          @abstract = options[:abstract]
          @total_over = options[:total_over] || []
          @supertype_expression = options[:supertype_expression]

          super
        end

        # @return [Array<Declaration>]
        def children
          [
            *remark_items
          ]
        end
      end
    end
  end
end

Version data entries

171 entries across 171 versions & 1 rubygems

Version Path
expressir-1.3.2-x86_64-darwin lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.2-x64-mingw32 lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.2-x64-mingw-ucrt lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.2-arm64-darwin lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.2-aarch64-linux-gnu lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.1 lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.1-x86_64-linux-gnu lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.1-x86_64-darwin lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.1-x64-mingw32 lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.1-x64-mingw-ucrt lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.1-arm64-darwin lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.1-aarch64-linux-gnu lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.0 lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.0-x86_64-linux-gnu lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.0-x86_64-darwin lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.0-x64-mingw32 lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.0-x64-mingw-ucrt lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.0-arm64-darwin lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.0-aarch64-linux-gnu lib/expressir/model/declarations/subtype_constraint.rb
expressir-1.3.0.pre.5 lib/expressir/model/declarations/subtype_constraint.rb