20002011 Ericsson AB. All Rights Reserved. The contents of this file are subject to the Erlang Public License, Version 1.1, (the "License"); you may not use this file except in compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. CosPropertyService_PropertySetDef 2000-07-25 1.0
CosPropertyService_PropertySetDef This module implements the OMG CosPropertyService::PropertySetDef interface.

To get access to the record definitions for the structures use:

-include_lib("cosProperty/include/CosPropertyService.hrl").

This module also exports the functions described in

CosPropertyService_PropertySet

get_allowed_property_types(PropertySetDef) -> Reply Return allowed TypeCodes for the target object PropertySetDef = #objref Reply = {ok, PropertyTypes} PropertyTypes = [CORBA::TypeCode]

This operation return the TypeCodes which we are allowed to use when adding new properties.

get_allowed_properties(PropertySetDef) -> Reply Return a sequence of the allowed properties PropertySetDef = #objref Reply = {ok, PropertyDefs} PropertyDefs = [#'CosPropertyService_PropertyDef'{property_name = Name, property_value = Value, property_mode = Mode}] Name = string() Value = #any Mode = normal | read_only | fixed_normal | fixed_readonly | undefined

This operation a sequence of the allowed properties we may alter; depends on which mode associated with a certain property.

define_property_with_mode(PropertySetDef, Name, Value, Mode) -> Reply Associate a new property with the target object PropertySetDef = #objref Name = non-empty string() Value = #any Mode = normal | read_only | fixed_normal | fixed_readonly | undefined Reply = ok | {'EXCEPTION', #CosPropertyService_InvalidPropertyName{}} | {'EXCEPTION', #CosPropertyService_ConflictingProperty{}} | {'EXCEPTION', #CosPropertyService_UnsupportedTypeCode{}} | {'EXCEPTION', #CosPropertyService_UnsupportedProperty{}} | {'EXCEPTION', #CosPropertyService_UnsupportedMode{}} | {'EXCEPTION', #CosPropertyService_ReadOnlyProperty{}}

This operation attempts to associate a new property with the target object. If we fail to do so the appropriate exception is raised.

define_properties_with_modes(PropertySetDef, PropertyDefs) -> Reply Associate the given Property Definitions with the target object PropertySetDef = #objref PropertyDefs = [#'CosPropertyService_PropertyDef'{property_name = Name, property_value = Value, property_mode = Mode}] Name = string() Value = #any Mode = normal | read_only | fixed_normal | fixed_readonly | undefined Reply = ok | {'EXCEPTION', #CosPropertyService_MultipleExceptions{exceptions = Excs}} Excs = [#'CosPropertyService_PropertyException{reason = Reason, failing_property_name = Name}] Reason = invalid_property_name | conflicting_property | property_not_found | unsupported_type_code | unsupported_property | unsupported_mode | fixed_property | read_only_property

This operation attempts to associate the given Property Definitions with the target object. If one or more attempts fail an exception is raised describing which properties we where not able to create.

get_property_mode(PropertySetDef, Name) -> Reply Return the mode of the given property PropertySetDef = #objref Name = string() Reply = Mode | {'EXCEPTION', #CosPropertyService_InvalidPropertyName{}} | {'EXCEPTION', #CosPropertyService_PropertyNotFound{}} Mode = normal | read_only | fixed_normal | fixed_readonly | undefined

This operation returns the type of the given property.

get_property_modes(PropertySetDef, Names) -> Reply Return the modes of the given properties PropertySetDef = #objref Names = [string()] Reply = {boolean(), PropertyModes} PropertyModes = [#'CosPropertyService_PropertyMode'{property_name = Name, property_mode = Mode}] Name = string() Mode = normal | read_only | fixed_normal | fixed_readonly | undefined

This operation returns the modes of the listed properties. If the boolean flag is false, all properties with mode undefined this operation failed to comply.

set_property_mode(PropertySetDef, Name, Mode) -> Reply Change the given property's mode PropertySetDef = #objref Name = string() Mode = normal | read_only | fixed_normal | fixed_readonly | undefined Reply = ok | {'EXCEPTION', #CosPropertyService_InvalidPropertyName{}} | {'EXCEPTION', #CosPropertyService_UnsupportedMode{}} | {'EXCEPTION', #CosPropertyService_PropertyNotFound{}}

This operation changes the given property's mode. Return the appropriate exception if not able to fulfill the request.

set_property_modes(PropertySetDef, PropertyModes) -> Reply Change the listed properties mode's PropertySetDef = #objref PropertyModes = [#'CosPropertyService_PropertyMode'{property_name = Name, property_mode = Mode}] Name = string() Mode = normal | read_only | fixed_normal | fixed_readonly | undefined Reply = ok | {'EXCEPTION', #CosPropertyService_MultipleExceptions{exceptions = Excs}} Excs = [#'CosPropertyService_PropertyException{reason = Reason, failing_property_name = Name}] Reason = invalid_property_name | conflicting_property | property_not_found | unsupported_type_code | unsupported_property | unsupported_mode | fixed_property | read_only_property

This operation attempts to update the listed properties mode's. Raises an exception which describe which and why an operation failed.