KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnet > TR > TRInterface


1 /*
2  * TRInterface.java
3  *
4  * Created on 19. b°ezen 2004, 16:28
5  */

6
7 package SOFA.SOFAnet.TR;
8
9 import SOFA.SOFAnode.InOut.Bundle;
10 import SOFA.SOFAnode.TR.ComponentInfo;
11 import SOFA.SOFAnode.TR.TRException;
12
13 /**
14  * Interface of Template Repository (TR).
15  *
16  * @author Ladislav Sobr
17  */

18 public interface TRInterface
19 {
20   /** Stores components from the bundle in the TR. */
21   void storeBundle(Bundle bundle) throws TRException;
22   
23   /** Creates bundle of components from TR */
24   Bundle getBundle(ComponentInfo[] descs, ComponentInfo[] comps, boolean inferiors) throws TRException;
25   
26   /** Returns true if TR contains specified component (disregarding presence of real implementation of component*/
27   boolean contains(ComponentInfo descr);
28
29   /** Returns true if TR contains specified component including implementation files */
30   boolean containsComponent(ComponentInfo comp, boolean inferiors);
31
32   /** Returns list of components in TR */
33   Bundle list();
34   
35   /** Deletes components from tr */
36   void deleteComponents(ComponentInfo[] comps, boolean interfaces, boolean inferiors) throws TRException;
37
38   /** Stores components from the bundle in the TR. */
39   void storeMemoryBundle(byte[] memoryBundle) throws TRException;
40
41   /** Creates bundle of components from TR */
42   byte[] getMemoryBundle(ComponentInfo[] descs, ComponentInfo[] comps, boolean inferiors) throws TRException;
43 }
44
Popular Tags