~rdoering/ubuntu/karmic/erlang/fix-535090

« back to all changes in this revision

Viewing changes to lib/cosProperty/doc/src/CosPropertyService_PropertySet.xml

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090215164252-q5x4rcf8a5pbesb1
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="latin1" ?>
 
2
<!DOCTYPE erlref SYSTEM "erlref.dtd">
 
3
 
 
4
<erlref>
 
5
  <header>
 
6
    <copyright>
 
7
      <year>2000</year>
 
8
      <year>2007</year>
 
9
      <holder>Ericsson AB, All Rights Reserved</holder>
 
10
    </copyright>
 
11
    <legalnotice>
 
12
  The contents of this file are subject to the Erlang Public License,
 
13
  Version 1.1, (the "License"); you may not use this file except in
 
14
  compliance with the License. You should have received a copy of the
 
15
  Erlang Public License along with this software. If not, it can be
 
16
  retrieved online at http://www.erlang.org/.
 
17
 
 
18
  Software distributed under the License is distributed on an "AS IS"
 
19
  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
20
  the License for the specific language governing rights and limitations
 
21
  under the License.
 
22
 
 
23
  The Initial Developer of the Original Code is Ericsson AB.
 
24
    </legalnotice>
 
25
 
 
26
    <title>CosPropertyService_&shy;PropertySet</title>
 
27
    <shorttitle>..._PropertySet</shorttitle>
 
28
    <prepared>Niclas Eklund</prepared>
 
29
    <responsible>Niclas Eklund</responsible>
 
30
    <docno></docno>
 
31
    <approved>Niclas Eklund</approved>
 
32
    <checked></checked>
 
33
    <date>2000-07-25</date>
 
34
    <rev>1.0</rev>
 
35
  </header>
 
36
  <module>CosPropertyService_PropertySet</module>
 
37
  <modulesummary>This module implements the OMG CosPropertyService::PropertySet interface.</modulesummary>
 
38
  <description>
 
39
    <p>To get access to the record definitions for the structures use:      <br></br>
 
40
<c>-include_lib("cosProperty/include/CosPropertyService.hrl").</c></p>
 
41
  </description>
 
42
  <funcs>
 
43
    <func>
 
44
      <name>define_property(PropertySet, Name, Value) -> Reply</name>
 
45
      <fsummary>Add a new property to the target object</fsummary>
 
46
      <type>
 
47
        <v>PropertySet = #objref</v>
 
48
        <v>Name = non-empty string()</v>
 
49
        <v>Value = #any</v>
 
