JavaTM Platform
Standard Ed. 6

org.omg.CosNaming
인터페이스 NamingContextExtOperations

모든 슈퍼 인터페이스:
NamingContextOperations
기존의 서브 인터페이스의 일람:
NamingContextExt
기존의 구현 클래스의 일람:
_NamingContextExtStub , NamingContextExtPOA


public interface NamingContextExtOperations
extends NamingContextOperations

NamingContextExt 는, 각각의 이름이 고유해 Interoperable Naming Service 의 일부인 이름 바인딩세트를 포함하는 NamingContext 의 확장입니다. 다른 이름을, 동시에, 같은 문맥 또는 다른 문맥으로 바인드 할 수 있습니다. NamingContextExt 를 사용하면(자), URL 베이스의 이름을 사용해 바인드 및 해결이 가능하게 됩니다.

「CORBA COS Naming Specification」 를 참조해 주세요.


메소드의 개요
 Object resolve_str (String  sn)
          캐릭터 라인화 된 이름을 객체 참조에 해결합니다.
 NameComponent [] to_name (String  sn)
          캐릭터 라인화 된 이름을, 등가인 이름 컴퍼넌트의 배열로 변환합니다.
 String to_string (NameComponent [] n)
          이름 컴퍼넌트의 배열로부터 캐릭터 라인에 변환된 이름을 작성합니다.
 String to_url (String  addr, String  sn)
          객체의 캐릭터 라인화 된 이름으로부터 URL 베이스의 "iiopname://" 형식의 이름을 작성합니다.
 
인터페이스 org.omg.CosNaming. NamingContextOperations 로부터 상속된 메소드
bind_context , bind_new_context , bind , destroy , list , new_context , rebind_context , rebind , resolve , unbind
 

메소드의 상세

to_string

String  to_string(NameComponent [] n)
                 throws InvalidName 
이름 컴퍼넌트의 배열로부터 캐릭터 라인에 변환된 이름을 작성합니다.

파라미터:
n - 객체의 이름

예외:
org.omg.CosNaming.NamingContextExtPackage.InvalidName - 이름으로 바인딩을 식별할 수 없는 경우

InvalidName

to_name

NameComponent [] to_name(String  sn)
                        throws InvalidName 
캐릭터 라인화 된 이름을, 등가인 이름 컴퍼넌트의 배열로 변환합니다.

파라미터:
sn - 객체의 캐릭터 라인화 된 이름

예외:
org.omg.CosNaming.NamingContextExtPackage.InvalidName - 이름으로 바인딩을 식별할 수 없는 경우

InvalidName

to_url

String  to_url(String  addr,
              String  sn)
              throws InvalidAddress ,
                     InvalidName 
객체의 캐릭터 라인화 된 이름으로부터 URL 베이스의 "iiopname://" 형식의 이름을 작성합니다.

파라미터:
addr - 네임 서비스를 실행하는 호스트 머신의 인터넷 베이스 주소

sn - 객체의 캐릭터 라인화 된 이름

예외:
org.omg.CosNaming.NamingContextExtPackage.InvalidName - 이름으로 바인딩을 식별할 수 없는 경우

org.omg.CosNaming.NamingContextPackage.InvalidAddress - 호스트 머신의 인터넷 베이스 주소가 올바르지 않은 경우

InvalidAddress
InvalidName

resolve_str

Object  resolve_str(String  sn)
                   throws NotFound ,
                          CannotProceed ,
                          InvalidName 
캐릭터 라인화 된 이름을 객체 참조에 해결합니다.

파라미터:
sn - 객체의 캐릭터 라인화 된 이름

예외:
NotFound - 지정된 이름의 객체 참조가 존재하지 않는 경우

CannotProceed - 지정된 복합명이 올바르지 않은 경우

org.omg.CosNaming.NamingContextExtPackage.InvalidName - 이름으로 바인딩을 식별할 수 없는 경우

InvalidName

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.