Package com.sun.corba.se.impl.corba
Class NVListImpl
java.lang.Object
org.omg.CORBA.NVList
com.sun.corba.se.impl.corba.NVListImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(int flags) Creates a newNamedValueobject initialized with the given flag and adds it to the end of thisNVListobject.Creates a newNamedValueobject initialized with the given name and flag, and adds it to the end of thisNVListobject.Creates a newNamedValueobject initialized with the given name, value, and flag, and adds it to the end of thisNVListobject.intcount()Returns the number ofNamedValueobjects that have been added to thisNVListobject.item(int index) Retrieves theNamedValueobject at the given index.voidremove(int index) Removes theNamedValueobject at the given index.
-
Constructor Details
-
NVListImpl
-
NVListImpl
-
-
Method Details
-
count
public int count()Description copied from class:NVListReturns the number ofNamedValueobjects that have been added to thisNVListobject. -
add
Description copied from class:NVListCreates a newNamedValueobject initialized with the given flag and adds it to the end of thisNVListobject. The flag can be any one of the argument passing modes:ARG_IN.value,ARG_OUT.value, orARG_INOUT.value. -
add_item
Description copied from class:NVListCreates a newNamedValueobject initialized with the given name and flag, and adds it to the end of thisNVListobject. The flag can be any one of the argument passing modes:ARG_IN.value,ARG_OUT.value, orARG_INOUT.value. -
add_value
Description copied from class:NVListCreates a newNamedValueobject initialized with the given name, value, and flag, and adds it to the end of thisNVListobject.- Specified by:
add_valuein classNVList- Parameters:
itemName- the name for the newNamedValueobjectval- anAnyobject containing the value for the newNamedValueobjectflags- one of the following argument passing modes:ARG_IN.value,ARG_OUT.value, orARG_INOUT.value- Returns:
- the newly created
NamedValueobject
-
item
Description copied from class:NVListRetrieves theNamedValueobject at the given index.- Specified by:
itemin classNVList- Parameters:
index- the index of the desiredNamedValueobject, which must be between zero and the length of the list minus one, inclusive. The first item is at index zero.- Returns:
- the
NamedValueobject at the given index - Throws:
Bounds- if the index is greater than or equal to number ofNamedValueobjects
-
remove
Description copied from class:NVListRemoves theNamedValueobject at the given index. Note that the indices of allNamedValueobjects following the one removed are shifted down by one.- Specified by:
removein classNVList- Parameters:
index- the index of theNamedValueobject to be removed, which must be between zero and the length of the list minus one, inclusive. The first item is at index zero.- Throws:
Bounds- if the index is greater than or equal to number ofNamedValueobjects in the list
-