Sha256: 5ecded65194f81cf545d1d50aba2fe8026338c5004c7f3c88904f2f340f4e91f

Contents?: true

Size: 1.38 KB

Versions: 42

Compression:

Stored size: 1.38 KB

Contents

require 'rgen/metamodel_builder'
require 'rgen/metamodel_builder/data_types'

module Bake

  module BakeryModel
    extend RGen::MetamodelBuilder::ModuleExtension

    class ModelElement < RGen::MetamodelBuilder::MMBase
      abstract
      has_attr 'line_number', Integer do
        annotation :details => {'internal' => 'true'}
      end
      has_attr 'file_name', String do
        annotation :details => {'internal' => 'true'}
      end
    end

    class Project < ModelElement
      has_attr 'name', String, :defaultValueLiteral => ""
      has_attr 'config', String, :defaultValueLiteral => ""
      has_attr 'args', String, :defaultValueLiteral => ""
    end
    class Exclude < ModelElement
      has_attr 'name', String, :defaultValueLiteral => ""
      has_attr 'config', String, :defaultValueLiteral => ""
    end
    class SubCollection < ModelElement
      has_attr 'name', String, :defaultValueLiteral => ""
    end
    class Collection < ModelElement
      has_attr 'name', String, :defaultValueLiteral => ""
      contains_many 'project', Project, 'collection'
      contains_many 'exclude', Exclude, 'collection'
      contains_many 'collections', SubCollection, 'collection'
    end

    module Project::ClassModule
      def isFound
        @isFound ||= false
      end
      def found
        @isFound = true
      end
    end

  end

end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
bake-toolkit-2.66.0 lib/bakery/model/metamodel.rb
bake-toolkit-2.65.2 lib/bakery/model/metamodel.rb
bake-toolkit-2.65.1 lib/bakery/model/metamodel.rb
bake-toolkit-2.65.0 lib/bakery/model/metamodel.rb
bake-toolkit-2.64.4 lib/bakery/model/metamodel.rb
bake-toolkit-2.64.3 lib/bakery/model/metamodel.rb
bake-toolkit-2.64.2 lib/bakery/model/metamodel.rb
bake-toolkit-2.64.1 lib/bakery/model/metamodel.rb
bake-toolkit-2.64.0 lib/bakery/model/metamodel.rb
bake-toolkit-2.63.2 lib/bakery/model/metamodel.rb
bake-toolkit-2.63.1 lib/bakery/model/metamodel.rb
bake-toolkit-2.63.0 lib/bakery/model/metamodel.rb
bake-toolkit-2.62.0 lib/bakery/model/metamodel.rb
bake-toolkit-2.61.0 lib/bakery/model/metamodel.rb
bake-toolkit-2.60.2 lib/bakery/model/metamodel.rb
bake-toolkit-2.60.0 lib/bakery/model/metamodel.rb
bake-toolkit-2.59.0 lib/bakery/model/metamodel.rb
bake-toolkit-2.58.0 lib/bakery/model/metamodel.rb
bake-toolkit-2.57.0 lib/bakery/model/metamodel.rb
bake-toolkit-2.56.0 lib/bakery/model/metamodel.rb