aboutsummaryrefslogtreecommitdiffstats
path: root/lib/orber/doc/src/corba_object.xml
blob: 37b0dc9fd0bd505113724e23d7b5247231387358 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">

<erlref>
  <header>
    <copyright>
      <year>1997</year>
      <year>2013</year>
      <holder>Ericsson AB, All Rights Reserved</holder>
    </copyright>
    <legalnotice>
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
 
      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

  The Initial Developer of the Original Code is Ericsson AB.
    </legalnotice>

    <title>corba_object</title>
    <prepared></prepared>
    <responsible></responsible>
    <docno></docno>
    <approved></approved>
    <checked></checked>
    <date>1997-11-10</date>
    <rev>A</rev>
  </header>
  <module>corba_object</module>
  <modulesummary>The CORBA Object interface functions</modulesummary>
  <description>
    <p>This module contains the CORBA Object interface functions that can be 
      called for all objects.</p>
  </description>
  <funcs>
    <func>
      <name>get_interface(Object) -> InterfaceDef</name>
      <fsummary>Fetch the interface description</fsummary>
      <type>
        <v>Object = #objref</v>
        <v>InterfaceDef = term()</v>
      </type>
      <desc>
        <p>This function returns the full interface description for an object.</p>
      </desc>
    </func>
    <func>
      <name>is_nil(Object) -> boolean()</name>
      <fsummary>Return true, if the given object is a NIL object reference, otherwise false</fsummary>
      <type>
        <v>Object = #objref</v>
      </type>
      <desc>
        <p>This function checks if the object reference has a nil object value,
          which denotes no object. It is the reference that is tested and no 
          object implementation is involved in the test. </p>
      </desc>
    </func>
    <func>
      <name>is_a(Object, Logical_type_id) -> Return</name>
      <name>is_a(Object, Logical_type_id, Contexts) -> Return</name>
      <fsummary>Return true if the target object is an, or inherit from, object of the given type</fsummary>
      <type>
        <v>Object = #objref</v>
        <v>Logical_type_id = string()</v>
        <v>Contexts = [Context]</v>
        <v>Context = #'IOP_ServiceContext'{context_id = CtxId, context_data = CtxData}</v>
        <v>CtxId = ?ORBER_GENERIC_CTX_ID</v>
        <v>CtxData = {interface, Interface} | {userspecific, term()} | {configuration, Options}</v>
        <v>Interface = string()</v>
        <v>Options = [{Key, Value}]</v>
        <v>Key = ssl_client_options</v>
        <v>Value = allowed value associated with the given key</v>
        <v>Return = boolean() | {'EXCEPTION', E}</v>
      </type>
      <desc>
        <p>The <em>Logical_type_id</em> is a string that is a share type
          identifier (repository id). The function returns true if the object
          is an instance of that type or an ancestor of the "most derived"
          type of that object.</p>
        <p>The <em>configuration</em> context is used to override the global
           SSL client side 
           <seealso marker="ch_install#config">configuration</seealso>.</p>
        <p>Note: Other ORB suppliers may not support this function completely
          according to the OMG specification. Thus, a <em>is_a</em> call may
          raise an exception or respond unpredictable if the Object is
          located on a remote node.</p>
      </desc>
    </func>
    <func>
      <name>is_remote(Object) -> boolean()</name>
      <fsummary>Determine whether or not an object reference is remote</fsummary>
      <type>
        <v>Object = #objref</v>
      </type>
      <desc>
        <p>This function returns true if an object reference is remote 
          otherwise false. </p>
      </desc>
    </func>
    <func>
      <name>non_existent(Object) -> Return</name>
      <name>non_existent(Object, Contexts) -> Return</name>
      <fsummary>Return false if the target object do not exist, otherwise true</fsummary>
      <type>
        <v>Object = #objref</v>
        <v>Contexts = [Context]</v>
        <v>Context = #'IOP_ServiceContext'{context_id = CtxId, context_data = CtxData}</v>
        <v>CtxId = ?ORBER_GENERIC_CTX_ID</v>
        <v>CtxData = {interface, Interface} | {userspecific, term()} | {configuration, Options}</v>
        <v>Interface = string()</v>
        <v>Options = [{Key, Value}]</v>
        <v>Key = ssl_client_options</v>
        <v>Value = allowed value associated with the given key</v>
        <v>Return = boolean() | {'EXCEPTION', E}</v>
      </type>
      <desc>
        <p>This function can be used to test if the object has been destroyed. 
          It does this without invoking any application level code. The ORB 
          returns true if it knows that the object is destroyed otherwise 
          false.</p>
        <p>The <em>configuration</em> context is used to override the global
           SSL client side 
           <seealso marker="ch_install#config">configuration</seealso>.</p>
        <p>Note: The OMG have specified two different operators, <c>_not_existent</c> (CORBA version 2.0 and 2.2) and 
          <c>_non_existent</c> (CORBA version 2.3), to be used for this function. It is not mandatory to support
          both versions. Thus, a <em>non_existent</em> call may raise an exception or respond unpredictable 
          if the Object is located on a remote node. Depending on which version, ORB:s you intend to
          communicate with supports, you can either use this function or <c>not_existent/1</c>.</p>
      </desc>
    </func>
    <func>
      <name>not_existent(Object) -> Return</name>
      <name>not_existent(Object, Contexts) -> Return</name>
      <fsummary>Return false if the target object do not exist, otherwise true</fsummary>
      <type>
        <v>Object = #objref</v>
        <v>Contexts = [Context]</v>
        <v>Context = #'IOP_ServiceContext'{context_id = CtxId, context_data = CtxData}</v>
        <v>CtxId = ?ORBER_GENERIC_CTX_ID</v>
        <v>CtxData = {interface, Interface} | {userspecific, term()} | {configuration, Options}</v>
        <v>Interface = string()</v>
        <v>Options = [{Key, Value}]</v>
        <v>Key = ssl_client_options</v>
        <v>Value = allowed value associated with the given key</v>
        <v>Return = boolean() | {'EXCEPTION', E}</v>
      </type>
      <desc>
        <p>This function is implemented due to Interoperable purposes. Behaves as
          <c>non_existent</c> except the operator <c>_not_existent</c> is used when
          communicating with other ORB:s.</p>
        <p>The <em>configuration</em> context is used to override the global
           SSL client side 
           <seealso marker="ch_install#config">configuration</seealso>.</p>
      </desc>
    </func>
    <func>
      <name>is_equivalent(Object, OtherObject) -> boolean()</name>
      <fsummary>Return true if the target object and the supplied object easily can be determined to be equal, otherwise false</fsummary>
      <type>
        <v>Object = #objref</v>
        <v>OtherObject = #objref</v>
      </type>
      <desc>
        <p>This function is used to determine if two object references are 
          equivalent so far the ORB easily can determine. It returns 
          <em>true</em> if the target object reference is equal to the 
          other object reference and <em>false</em> otherwise.</p>
      </desc>
    </func>
    <func>
      <name>hash(Object, Maximum) -> int()</name>
      <fsummary>Return a hash value based on the target object</fsummary>
      <type>
        <v>Object = #objref</v>
        <v>Maximum = int()</v>
      </type>
      <desc>
        <p>This function returns a hash value based on the object reference 
          that not will change during the lifetime of the object. 
          The <em>Maximum</em> parameter denotes the upper bound of the value.</p>
      </desc>
    </func>
  </funcs>
  
</erlref>