OSDN Git Service

fix:error dlg
[pettanr/pettanr.git] / lib / manifest / item.rb
1 ManifestBase.require_modules "manifest/item/", 
2   %w|base item owner system_resource template content root element binder leaf|
3
4 module Manifest
5   class ItemFactory < ManifestBase::Factory
6     include ItemModule
7     
8     def self.types
9       {
10         'item' => ItemPeta, 'owner' => OwnerPeta, 
11         'system_resource' => SystemResourcePeta, 'template' => TemplatePeta, 
12         'content' => ContentPeta, 
13         'root' => RootPeta, 'element' => ElementPeta, 
14         'binder' => BinderPeta, 'leaf' => LeafPeta
15       }
16     end
17     
18     def self.default_type
19       'item'
20     end
21     
22   end
23 end
24