|
Préférences
Moteurs de recherche
|
||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
org.omg.CORBA
|
Constructor Summary | |
---|---|
NVList()
|
Method Summary | |
---|---|
abstract NamedValue |
add_item(String item_name,
int flags)
Creates a new NamedValue object initialized with the
given name and flag,
and adds it to the end of this NVList object. |
abstract NamedValue |
add_value(String item_name,
Any val,
int flags)
Creates a new NamedValue object initialized with the
given name, value, and flag,
and adds it to the end of this NVList object. |
abstract NamedValue |
add(int flags)
Creates a new NamedValue object initialized with the given flag
and adds it to the end of this NVList object. |
abstract int |
count()
Returns the number of NamedValue objects that have
been added to this NVList object. |
abstract NamedValue |
item(int index)
Retrieves the NamedValue object at the given index. |
abstract void |
remove(int index)
Removes the NamedValue object at the given index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NVList()
Method Detail |
---|
public abstract int count()
NamedValue
objects that have
been added to this NVList
object.
int
indicating the number of
NamedValue
objects in this NVList
.public abstract NamedValue add(int flags)
NamedValue
object initialized with the given flag
and adds it to the end of this NVList
object.
The flag can be any one of the argument passing modes:
ARG_IN.value
, ARG_OUT.value
, or
ARG_INOUT.value
.
flags
- one of the argument mode flags
NamedValue
objectpublic abstract NamedValue add_item(String item_name, int flags)
NamedValue
object initialized with the
given name and flag,
and adds it to the end of this NVList
object.
The flag can be any one of the argument passing modes:
ARG_IN.value
, ARG_OUT.value
, or
ARG_INOUT.value
.
item_name
- the name for the new NamedValue
objectflags
- one of the argument mode flags
NamedValue
objectpublic abstract NamedValue add_value(String item_name, Any val, int flags)
NamedValue
object initialized with the
given name, value, and flag,
and adds it to the end of this NVList
object.
item_name
- the name for the new NamedValue
objectval
- an Any
object containing the value
for the new NamedValue
objectflags
- one of the following argument passing modes:
ARG_IN.value
, ARG_OUT.value
, or
ARG_INOUT.value
NamedValue
objectpublic abstract NamedValue item(int index) throws Bounds
NamedValue
object at the given index.
index
- the index of the desired NamedValue
object,
which must be between zero and the length of the list
minus one, inclusive. The first item is at index zero.
NamedValue
object at the given index
Bounds
- if the index is greater than
or equal to number of NamedValue
objectspublic abstract void remove(int index) throws Bounds
NamedValue
object at the given index.
Note that the indices of all NamedValue
objects following
the one removed are shifted down by one.
index
- the index of the NamedValue
object to be
removed, which must be between zero and the length
of the list minus one, inclusive.
The first item is at index zero.
Bounds
- if the index is greater than
or equal to number of NamedValue
objects in
the list