001: /***** Copyright (c) 2000 Object Management Group. Unlimited rights to
002: duplicate and use this code are hereby granted provided that this
003: copyright notice is included.
004: *****/package org.omg.CORBA;
005:
006: import org.omg.CORBA.portable.*;
007:
008: public abstract class LocalObject implements org.omg.CORBA.Object {
009: public LocalObject() {
010: }
011:
012: public boolean _is_equivalent(org.omg.CORBA.Object that) {
013: return equals(that);
014: }
015:
016: public boolean _non_existent() {
017: return false;
018: }
019:
020: public int _hash(int maximum) {
021: return hashCode();
022: }
023:
024: public String[] _ids() {
025: throw new NO_IMPLEMENT();
026: }
027:
028: public boolean _is_a(String repositoryId) {
029: String ids[] = _ids();
030: for (int i = 0; i < ids.length; i++) {
031: if (repositoryId.equals(ids[i]))
032: return true;
033: }
034:
035: return false;
036: }
037:
038: public org.omg.CORBA.Object _duplicate() {
039: throw new org.omg.CORBA.NO_IMPLEMENT();
040: }
041:
042: public void _release() {
043: throw new org.omg.CORBA.NO_IMPLEMENT();
044: }
045:
046: public Request _request(String operation) {
047: throw new org.omg.CORBA.NO_IMPLEMENT();
048: }
049:
050: public org.omg.CORBA.Object _get_component() {
051: // There is an inconsistency between CORBA 3.0 spec. and 'IDL to Java
052: // mapping' spec. The former says that the operation should return
053: // the exception with minor code 8. But the latter suggests to return
054: // a default instance of NO_IMPLEMENT exception which conveys minor code 0.
055: // Which on to follow?
056: //throw new org.omg.CORBA.NO_IMPLEMENT(8, org.omg.CORBA.CompletionStatus.COMPLETED_NO);
057: throw new org.omg.CORBA.NO_IMPLEMENT();
058: }
059:
060: public Request _create_request(Context ctx, String operation,
061: NVList arg_list, NamedValue result) {
062: throw new org.omg.CORBA.NO_IMPLEMENT();
063: }
064:
065: public Request _create_request(Context ctx, String operation,
066: NVList arg_list, NamedValue result,
067: ExceptionList exceptions, ContextList contexts) {
068: throw new org.omg.CORBA.NO_IMPLEMENT();
069: }
070:
071: /**
072: *@deprecated Deprecated by CORBA 2.3.
073: */
074: public org.omg.CORBA.InterfaceDef _get_interface() {
075: throw new org.omg.CORBA.NO_IMPLEMENT();
076: }
077:
078: public org.omg.CORBA.Object _get_interface_def() {
079: throw new org.omg.CORBA.NO_IMPLEMENT();
080: }
081:
082: public org.omg.CORBA.ORB _orb() {
083: throw new org.omg.CORBA.NO_IMPLEMENT();
084: }
085:
086: public org.omg.CORBA.Policy _get_policy(int policy_type) {
087: throw new org.omg.CORBA.NO_IMPLEMENT();
088: }
089:
090: public org.omg.CORBA.DomainManager[] _get_domain_managers() {
091: throw new org.omg.CORBA.NO_IMPLEMENT();
092: }
093:
094: public org.omg.CORBA.Object _set_policy_override(
095: org.omg.CORBA.Policy[] policies,
096: org.omg.CORBA.SetOverrideType set_add) {
097: throw new org.omg.CORBA.NO_IMPLEMENT();
098: }
099:
100: public boolean _is_local() {
101: throw new org.omg.CORBA.NO_IMPLEMENT();
102: }
103:
104: public org.omg.CORBA.portable.ServantObject _servant_preinvoke(
105: String operation, Class expectedType) {
106: throw new org.omg.CORBA.NO_IMPLEMENT();
107: }
108:
109: public void _servant_postinvoke(
110: org.omg.CORBA.portable.ServantObject servant) {
111: throw new org.omg.CORBA.NO_IMPLEMENT();
112: }
113:
114: public org.omg.CORBA.portable.OutputStream _request(
115: String operation, boolean responseExpected) {
116: throw new org.omg.CORBA.NO_IMPLEMENT();
117: }
118:
119: public org.omg.CORBA.portable.InputStream _invoke(
120: org.omg.CORBA.portable.OutputStream output)
121: throws org.omg.CORBA.portable.ApplicationException,
122: org.omg.CORBA.portable.RemarshalException {
123: throw new org.omg.CORBA.NO_IMPLEMENT();
124: }
125:
126: public void _releaseReply(org.omg.CORBA.portable.InputStream input) {
127: throw new org.omg.CORBA.NO_IMPLEMENT();
128: }
129:
130: public boolean validate_connection() {
131: throw new org.omg.CORBA.NO_IMPLEMENT();
132: }
133: }
|