public abstract class ContextList extends Object
String表示属性名称的String对象的可修改列表的对象。
此类用于Request操作,用于描述需要解析并通过调用发送的上下文。
(通过提供属性名称并获取与之关联的值来解决上下文)。这可以通过调用Context方法get_values并从ContextList对象提供一个字符串作为第三个参数。
方法get_values返回一个包含NVList对象的NamedValue对象,该对象保存由给定字符串标识的值。
一个ContextList对象由ORB创建,如下所示:
ORB orb = ORB.init(args, null);
org.omg.CORBA.ContextList ctxList = orb.create_context_list();
变量ctxList表示一个空的ContextList对象。
字符串被添加到列表中与该方法add ,该方法访问item ,并用该方法除去remove 。
Context
| Constructor and Description |
|---|
ContextList() |
public abstract int count()
String对象中的
ContextList对象的数量。
int表示的数量
String在该S
ContextList对象
public abstract void add(String ctx)
String对象本
ContextList对象。
ctx - 要添加的
String对象
public abstract String item(int index) throws Bounds
String对象。
index - 所需字符串的索引,0为第一个字符串的索引
Bounds - 如果索引大于或等于此
ContextList对象中的字符串数
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.