KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > portable > Delegate


1 /***** Copyright (c) 1999 Object Management Group. Unlimited rights to
2        duplicate and use this code are hereby granted provided that this
3        copyright notice is included.
4 *****/

5
6 package org.omg.CORBA.portable;
7
8 public abstract class Delegate {
9
10     /**
11     *@deprecated Deprecated by CORBA 2.3
12     */

13     public abstract org.omg.CORBA.InterfaceDef JavaDoc get_interface(
14                 org.omg.CORBA.Object JavaDoc self);
15
16     public org.omg.CORBA.Object JavaDoc get_interface_def(org.omg.CORBA.Object JavaDoc self) {
17         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
18     }
19
20     public abstract org.omg.CORBA.Object JavaDoc duplicate(org.omg.CORBA.Object JavaDoc self);
21
22     public abstract void release(org.omg.CORBA.Object JavaDoc self);
23
24     public abstract boolean is_a(org.omg.CORBA.Object JavaDoc self,
25                 String JavaDoc repository_id);
26
27     public abstract boolean non_existent(org.omg.CORBA.Object JavaDoc self);
28
29     public abstract boolean is_equivalent(org.omg.CORBA.Object JavaDoc self,
30                 org.omg.CORBA.Object JavaDoc rhs);
31
32     public abstract int hash(org.omg.CORBA.Object JavaDoc self, int max);
33
34     public abstract org.omg.CORBA.Request JavaDoc create_request(
35                 org.omg.CORBA.Object JavaDoc self,
36                 org.omg.CORBA.Context JavaDoc ctx,
37                 String JavaDoc operation,
38                 org.omg.CORBA.NVList JavaDoc arg_list,
39                 org.omg.CORBA.NamedValue JavaDoc result);
40
41     public abstract org.omg.CORBA.Request JavaDoc create_request(
42                 org.omg.CORBA.Object JavaDoc self,
43                 org.omg.CORBA.Context JavaDoc ctx,
44                 String JavaDoc operation,
45                 org.omg.CORBA.NVList JavaDoc arg_list,
46                 org.omg.CORBA.NamedValue JavaDoc result,
47                 org.omg.CORBA.ExceptionList JavaDoc exclist,
48                 org.omg.CORBA.ContextList JavaDoc ctxlist);
49
50     public abstract org.omg.CORBA.Request JavaDoc request(
51                 org.omg.CORBA.Object JavaDoc self,
52                 String JavaDoc operation);
53
54     public org.omg.CORBA.portable.OutputStream JavaDoc request(
55                 org.omg.CORBA.Object JavaDoc self,
56                 String JavaDoc operation,
57                 boolean responseExpected) {
58         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
59     }
60
61     public org.omg.CORBA.portable.InputStream JavaDoc invoke(org.omg.CORBA.Object JavaDoc self,
62                 org.omg.CORBA.portable.OutputStream JavaDoc os)
63                 throws ApplicationException JavaDoc, RemarshalException JavaDoc {
64         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
65     }
66
67     public void releaseReply(org.omg.CORBA.Object JavaDoc self,
68                 org.omg.CORBA.portable.InputStream JavaDoc is) {
69         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
70     }
71
72     public org.omg.CORBA.Policy JavaDoc get_policy(org.omg.CORBA.Object JavaDoc self,
73                 int policy_type) {
74         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
75     }
76
77     public org.omg.CORBA.DomainManager JavaDoc[] get_domain_managers(
78                 org.omg.CORBA.Object JavaDoc self) {
79         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
80     }
81
82
83     public org.omg.CORBA.Object JavaDoc set_policy_override(org.omg.CORBA.Object JavaDoc self,
84                 org.omg.CORBA.Policy JavaDoc[] policies,
85                 org.omg.CORBA.SetOverrideType JavaDoc set_add) {
86         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
87     }
88
89     public org.omg.CORBA.ORB JavaDoc orb(org.omg.CORBA.Object JavaDoc self) {
90         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
91     }
92
93
94     public boolean is_local(org.omg.CORBA.Object JavaDoc self) {
95         return false;
96     }
97
98     public ServantObject JavaDoc servant_preinvoke(org.omg.CORBA.Object JavaDoc self,
99                 String JavaDoc operation, Class JavaDoc expectedType) {
100         return null;
101     }
102
103     public void servant_postinvoke(org.omg.CORBA.Object JavaDoc self,
104                 ServantObject JavaDoc servant) {
105     }
106
107     public String JavaDoc toString(org.omg.CORBA.Object JavaDoc self) {
108         return self.getClass().getName() + ":" + this.toString();
109     }
110
111     public int hashCode(org.omg.CORBA.Object JavaDoc self) {
112         return System.identityHashCode(self);
113     }
114
115     public boolean equals(org.omg.CORBA.Object JavaDoc self, java.lang.Object JavaDoc obj) {
116         return (self == obj);
117     }
118 }
119
Popular Tags