View Javadoc

1   /*
2    * $Id: IHierarchicalRepository.java,v 1.1 2008/10/07 13:09:20 oeuillot Exp $
3    * 
4    */
5   package org.rcfaces.core.internal.repository;
6   
7   import java.util.Collection;
8   
9   /**
10   * 
11   * @author Olivier Oeuillot (latest modification by $Author: oeuillot $)
12   * @version $Revision: 1.1 $ $Date: 2008/10/07 13:09:20 $
13   */
14  public interface IHierarchicalRepository extends IRepository {
15  
16      int FILE_COLLECTION_TYPE = 0;
17  
18      int FILENAME_COLLECTION_TYPE = 1;
19  
20      IHierarchicalFile[] computeFiles(Collection collection,
21              int typeOfCollection, IContext context);
22  
23      IModule[] listModules();
24  
25      IModule getModuleByName(String name);
26  
27      ISet[] listSets();
28  
29      ISet getBootSet();
30  
31      ISet getSetByName(String bootSet);
32  
33      void setBootSet(ISet set);
34  
35      ISet declareSet(String name, String uri, String[] moduleNames);
36  
37      ISet declareSet(String name, String uri, IModule[] modules);
38  
39      /**
40       * 
41       * @author Olivier Oeuillot (latest modification by $Author: oeuillot $)
42       * @version $Revision: 1.1 $ $Date: 2008/10/07 13:09:20 $
43       */
44      public interface IHierarchicalFile extends IFile {
45  
46          IHierarchicalFile[] listDependencies();
47  
48          IModule getModule();
49      }
50  
51      /**
52       * 
53       * @author Olivier Oeuillot (latest modification by $Author: oeuillot $)
54       * @version $Revision: 1.1 $ $Date: 2008/10/07 13:09:20 $
55       */
56      public interface ISet extends IHierarchicalFile {
57          IHierarchicalFile[] listExternalDependencies();
58      }
59  
60      /**
61       * 
62       * @author Olivier Oeuillot (latest modification by $Author: oeuillot $)
63       * @version $Revision: 1.1 $ $Date: 2008/10/07 13:09:20 $
64       */
65      public interface IModule extends IHierarchicalFile {
66          boolean getGroupAllFiles();
67  
68          void setGroupAllFiles(boolean enable);
69  
70          boolean isDefaultCoreModule();
71  
72          void setDefaultCoreModule();
73  
74          IHierarchicalFile[] listExternalDependencies();
75  
76          IModule[] listExternalModules();
77  
78          ISet getSet();
79      }
80  }