NVList implements the CORBA pseudo object type NVList. An NVList is a list of NamedValue elementsa NamedValue describes an argument to a Request.
// Pseudo IDL
exception Bounds {};
pseudo interface NVList {
readonly attribute long count;
NamedValue add(in Flags flags);
NamedValue add_item(in Identifier item_name,
in Flags flags);
NamedValue add_value(in Identifier item_name,
in any val, in Flags flags);
NamedValue item(in long index) raises(Bounds);
Status remove(in long index) raises(Bounds);
Status free_out_memory();
};
// Java
package IE.Iona.Orbix2.CORBA;
public class NVList implements Cloneable {
// Constructors
public NVList();
public NVList(int size);
public NVList(NVList nvl);
// Methods
public Object clone();
public NamedValue add(Flags item_flags);
public NamedValue add_item(String item_name,
Flags item_flags);
public NamedValue add_value(String item_name,
IE.Iona.Orbix2.CORBA.Any value,
Flags item_flags);
public int count();
public NamedValue item(int index)
throws IE.Iona.Orbix2.CORBA.Bounds;
public int remove(int index)
throws IE.Iona.Orbix2.CORBA.Bounds;
// Object Methods
public static NVList IT_create();
public static NVList IT_create(int size);
public static NVList IT_create(NVList nvl);
public static NVList _nil();
}
CORBA.NamedValueCORBA.Request
public NVList();
CORBA.ORB.create_list() and CORBA.ORB.create_operation_list() for CORBA defined ways to create an NVList.
CORBA.ORB.create_list() CORBA.ORB.create_operation_list() CORBA.NVList.IT_create()Other
NVList constructors.
public NVList(int size);
NVList of length size.
CORBA.ORB.create_list() and CORBA.ORB.create_operation_list() for CORBA defined ways to create an NVList.
CORBA.ORB.create_list() CORBA.ORB.create_operation_list() CORBA.NVList.IT_create()Other
NVList constructors.
public NVList(NVList nvl);
NVList constructors.
public Object clone();
NVList to a new NVlist object and returns the new object.
public NamedValue add(Flags item_flags);
NamedValue, initialising only the Flags and adds it to the list.
item_flags |
Item flags (_CORBA.ARG_IN, _CORBA.ARG_OUT, _CORBA.ARG_INOUT).
|
public NamedValue add_item(String item_name, Flags item_flags);
NamedValue with name and Flags initialised, and adds it to the list.
item_name |
Name of item.
|
item_flags |
Item flags (_CORBA.ARG_IN, _CORBA.ARG_OUT, _CORBA.ARG_INOUT).
|
public NamedValue add_value(String item_name, IE.Iona.Orbix2.CORBA.Any value, Flags item_flags);
NamedValue with name, value and flags initialised and adds it to the list.
item_name |
Name of item.
|
value |
Value of item.
|
item_flags |
Item flags (_CORBA.ARG_IN, _CORBA.ARG_OUT, _CORBA.ARG_INOUT).
|
public int count();
NVList.
public static NVList IT_create(); public static NVList IT_create(int size); public static NVList IT_create(NVList nvl);
IT_create() methods for class NVList.See the corresponding constructors for details of the parameters to
IT_create().
CORBA.ORB.create_list() and CORBA.ORB.create_operation_list() for CORBA defined ways of creating an NVList.
CORBA.ORB.create_list() CORBA.ORB.create_operation_list()
NVList constructors.
public NamedValue item(int index) throws IE.Iona.Orbix2.CORBA.Bounds;
0.
Bounds exception if index is out of range.
public static NVList _nil();
NVList object.
CORBA.is_nil()
public int remove(int index) throws IE.Iona.Orbix2.CORBA.Bounds;
0.
Bounds exception if index is out of range.