Sha256: 972955cd7b54b4ea5536f055e11325f48a0c80bc51d27e1b67fc3b51b551fe84

Contents?: true

Size: 1.33 KB

Versions: 28

Compression:

Stored size: 1.33 KB

Contents

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

module Cxxproject

  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 => ""
    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

28 entries across 28 versions & 1 rubygems

Version Path
bake-toolkit-1.8.0.1 lib/bakery/model/metamodel.rb
bake-toolkit-1.7.0 lib/bakery/model/metamodel.rb
bake-toolkit-1.6.3 lib/bakery/model/metamodel.rb
bake-toolkit-1.6.2 lib/bakery/model/metamodel.rb
bake-toolkit-1.6.1 lib/bakery/model/metamodel.rb
bake-toolkit-1.6.0 lib/bakery/model/metamodel.rb
bake-toolkit-1.5.0 lib/bakery/model/metamodel.rb
bake-toolkit-1.4.0 lib/bakery/model/metamodel.rb
bake-toolkit-1.3.0 lib/bakery/model/metamodel.rb
bake-toolkit-1.2.1 lib/bakery/model/metamodel.rb
bake-toolkit-1.2.0 lib/bakery/model/metamodel.rb
bake-toolkit-1.1.0 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.27 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.26 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.25 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.24 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.23 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.22 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.21 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.20 lib/bakery/model/metamodel.rb