KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > Connector > EEG > EEM > Elements > CNInterfaceGen


1 /*
2  * CNInterfaceGen.java
3  *
4  * Created on 13. duben 2002, 21:08
5  */

6
7 package SOFA.Connector.EEG.EEM.Elements;
8
9 import SOFA.Connector.EEG.CodeWriter.JWriterDirectorException;
10 import SOFA.Connector.EEG.EEM.Actions.JIfaceCN;
11 import SOFA.Connector.EEG.EEM.Actions.JIfaceWriterDirectorBase;
12 import SOFA.SOFAnode.Made.TIR.OperationDef;
13
14 /**
15  *
16  * @author ghort
17  * @version
18  */

19 public class CNInterfaceGen extends JIfaceWriterDirectorBase {
20
21     /** Creates new CNInterfaceGen */
22     public CNInterfaceGen(String JavaDoc ifaceCDL, SOFA.Connector.Property[] params) {
23         super(ifaceCDL,params);
24     }
25
26     public String JavaDoc getMethod(OperationDef method) throws JWriterDirectorException {
27         return JIfaceCN.getMethodDef(method);
28     }
29
30         public String JavaDoc getInterfaceBody() throws JWriterDirectorException {
31           return
32                 "\torg.objectweb.fractal.api.Type getFcItfType() ;\n"+
33                 "\tboolean isFcInternalItf() ;\n"+
34                 "\tString getFcItfName() ;\n"+
35                 "\torg.objectweb.fractal.api.Component getFcItfOwner() ;\n\n";
36         }
37      
38 }
39
Popular Tags