Package com.sun.corba.ee.impl.corba
Class NVListImpl
- java.lang.Object
-
- org.omg.CORBA.NVList
-
- com.sun.corba.ee.impl.corba.NVListImpl
-
public class NVListImpl extends NVList
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<NamedValue>_namedValuesprivate static intINITIAL_CAPACITYprivate ORBorb
-
Constructor Summary
Constructors Constructor Description NVListImpl(ORB orb)NVListImpl(ORB orb, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedValueadd(int flags)Creates a newNamedValueobject initialized with the given flag and adds it to the end of thisNVListobject.NamedValueadd_item(java.lang.String itemName, int flags)Creates a newNamedValueobject initialized with the given name and flag, and adds it to the end of thisNVListobject.NamedValueadd_value(java.lang.String itemName, Any val, int flags)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.NamedValueitem(int index)Retrieves theNamedValueobject at the given index.voidremove(int index)Removes theNamedValueobject at the given index.
-
-
-
Field Detail
-
INITIAL_CAPACITY
private static final int INITIAL_CAPACITY
- See Also:
- Constant Field Values
-
_namedValues
private java.util.List<NamedValue> _namedValues
-
orb
private ORB orb
-
-
Method Detail
-
count
public int count()
Description copied from class:NVListReturns the number ofNamedValueobjects that have been added to thisNVListobject.
-
add
public NamedValue add(int flags)
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
public NamedValue add_item(java.lang.String itemName, int flags)
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
public NamedValue add_value(java.lang.String itemName, Any val, int flags)
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
public NamedValue item(int index) throws Bounds
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
public void remove(int index) throws BoundsDescription 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
-
-