KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > Containers > MetaInformation > InstanceImpl


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

28
29 package org.objectweb.openccm.Containers.MetaInformation;
30
31 import org.omg.CORBA.Object JavaDoc;
32
33
34
35 /**
36  * @author hameau
37  */

38 public class InstanceImpl
39 extends org.omg.CORBA.LocalObject JavaDoc
40 implements Instance
41 {
42   private Type _type_reference;
43   private Object JavaDoc _object_ref;
44   private instance_kind _instance_kind;
45   private Instance _instance_ref;
46
47   /* (non-Javadoc)
48    * @see org.objectweb.openccm.Containers.MetaInformation.InstanceOperations#type_reference()
49    */

50   public Type type_reference()
51   {
52     return _type_reference;
53   }
54
55   /* (non-Javadoc)
56    * @see org.objectweb.openccm.Containers.MetaInformation.InstanceOperations#type_reference(org.objectweb.openccm.Containers.MetaInformation.Type)
57    */

58   public void type_reference(Type value)
59   {
60    // System.err.println("### DEBUG : instance type ref -> " + value);
61
_type_reference = value;
62   }
63
64   /* (non-Javadoc)
65    * @see org.objectweb.openccm.Containers.MetaInformation.InstanceOperations#object_ref()
66    */

67   public Object JavaDoc object_ref()
68   {
69     return _object_ref;
70   }
71
72   /* (non-Javadoc)
73    * @see org.objectweb.openccm.Containers.MetaInformation.InstanceOperations#object_ref(org.omg.CORBA.Object)
74    */

75   public void object_ref(Object JavaDoc value)
76   {
77     _object_ref = value;
78   }
79
80   /* (non-Javadoc)
81    * @see org.objectweb.openccm.Containers.MetaInformation.InstanceOperations#related_instance_kind()
82    */

83   public instance_kind related_instance_kind()
84   {
85     return _instance_kind;
86   }
87
88   /* (non-Javadoc)
89    * @see org.objectweb.openccm.Containers.MetaInformation.InstanceOperations#related_instance_kind(org.objectweb.openccm.Containers.MetaInformation.instance_kind)
90    */

91   public void related_instance_kind(instance_kind value)
92   {
93     _instance_kind = value;
94   }
95
96   /* (non-Javadoc)
97    * @see org.objectweb.openccm.Containers.MetaInformation.InstanceOperations#instance_reference()
98    */

99   public Instance instance_reference()
100   {
101      return _instance_ref;
102   }
103
104   /* (non-Javadoc)
105    * @see org.objectweb.openccm.Containers.MetaInformation.InstanceOperations#instance_reference(org.objectweb.openccm.Containers.MetaInformation.Instance)
106    */

107   public void instance_reference(Instance value)
108   {
109     _instance_ref = value;
110   }
111
112     
113 }
114
Popular Tags