aboutsummaryrefslogtreecommitdiffstats
path: root/lib/orber/doc/src/CosNaming_NamingContextExt.xml
blob: 2af3deaddaf33daecad90ef5f4413867d393ff79 (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
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">

<erlref>
  <header>
    <copyright>
      <year>2000</year><year>2017</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>CosNaming_NamingContextExt</title>
    <prepared></prepared>
    <docno></docno>
    <checked></checked>
    <date>2000-08-16</date>
    <rev>A</rev>
  </header>
  <module>CosNaming_NamingContextExt</module>
  <modulesummary>This interface contains operation for converting a Name sequence to a string and back.</modulesummary>
  <description>
    <p>To get access to the record definitions for the structures use:      <br></br>
</p>
    <code type="erl">
-include_lib("orber/COSS/CosNaming/CosNaming.hrl").
    </code>
    <p>This module also exports the functions described in:</p>
    <list type="bulleted">
      <item>
        <p><seealso marker="CosNaming_NamingContext">CosNaming_NamingContext</seealso></p>
      </item>
    </list>
  </description>
  <funcs>
    <func>
      <name>to_string(NamingContext, Name) -> Return</name>
      <fsummary>Stringify a <c>Name</c>sequence to a string</fsummary>
      <type>
        <v>NameContext = #objref</v>
        <v>Name = [NameComponent]</v>
        <v>Return = string() | {'EXCEPTION', NamingContext::InvalidName{}}</v>
      </type>
      <desc>
        <p>Stringifies a <c>Name</c> sequence to a string.</p>
      </desc>
    </func>
    <func>
      <name>to_name(NamingContext, NameString) -> Return</name>
      <fsummary>Convert a stringified <c>Name</c>to a <c>Name</c>sequence</fsummary>
      <type>
        <v>NameContext = #objref</v>
        <v>NameString = string()</v>
        <v>Return = [NameComponent] | {'EXCEPTION', NamingContext::InvalidName{}}</v>
      </type>
      <desc>
        <p>Converts a stringified <c>Name</c> to a <c>Name</c> sequence.</p>
      </desc>
    </func>
    <func>
      <name>to_url(NamingContext, AddressString, NameString) -> Return</name>
      <fsummary>Return an URL string constructed from the given Address and Name strings</fsummary>
      <type>
        <v>NameContext = #objref</v>
        <v>Address = NameString = string()</v>
        <v>Return =  URLString |  {'EXCEPTION', NamingContext::InvalidName{}} |  {'EXCEPTION', NamingContextExt::InvalidAddress{}}</v>
      </type>
      <desc>
        <p>This operation takes a <c>corbaloc</c> string and a stringified <c>Name</c>
          sequence as input and returns a fully formed URL string.</p>
      </desc>
    </func>
    <func>
      <name>resolve_str(NamingContext, NameString) -> Return</name>
      <fsummary>Return the object associated, if any, with the given name string</fsummary>
      <type>
        <v>NameContext = #objref</v>
        <v>NameString = string()</v>
        <v>Return =  #objref |  {'EXCEPTION', NamingContext::InvalidName{}} |  {'EXCEPTION', NamingContext::NotFound{why, rest_of_name}} | {'EXCEPTION', NamingContext::CannotProceed{cxt, rest_of_name}}</v>
      </type>
      <desc>
        <p>This operation takes a stringified <c>Name</c> sequence as input and
          returns the associated, if any, object.</p>
      </desc>
    </func>
  </funcs>
  
</erlref>