KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > modfact > corba > helper > JavaCommon


1 /**
2  * copyright 2002 2003 Laboratoire d'Informatique Paris 6 (LIP6)
3  *
4  * This file is part of ModFact.
5  *
6  * ModFact is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * at your option) any later version.
10  *
11  * ModFact is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with ModFact; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */

20
21 package org.objectweb.modfact.corba.helper;
22
23 import org.omg.CORBA.TypeCodePackage.BadKind JavaDoc;
24 import org.omg.CORBA.TypeCodePackage.Bounds JavaDoc;
25 import org.omg.mof.Model.Classifier;
26 import org.omg.mof.Model.ModelElement;
27 import org.omg.mof.Model.MofAttribute;
28 import org.omg.mof.Model.Operation;
29 import org.omg.mof.Model.Reference;
30 import org.omg.mof.Reflective.MofError;
31 import org.omg.mof.Reflective.NotSet;
32
33 /**
34  * @author Xavier Blanc
35  */

36 public interface JavaCommon extends IDLCommon {
37
38     /**
39      * Return the string prefixed by a '_' if a Java conflict exists
40      */

41     public String JavaDoc testJavaConflict(String JavaDoc _input);
42         
43     /**
44      * Return the format1 of string but preserving the naming conflicts
45      */

46     public String JavaDoc format1Idl2JavaConflict(String JavaDoc _input);
47     
48     /**
49      * Return the format2 of string but preserving the naming conflicts
50      */

51     public String JavaDoc format2Idl2JavaConflict(String JavaDoc _input);
52
53     /**
54      * Return the java qualified name of a model element
55      */

56     public String JavaDoc javaQualifiedName(ModelElement element)
57         throws MofError, NotSet;
58
59     /**
60      * Return the java class name of a class
61      */

62     public String JavaDoc javaClassName(org.omg.mof.Model.Class clazz)
63         throws NotSet, MofError;
64
65     /**
66      * Return the java classifier name of a classifier
67      */

68     public String JavaDoc javaClassifierName(org.omg.mof.Model.Classifier clazz)
69         throws NotSet, MofError;
70
71     /**
72      * Return the java type corresponding to the classifier
73      */

74     public String JavaDoc javaType(Classifier classifier)
75         throws MofError, BadKind JavaDoc, Bounds JavaDoc, NotSet;
76
77     /**
78      * Return the name of the package
79      */

80     public String JavaDoc javaPackage(org.omg.mof.Model.Package _package)
81         throws MofError;
82
83     /**
84      * Return the string for an attribute
85      */

86     public String JavaDoc attributeTemplate(MofAttribute _attribute)
87         throws MofError, BadKind JavaDoc, Bounds JavaDoc, NotSet;
88
89     /**
90      * Return the Java string for a reference
91      */

92     public String JavaDoc referenceTemplate(Reference _reference)
93         throws MofError, NotSet;
94
95     /**
96      * Return the Java string for an operation
97      */

98     public String JavaDoc operationTemplate(Operation _operation)
99         throws MofError, BadKind JavaDoc, Bounds JavaDoc, NotSet;
100
101     /**
102      * Return the Java string for BaseObject
103      */

104     public String JavaDoc refBaseObjectTemplate();
105
106     /**
107      * Return the Java string for Object
108      */

109     public String JavaDoc refObjectTemplate();
110
111     /**
112      * Return the Java string for Association
113      */

114     public String JavaDoc refAssociationTemplate();
115
116     /**
117      * Return the Java string for package
118      */

119     public String JavaDoc refPackageTemplate();
120
121     /**
122      * Invers prefix for Java Impl
123      */

124     public String JavaDoc idlPrefix2Java(String JavaDoc prefix);
125
126 }
127
Popular Tags