001 /***** Copyright (c) 1999 Object Management Group. Unlimited rights to
002 duplicate and use this code are hereby granted provided that this
003 copyright notice is included.
004 *****/
005
006 package org.omg.CORBA.portable;
007
008 public abstract class Delegate {
009
010 /**
011 *@deprecated Deprecated by CORBA 2.3
012 */
013 public org.omg.CORBA.InterfaceDef get_interface(
014 org.omg.CORBA.Object self) {
015 throw new org.omg.CORBA.NO_IMPLEMENT();
016 }
017
018 public org.omg.CORBA.Object get_interface_def(org.omg.CORBA.Object self) {
019 throw new org.omg.CORBA.NO_IMPLEMENT();
020 }
021
022 public abstract org.omg.CORBA.Object duplicate(org.omg.CORBA.Object self);
023
024 public abstract void release(org.omg.CORBA.Object self);
025
026 public abstract boolean is_a(org.omg.CORBA.Object self,
027 String repository_id);
028
029 public abstract boolean non_existent(org.omg.CORBA.Object self);
030
031 public abstract boolean is_equivalent(org.omg.CORBA.Object self,
032 org.omg.CORBA.Object rhs);
033
034 public abstract int hash(org.omg.CORBA.Object self, int max);
035
036 public abstract org.omg.CORBA.Request create_request(
037 org.omg.CORBA.Object self,
038 org.omg.CORBA.Context ctx,
039 String operation,
040 org.omg.CORBA.NVList arg_list,
041 org.omg.CORBA.NamedValue result);
042
043 public abstract org.omg.CORBA.Request create_request(
044 org.omg.CORBA.Object self,
045 org.omg.CORBA.Context ctx,
046 String operation,
047 org.omg.CORBA.NVList arg_list,
048 org.omg.CORBA.NamedValue result,
049 org.omg.CORBA.ExceptionList exclist,
050 org.omg.CORBA.ContextList ctxlist);
051
052 public abstract org.omg.CORBA.Request request(
053 org.omg.CORBA.Object self,
054 String operation);
055
056 public org.omg.CORBA.portable.OutputStream request(
057 org.omg.CORBA.Object self,
058 String operation,
059 boolean responseExpected) {
060 throw new org.omg.CORBA.NO_IMPLEMENT();
061 }
062
063 public org.omg.CORBA.portable.InputStream invoke(org.omg.CORBA.Object self,
064 org.omg.CORBA.portable.OutputStream os)
065 throws ApplicationException, RemarshalException {
066 throw new org.omg.CORBA.NO_IMPLEMENT();
067 }
068
069 public void releaseReply(org.omg.CORBA.Object self,
070 org.omg.CORBA.portable.InputStream is) {
071 throw new org.omg.CORBA.NO_IMPLEMENT();
072 }
073
074 public org.omg.CORBA.Policy get_policy(org.omg.CORBA.Object self,
075 int policy_type) {
076 throw new org.omg.CORBA.NO_IMPLEMENT();
077 }
078
079 public org.omg.CORBA.DomainManager[] get_domain_managers(
080 org.omg.CORBA.Object self) {
081 throw new org.omg.CORBA.NO_IMPLEMENT();
082 }
083
084
085 public org.omg.CORBA.Object set_policy_override(org.omg.CORBA.Object self,
086 org.omg.CORBA.Policy[] policies,
087 org.omg.CORBA.SetOverrideType set_add) {
088 throw new org.omg.CORBA.NO_IMPLEMENT();
089 }
090
091 public org.omg.CORBA.ORB orb(org.omg.CORBA.Object self) {
092 throw new org.omg.CORBA.NO_IMPLEMENT();
093 }
094
095
096 public boolean is_local(org.omg.CORBA.Object self) {
097 return false;
098 }
099
100 public ServantObject servant_preinvoke(org.omg.CORBA.Object self,
101 String operation, Class expectedType) {
102 return null;
103 }
104
105 public void servant_postinvoke(org.omg.CORBA.Object self,
106 ServantObject servant) {
107 }
108
109 public String toString(org.omg.CORBA.Object self) {
110 return self.getClass().getName() + ":" + this.toString();
111 }
112
113 public int hashCode(org.omg.CORBA.Object self) {
114 return System.identityHashCode(self);
115 }
116
117 public boolean equals(org.omg.CORBA.Object self, java.lang.Object obj) {
118 return (self == obj);
119 }
120 }