public class NVListImpl extends NVList
Constructor and Description |
---|
NVListImpl(ORB orb) |
NVListImpl(ORB orb,
int size) |
Modifier and Type | Method and Description |
---|---|
NamedValue |
add_item(String itemName,
int flags)
Creates a new
NamedValue object initialized with the
given name and flag,
and adds it to the end of this NVList object. |
NamedValue |
add_value(String itemName,
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. |
NamedValue |
add(int flags)
Creates a new
NamedValue object initialized with the given flag
and adds it to the end of this NVList object. |
int |
count()
Returns the number of
NamedValue objects that have
been added to this NVList object. |
NamedValue |
item(int index)
Retrieves the
NamedValue object at the given index. |
void |
remove(int index)
Removes the
NamedValue object at the given index. |
public NVListImpl(ORB orb)
public NVListImpl(ORB orb, int size)
public int count()
NVList
NamedValue
objects that have
been added to this NVList
object.public NamedValue add(int flags)
NVList
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
.public NamedValue add_item(String itemName, int flags)
NVList
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
.public NamedValue add_value(String itemName, Any val, int flags)
NVList
NamedValue
object initialized with the
given name, value, and flag,
and adds it to the end of this NVList
object.add_value
in class NVList
itemName
- 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 NamedValue item(int index) throws Bounds
NVList
NamedValue
object at the given index.item
in class NVList
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 indexBounds
- if the index is greater than
or equal to number of NamedValue
objectspublic void remove(int index) throws Bounds
NVList
NamedValue
object at the given index.
Note that the indices of all NamedValue
objects following
the one removed are shifted down by one.remove
in class NVList
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 listCopyright © 2018 JBoss by Red Hat. All rights reserved.