1
<?xml version="1.0" encoding="latin1" ?>
2
<!DOCTYPE erlref SYSTEM "erlref.dtd">
9
<holder>Ericsson AB, All Rights Reserved</holder>
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/.
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
23
The Initial Developer of the Original Code is Ericsson AB.
26
<title>CosPropertyService_­PropertySet</title>
27
<shorttitle>..._PropertySet</shorttitle>
28
<prepared>Niclas Eklund</prepared>
29
<responsible>Niclas Eklund</responsible>
31
<approved>Niclas Eklund</approved>
33
<date>2000-07-25</date>
36
<module>CosPropertyService_PropertySet</module>
37
<modulesummary>This module implements the OMG CosPropertyService::PropertySet interface.</modulesummary>
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>
44
<name>define_property(PropertySet, Name, Value) -> Reply</name>
45
<fsummary>Add a new property to the target object</fsummary>
47
<v>PropertySet = #objref</v>
48
<v>Name = non-empty string()</v>
50
<v>Reply = ok | {'EXCEPTION', #CosPropertyService_InvalidPropertyName{}} | {'EXCEPTION', #CosPropertyService_ConflictingProperty{}} | {'EXCEPTION', #CosPropertyService_UnsupportedTypeCode{}} | {'EXCEPTION', #CosPropertyService_UnsupportedProperty{}} | {'EXCEPTION', #CosPropertyService_ReadOnlyProperty{}}</v>
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>
59
<name>define_properties(PropertySet, Properties) -> Reply</name>
60
<fsummary>Add new properties to the target object</fsummary>
62
<v>PropertySet = #objref</v>
63
<v>Properties = [#'CosPropertyService_Property'{property_name = Name, property_value = Value}]</v>
64
<v>Name = string()</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>
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>
77
<name>get_number_of_properties(PropertySet) -> ulong()</name>
78
<fsummary>Get the number of properties associated with the target object</fsummary>
80
<v>PropertySet = #objref</v>
83
<p>This operation returns the number of properties associated with the target
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>
91
<v>PropertySet = NamesIterator = #objref</v>
93
<v>Reply = {ok, Names, NamesIterator}</v>
94
<v>Names = [string()]</v>
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>
103
<name>get_property_value(PropertySet, Name) -> Reply</name>
104
<fsummary>Return the property value associated with given name</fsummary>
106
<v>PropertySet = #objref</v>
107
<v>Name = string()</v>
108
<v>Reply = #any | {'EXCEPTION', #CosPropertyService_PropertyNotFound{}} | {'EXCEPTION', #CosPropertyService_InvalidPropertyName{}}</v>
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>
116
<name>get_properties(PropertySet, Names) -> Reply</name>
117
<fsummary>Return all properties associated with given names</fsummary>
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>
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>
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>
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>
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>
146
<name>delete_property(PropertySet, Name) -> Reply</name>
147
<fsummary>Delete the property with given Name</fsummary>
149
<v>PropertySet = #objref</v>
150
<v>Name = string()</v>
151
<v>Reply = ok | {'EXCEPTION', #CosPropertyService_FixedProperty{}} | {'EXCEPTION', #CosPropertyService_PropertyNotFound{}} | {'EXCEPTION', #CosPropertyService_InvalidPropertyName{}}</v>
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>
159
<name>delete_properties(PropertySet, Names) -> Reply</name>
160
<fsummary>Delete all properties with given Names</fsummary>
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>
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>
174
<name>delete_all_properties(PropertySet) -> boolean()</name>
175
<fsummary>Delete all properties</fsummary>
177
<v>PropertySet = #objref</v>
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>
186
<name>is_property_defined(PropertySet, Name) -> Reply</name>
187
<fsummary>Return true if the target have an associated property with given name</fsummary>
189
<v>PropertySet = #objref</v>
190
<v>Name = non-empty string()</v>
191
<v>Reply = boolean() | {'EXCEPTION', #CosPropertyService_InvalidPropertyName{}}</v>
194
<p>This operation returns true if the target have an associated property with