KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > generator > translator > idl2java > api > IDL_JavaTranslator


1 /*====================================================================
2
3 OpenCCM: The Open CORBA Component Model Platform
4 Copyright (C) 2000-2004 INRIA & USTL - LIFL - GOAL
5 Contact: openccm@objectweb.org
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 USA
21
22 Initial developer(s): Christophe Demarey.
23 Contributor(s): ______________________________________.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.generator.translator.idl2java.api;
28
29 // Package dependencies.
30
import org.objectweb.openccm.generator.java.ast.api.MethodObject;
31 import org.objectweb.openccm.generator.java.ast.api.ClassObject;
32
33 /**
34  * This interface translates some IDL declarations to their java mapping.
35  *
36  * @author <a HREF="mailto:Christophe.Demarey@lifl.fr">Christophe Demarey</a>
37  *
38  * @version 0.1
39  */

40
41 public interface IDL_JavaTranslator
42          extends org.objectweb.openccm.generator.translator.idl2java.api.CommonTranslator
43 {
44     /**
45      * Map an IDL operation.
46      *
47      * @param op - The operation to map.
48      *
49      * @return The MethodObject binding to this operation.
50      **/

51     public MethodObject
52     map_operation(org.objectweb.openccm.ast.api.OperationDecl op);
53
54     /**
55      * Map an IDL attribute to an accessor operation.
56      *
57      * @param att - The attribute to map.
58      *
59      * @return The MethodObject binding to this operation.
60      **/

61     public MethodObject
62     map_attribute_accessor(org.objectweb.openccm.ast.api.AttributeDecl att);
63
64     /**
65      * Map an IDL attribute to a mutator operation.
66      *
67      * @param att - The attribute to map.
68      *
69      * @return The MethodObject binding to this operation.
70      **/

71     public MethodObject
72     map_attribute_mutator(org.objectweb.openccm.ast.api.AttributeDecl att);
73
74     /**
75      * Map a parameter list for a method.
76      *
77      * @param method - Add parameters mapping to this method.
78      * @param list - The parameter list to map.
79      **/

80     public void
81     map_parameters(MethodObject method,
82                    org.objectweb.openccm.ast.api.ParameterList list);
83
84     /**
85      * Map an exeception list for a method.
86      *
87      * @param method - Add exceptions mapping to this method.
88      * @param list - The exception list to map.
89      **/

90     public void
91     map_exceptions(MethodObject method,
92                    org.objectweb.openccm.ast.api.ExceptionList list);
93
94     /**
95      * Generate operations mapping for an interface.
96      *
97      * @param clazz - Add methods to the segment class.
98      **/

99     public void
100     mapInterfaceOps(ClassObject clazz,
101                     org.objectweb.openccm.ast.api.InterfaceDecl itf);
102 }
103
Popular Tags