| 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 NamedValue 的软件包 | |
|---|---|
| org.omg.CORBA | 提供 OMG CORBA API 到 JavaTM 编程语言的映射,包括 ORB 类,如果已实现该类,则程序员可以使用此类作为全功能对象请求代理(Object Request Broker,ORB)。 | 
| org.omg.CORBA.portable | 提供可移植性层,即可以使一个供应商生成的代码运行在另一个供应商 ORB 上的 ORB API 集合。 | 
| org.omg.CORBA 中 NamedValue 的使用 | 
|---|
| 返回 NamedValue 的 org.omg.CORBA 中的方法 | |
|---|---|
abstract  NamedValue | 
NVList.add_item(String item_name,
         int flags)
创建一个新的 NamedValue 对象,使用给定名称和标志初始化该对象,并将它添加到此 NVList 对象的末尾。 | 
abstract  NamedValue | 
NVList.add_value(String item_name,
          Any val,
          int flags)
创建一个新的 NamedValue 对象,使用给定名称、值和标志初始化该对象,并将它添加到此 NVList 对象的末尾。 | 
abstract  NamedValue | 
NVList.add(int flags)
创建一个新的 NamedValue 对象,使用给定标志初始化该对象,并将它添加到此 NVList 对象的末尾。 | 
abstract  NamedValue | 
ORB.create_named_value(String s,
                   Any any,
                   int flags)
使用给定名称、值和参数模式标志创建一个 NamedValue 对象。 | 
abstract  NamedValue | 
NVList.item(int index)
检索给定索引处的 NamedValue 对象。 | 
abstract  NamedValue | 
Request.result()
检索包含该方法的返回值的 NamedValue 对象。 | 
| 参数类型为 NamedValue 的 org.omg.CORBA 中的方法 | |
|---|---|
 Request | 
LocalObject._create_request(Context ctx,
                String operation,
                NVList arg_list,
                NamedValue result)
抛出 org.omg.CORBA.NO_IMPLEMENT 异常,并带有消息 "This is a locally constrained object"。 | 
 Request | 
Object._create_request(Context ctx,
                String operation,
                NVList arg_list,
                NamedValue result)
创建一个 Request 实例,并使用给定上下文、方法名称、参数列表和用于该方法返回值的容器进行初始化。 | 
 Request | 
LocalObject._create_request(Context ctx,
                String operation,
                NVList arg_list,
                NamedValue result,
                ExceptionList exceptions,
                ContextList contexts)
抛出 org.omg.CORBA.NO_IMPLEMENT 异常,并带有消息 "This is a locally constrained object"。 | 
 Request | 
Object._create_request(Context ctx,
                String operation,
                NVList arg_list,
                NamedValue result,
                ExceptionList exclist,
                ContextList ctxlist)
创建一个 Request 实例,并使用给定上下文、方法名称、参数列表、用于该方法返回值的容器、可能的异常列表以及需要被解析的上下文字符串所组成的列表进行初始化。 | 
| org.omg.CORBA.portable 中 NamedValue 的使用 | 
|---|
| 参数类型为 NamedValue 的 org.omg.CORBA.portable 中的方法 | |
|---|---|
 Request | 
ObjectImpl._create_request(Context ctx,
                String operation,
                NVList arg_list,
                NamedValue result)
创建一个 Request 对象,使其包含给定上下文、方法、参数列表,以及用于结果的容器。 | 
 Request | 
ObjectImpl._create_request(Context ctx,
                String operation,
                NVList arg_list,
                NamedValue result,
                ExceptionList exceptions,
                ContextList contexts)
创建一个 Request 对象,使其包含给定的上下文、方法、参数列表、结果容器、异常,以及解析上下文字符串时将使用的属性名列表。 | 
abstract  Request | 
Delegate.create_request(Object obj,
               Context ctx,
               String operation,
               NVList arg_list,
               NamedValue result)
创建在动态调用接口中使用的 Request 实例。  | 
abstract  Request | 
Delegate.create_request(Object obj,
               Context ctx,
               String operation,
               NVList arg_list,
               NamedValue result,
               ExceptionList exclist,
               ContextList ctxlist)
创建在动态调用接口中使用的 Request 实例。  | 
  | 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。