KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > ir3 > IDLType_ref


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): Philippe Merle.
23 Contributor(s): Mathieu Vadet, Christophe Demarey.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.ir3;
28
29 // Package dependencies
30
import org.omg.CORBA.TypeCode JavaDoc;
31 import org.omg.CORBA.IDLType JavaDoc;
32
33 /**
34  * Implementation of the CORBA::IDLType reference.
35  *
36  * @author <a HREF="mailto:Philippe.Merle@lifl.fr">Philippe Merle</a>
37  * <a HREF="mailto:Mathieu.Vadet@lifl.fr">Mathieu Vadet</a>
38  *
39  * @version 0.4
40  */

41
42 public class IDLType_ref
43      extends IRObject_ref
44 {
45     // ==================================================================
46
//
47
// Internal state.
48
//
49
// ==================================================================
50

51     // ==================================================================
52
//
53
// Constructors.
54
//
55
// ==================================================================
56

57     /**
58      * TODO.
59      */

60     public
61     IDLType_ref(IRObject_impl owner)
62     {
63         // Calls the IRObject_ref constructor.
64
super(owner);
65     }
66
67     /**
68      * TODO.
69      */

70     public
71     IDLType_ref(IRObject_impl owner,
72                 IRObject_impl object)
73     {
74         // Calls the IRObject_ref constructor.
75
super(owner, object);
76     }
77
78     // ==================================================================
79
//
80
// Public methods.
81
//
82
// ==================================================================
83

84     /**
85      * Obtain its CORBA::TypeCode.
86      * TODO : remove -> replaced by next one for recursive typecodes management
87      */

88 /**
89     public TypeCode
90     getTypeCode()
91     {
92         if (impl_ == null) return null;
93         return impl_.type();
94     }
95  */

96
97     /**
98      * Obtains its CORBA::TypeCode.
99      */

100     public TypeCode JavaDoc
101     recursiveType(java.util.List JavaDoc idSeq)
102     {
103         if (getTarget() == null) return null;
104         return getBaseImpl().recursiveType(idSeq);
105     }
106
107     /**
108      * Obtains its CORBA::TypeCode.
109      */

110     public TypeCode JavaDoc
111     recursiveType()
112     {
113         if (getTarget() == null) return null;
114         return getBaseImpl().type();
115     }
116
117     /**
118      * Obtains its CORBA::IDLType reference.
119      */

120     public IDLType JavaDoc
121     asIDLType()
122     {
123         if (getTarget() == null) return null;
124         return getBaseImpl().asIDLType();
125     }
126 }
127
Popular Tags