50
        <v>Reply = ok | {'EXCEPTION', #CosPropertyService_InvalidPropertyName{}} | {'EXCEPTION', #CosPropertyService_ConflictingProperty{}} | {'EXCEPTION', #CosPropertyService_UnsupportedTypeCode{}} | {'EXCEPTION', #CosPropertyService_UnsupportedProperty{}} | {'EXCEPTION', #CosPropertyService_ReadOnlyProperty{}}</v>
 
51
      </type>
 
52
      <desc>
 
53
        <p>This operation adds a new property to the given object. Depending on
 
54
          which initial arguments was supplied when starting the object several
 
55
          exceptions may be raised.</p>
 
56
      </desc>
 
57
    </func>
 
58
    <func>
 
59
      <name>define_properties(PropertySet, Properties) -> Reply</name>
 
60
      <fsummary>Add new properties to the target object</fsummary>
 
61
      <type>
 
62
        <v>PropertySet = #objref</v>
 
63
        <v>Properties = [#'CosPropertyService_Property'{property_name = Name, property_value = Value}]</v>
 
64
        <v>Name = string()</v>
 
65
        <v>Value = #any</v>
 
66
        <v>Reply = ok | {'EXCEPTION', #CosPropertyService_MultipleExceptions{exceptions = Excs}}</v>
 
67
        <v>Excs = [#'CosPropertyService_PropertyException{reason = Reason, failing_property_name = Name}]</v>
 
68
        <v>Reason = invalid_property_name | conflicting_property | property_not_found | unsupported_type_code | unsupported_property | unsupported_mode | fixed_property | read_only_property</v>
 
69
      </type>
 
70
      <desc>
 
71
        <p>This operation adds several new properties to the given object. Depending on
 
72
          which initial arguments was supplied when starting the object an 
 
73
          exceptions may be raised listing the properties failing.</p>
 
74
      </desc>
 
75
    </func>
 
76
    <func>
 
77
      <name>get_number_of_properties(PropertySet) -> ulong()</name>
 
78
      <fsummary>Get the number of properties associated with the target object</fsummary>
 
79
      <type>
 
80
        <v>PropertySet = #objref</v>
 
81
      </type>
 
82
      <desc>
 
83
        <p>This operation returns the number of properties associated with the target
 
84
          object.</p>
 
85
      </desc>
 
86
    </func>
 
87
    <func>
 
88
      <name>get_all_property_names(PropertySet, Max) -> Reply</name>
 
89
      <fsummary>Get <c>Max</c>property names. If the target object have additional associated properties they will be put in the returned Iterator</fsummary>
 
90
      <type>
 
91
        <v>PropertySet = NamesIterator = #objref</v>
 
92
        <v>Max = ulong()</v>
 
93
        <v>Reply = {ok, Names, NamesIterator}</v>
 
94
        <v>Names = [string()]</v>
 
95
      </type>
 
96
      <desc>
 
97
        <p>This operation returns up to <c>Max</c> property names. If the target
 
98
          object have additional associated properties they will be put in the
 
99
          returned Iterator, otherwise the Iterator will be a <c>NIL</c> object.</p>
 
100
      </desc>
 
101
    </func>
 
102
    <func>
 
103
      <name>get_property_value(PropertySet, Name) -> Reply</name>
 
104
      <fsummary>Return the property value associated with given name</fsummary>
 
105
      <type>
 
106
        <v>PropertySet = #objref</v>
 
107
        <v>Name = string()</v>
 
108
        <v>Reply = #any | {'EXCEPTION', #CosPropertyService_PropertyNotFound{}} | {'EXCEPTION', #CosPropertyService_InvalidPropertyName{}}</v>
 
109
      </type>
 
110
      <desc>
 
111
        <p>This operation returns the property value associated with given name. If no such property
 
112
          exists or the given name is an empty string an exception will be raised.</p>
 
113
      </desc>
 
114
    </func>
 
115
    <func>
 
116
      <name>get_properties(PropertySet, Names) -> Reply</name>
 
117
      <fsummary>Return all properties associated with given names</fsummary>
 
118
      <type>
 
119
        <v>PropertySet = #objref</v>
 
120
        <v>Names = [string()]</v>
 
121
        <v>Reply = {boolean(), Properties}</v>
 
122
        <v>Properties = [#'CosPropertyService_Property'{property_name = Name, property_value = Value}]</v>
 
123
      </type>
 
124
      <desc>
 
125
        <p>This operation returns all properties associated with given names. If the
 
126
          boolean flag is true all properties where retrieved correctly, otherwise,
 
127
          all properties with the type <c>tk_void</c> was not found.</p>
 
128
      </desc>
 
129
    </func>
 
130
    <func>
 
131
      <name>get_all_properties(PropertySet, Max) -> Reply</name>
 
132
      <fsummary>Return a list <c>Max</c>properties or less. If more  properties are associated with the target object they will be put in the<c>PropertiesIterator</c>.</fsummary>
 
133
      <type>
 
134
        <v>PropertySet = PropertiesIterator = #objref</v>
 
135
        <v>Reply = {ok, Properties, PropertiesIterator}</v>
 
136
        <v>Properties = [#'CosPropertyService_Property'{property_name = Name, property_value = Value}]</v>
 
137
      </type>
 
138
      <desc>
 
139
        <p>This operation return a list <c>Max</c> properties or less. If more 
 
140
          properties are associated with the target object they will be put in the
 
141
          <c>PropertiesIterator</c>. If the object had less than <c>Max</c> 
 
142
          associated properties the Iterator will be a <c>NIL</c> object.</p>
 
143
      </desc>
 
144
    </func>
 
145
    <func>
 
146
      <name>delete_property(PropertySet, Name) -> Reply</name>
 
147
      <fsummary>Delete the property with given Name</fsummary>
 
148
      <type>
 
149
        <v>PropertySet = #objref</v>
 
150
        <v>Name = string()</v>
 
151
        <v>Reply = ok | {'EXCEPTION', #CosPropertyService_FixedProperty{}} | {'EXCEPTION', #CosPropertyService_PropertyNotFound{}} | {'EXCEPTION', #CosPropertyService_InvalidPropertyName{}}</v>
 
152
      </type>
 
153
      <desc>
 
154
        <p>This operation tries to delete the property with given Name. An exception
 
155
          which indicates why it failed is raised if so needed.</p>
 
156
      </desc>
 
157
    </func>
 
158
    <func>
 
159
      <name>delete_properties(PropertySet, Names) -> Reply</name>
 
160
      <fsummary>Delete all properties with given Names</fsummary>
 
161
      <type>
 
162
        <v>PropertySet = #objref</v>
 
163
        <v>Names = [string()]</v>
 
164
        <v>Reply = ok | {'EXCEPTION', #CosPropertyService_MultipleExceptions{exceptions = Excs}}</v>
 
165
        <v>Excs = [#'CosPropertyService_PropertyException{reason = Reason, failing_property_name = Name}]</v>
 
166
        <v>Reason = invalid_property_name | conflicting_property | property_not_found | unsupported_type_code | unsupported_property | unsupported_mode | fixed_property | read_only_property</v>
 
167
      </type>
 
168
      <desc>
 
169
        <p>This operation tries to delete all given Properties. If one or more removal
 
170
          fails an exception is raised which describe why.</p>
 
171
      </desc>
 
172
    </func>
 
173
    <func>
 
174
      <name>delete_all_properties(PropertySet) -> boolean()</name>
 
175
      <fsummary>Delete all properties</fsummary>
 
176
      <type>
 
177
        <v>PropertySet = #objref</v>
 
178
      </type>
 
179
      <desc>
 
180
        <p>This operation deletes all properties. The boolean flag, if set to false,
 
181
          indicates that it was not possible to remove one or more properties, e.g.,
 
182
          may be read only.</p>
 
183
      </desc>
 
184
    </func>
 
185
    <func>
 
186
      <name>is_property_defined(PropertySet, Name) -> Reply</name>
 
187
      <fsummary>Return true if the target have an associated property with given name</fsummary>
 
188
      <type>
 
189
        <v>PropertySet = #objref</v>
 
190
        <v>Name = non-empty string()</v>
 
191
        <v>Reply = boolean() | {'EXCEPTION', #CosPropertyService_InvalidPropertyName{}}</v>
 
192
      </type>
 
193
      <desc>
 
194
        <p>This operation returns true if the target have an associated property with
 
195
          given name.</p>
 
196
      </desc>
 
197
    </func>
 
198
  </funcs>
 
199
  
 
200
</erlref>
 
201