org.openorb.orb.core.dii
Class NVList

java.lang.Object
  extended by org.omg.CORBA.NVList
      extended by org.openorb.orb.core.dii.NVList

public class NVList
extends org.omg.CORBA.NVList

This class is the implementation of the NVList OMG class. It manages a list of NamedValue.

Version:
$Revision: 1.4 $ $Date: 2004/02/10 21:46:22 $
Author:
Jerome Daniel
See Also:
NamedValue

Constructor Summary
NVList(org.omg.CORBA.ORB orb)
          Constructor
 
Method Summary
 org.omg.CORBA.NamedValue add_item(java.lang.String item_name, int flags)
          Add a named value into the list by supplying a flag and a name.
 org.omg.CORBA.NamedValue add_value(java.lang.String item_name, org.omg.CORBA.Any val, int flags)
          Add a named value into the list by supplying a flag, a name and a value.
 org.omg.CORBA.NamedValue add(int flags)
          Add a named value into the list by supplying a flag.
 void add(org.omg.CORBA.NamedValue nv)
          Add a named value into the list
 int count()
          Return the nv list size
 void insert(java.lang.String item_name, org.omg.CORBA.Any val, int flags, int index)
          Insert a NamedValue to a specified index
 org.omg.CORBA.NamedValue item(int index)
          Return a nv list item
 void remove(int index)
          Remove an item from the nv list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NVList

public NVList(org.omg.CORBA.ORB orb)
Constructor

Method Detail

count

public int count()
Return the nv list size

Specified by:
count in class org.omg.CORBA.NVList

add

public org.omg.CORBA.NamedValue add(int flags)
Add a named value into the list by supplying a flag.

Specified by:
add in class org.omg.CORBA.NVList

add_item

public org.omg.CORBA.NamedValue add_item(java.lang.String item_name,
                                         int flags)
Add a named value into the list by supplying a flag and a name.

Specified by:
add_item in class org.omg.CORBA.NVList

add_value

public org.omg.CORBA.NamedValue add_value(java.lang.String item_name,
                                          org.omg.CORBA.Any val,
                                          int flags)
Add a named value into the list by supplying a flag, a name and a value.

Specified by:
add_value in class org.omg.CORBA.NVList

add

public void add(org.omg.CORBA.NamedValue nv)
Add a named value into the list


item

public org.omg.CORBA.NamedValue item(int index)
                              throws org.omg.CORBA.Bounds
Return a nv list item

Specified by:
item in class org.omg.CORBA.NVList
Throws:
org.omg.CORBA.Bounds

remove

public void remove(int index)
            throws org.omg.CORBA.Bounds
Remove an item from the nv list

Specified by:
remove in class org.omg.CORBA.NVList
Throws:
org.omg.CORBA.Bounds

insert

public void insert(java.lang.String item_name,
                   org.omg.CORBA.Any val,
                   int flags,
                   int index)
            throws org.omg.CORBA.Bounds
Insert a NamedValue to a specified index

Throws:
org.omg.CORBA.Bounds