19972013 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. lname_component 1997-06-10 A
lname_component Interface that supports the name pseudo-objects.

This interface is a part of the name library, which is used to hide the representation of names. In Orbers Erlang mapping the pseudo-object names and the real IDL names have the same representation but it is desirable that the clients uses the names library so they will not be dependent of the representation. The lname_component interface supports handling of name components e.g. set and get of the struct members.

Note that the lname_component interface in orber does not contain a destroy function because the NameComponents are represented as Erlang records and therefor will be removed by the garbage collector when not in use.

The type NameComponent used below is defined as:

-record('CosNaming_NameComponent', {id, kind=""}).

id and kind are strings.

The record is defined in the file CosNaming.hrl and it is included with:

-include_lib("orber/COSS/CosNaming/CosNaming.hrl").
create() -> Return Create a new name component Return = NameComponent

This function returns a new name component.

get_id(NameComponent) -> Return Get the id field of a name component Return = string()

This function returns the id string of a name component.

set_id(NameComponent, Id) -> Return Set the id field of a name component Id = string() Return = NameComponent

This function sets the id string of a name component and returns the component.

get_kind(NameComponent) -> Return Get the kind field of a name component Return = string()

This function returns the id string of a name component.

set_kind(NameComponent, Kind) -> Return Set the kind field of a name component Kind = string() Return = NameComponent

This function sets the kind string of a name component and returns the component.