KickJava   Java API By Example, From Geeks To Geeks.

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


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 package org.objectweb.modfact.corba.helper;
21
22 import org.omg.CORBA.TypeCodePackage.BadKind JavaDoc;
23 import org.omg.mof.Model.ModelElement;
24 import org.omg.mof.Reflective.MofError;
25 import org.omg.mof.Reflective.NotSet;
26
27 /**
28  *
29  */

30 public interface IDLCommon {
31     
32     
33     /**
34      * Format 1
35      */

36     public String JavaDoc format1(String JavaDoc input);
37
38     /**
39      * Format 1 (with the first letter in lower case)
40      */

41     public String JavaDoc format1FirstMin(String JavaDoc input);
42
43     /**
44      * Format 2
45      */

46     public String JavaDoc format2(String JavaDoc input);
47     
48     /**
49      * Format 3
50      */

51     public String JavaDoc format3(String JavaDoc input);
52     
53     /**
54      * Format 2 - Prevention of IDL conflicts
55      */

56     public String JavaDoc format2IdlConflict(String JavaDoc input);
57     
58     /**
59      * QualfiedName
60      */

61     public String JavaDoc qualifiedName(ModelElement modelElement) throws MofError , NotSet;
62     
63     
64     public String JavaDoc className(org.omg.mof.Model.Class clazz)
65         throws NotSet, MofError;
66     
67     /**
68      *
69      */

70     //public String idlPrefix(String idlPrefix);
71

72     /**
73      * return true if the TypeCode represents a base type (i.e. not a struct, enum, alias, sequence
74      */

75     public boolean isBaseType(org.omg.CORBA.TypeCode JavaDoc _typecode)
76         throws BadKind JavaDoc, org.omg.CORBA.TypeCodePackage.Bounds JavaDoc;
77     
78 }
79
Popular Tags