2000 2011 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. The Initial Developer of the Original Code is Ericsson AB. CosNaming_NamingContextExt 2000-08-16 A
CosNaming_NamingContextExt This interface contains operation for converting a Name sequence to a string and back.

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

-include_lib("orber/COSS/CosNaming/CosNaming.hrl").

This module also exports the functions described in:

CosNaming_NamingContext

to_string(NamingContext, Name) -> Return Stringify a Namesequence to a string NameContext = #objref Name = [NameComponent] Return = string() | {'EXCEPTION', NamingContext::InvalidName{}}

Stringifies a Name sequence to a string.

to_name(NamingContext, NameString) -> Return Convert a stringified Nameto a Namesequence NameContext = #objref NameString = string() Return = [NameComponent] | {'EXCEPTION', NamingContext::InvalidName{}}

Converts a stringified Name to a Name sequence.

to_url(NamingContext, AddressString, NameString) -> Return Return an URL string constructed from the given Address and Name strings NameContext = #objref Address = NameString = string() Return = URLString | {'EXCEPTION', NamingContext::InvalidName{}} | {'EXCEPTION', NamingContextExt::InvalidAddress{}}

This operation takes a corbaloc string and a stringified Name sequence as input and returns a fully formed URL string.

resolve_str(NamingContext, NameString) -> Return Return the object associated, if any, with the given name string NameContext = #objref NameString = string() Return = #objref | {'EXCEPTION', NamingContext::InvalidName{}} | {'EXCEPTION', NamingContext::NotFound{why, rest_of_name}} | {'EXCEPTION', NamingContext::CannotProceed{cxt, rest_of_name}}

This operation takes a stringified Name sequence as input and returns the associated, if any, object.