All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.omg.CORBA.NVList

java.lang.Object
   |
   +----org.omg.CORBA.NVList

public abstract class NVList
extends Object

IDL definition:
interface NVList {
readonly attribute unsigned long count;
::CORBA::NamedValue add(
in ::CORBA::Flags flags
);
::CORBA::NamedValue add_item(
in ::CORBA::Identifier name,
in ::CORBA::Flags flags
);
::CORBA::NamedValue add_value(
in ::CORBA::Identifier name,
in any value,
in ::CORBA::Flags flags
);
::CORBA::NamedValue item(
in unsigned long index
)
raises(
::CORBA::Bounds
);
void remove(
in unsigned long index
)
raises(
::CORBA::Bounds
);
};

The NVList interface encapsulates a set of NamedValues. New NVList instances are obtained via the ORB singleton.

See Also:
create_list

Constructor Index

 o NVList()

Method Index

 o add(int)
Add a NamedValue to the list.
 o add_item(String, int)
Add a NamedValue to the list.
 o add_value(String, Any, int)
Add a NamedValue to the list.
 o count()
Get the number of NamedValues in the list.
 o item(int)
Get the indexed element in the list.
 o remove(int)
Remove the indexed element in the list.

Constructors

 o NVList
 public NVList()

Methods

 o count
 public abstract int count()
Get the number of NamedValues in the list.

Reader for attribute: ::CORBA::NVList::count.

readonly attribute unsigned long count;

 o add
 public abstract NamedValue add(int flags)
Add a NamedValue to the list.

Operation: ::CORBA::NVList::add.

::CORBA::NamedValue add(
in ::CORBA::Flags flags
);

Parameters:
flags - The parameter mode (e.g., in, inout, or out) of the NamedValue.
Returns:
The newly constructed named value.
See Also:
ARG_IN, ARG_INOUT, ARG_OUT
 o add_item
 public abstract NamedValue add_item(String name,
                                     int flags)
Add a NamedValue to the list.

Operation: ::CORBA::NVList::add_item.

::CORBA::NamedValue add_item(
in ::CORBA::Identifier name,
in ::CORBA::Flags flags
);

Parameters:
name - The name of the of the NamedValue.
flags - The parameter mode (e.g., in, inout, or out) of the NamedValue.
Returns:
The newly constructed named value.
 o add_value
 public abstract NamedValue add_value(String name,
                                      Any value,
                                      int flags)
Add a NamedValue to the list.

Operation: ::CORBA::NVList::add_value.

::CORBA::NamedValue add_value(
in ::CORBA::Identifier name,
in any value,
in ::CORBA::Flags flags
);

Parameters:
name - The name of the of the NamedValue.
any - The value of the of the NamedValue.
flags - The parameter mode (e.g., in, inout, or out) of the NamedValue.
Returns:
The newly constructed named value.
 o item
 public abstract NamedValue item(int index) throws Bounds
Get the indexed element in the list.

Operation: ::CORBA::NVList::item.

::CORBA::NamedValue item(
in unsigned long index
)
raises(
::CORBA::Bounds
);

Throws: Bounds
If the index is out of range.
 o remove
 public abstract void remove(int index) throws Bounds
Remove the indexed element in the list. After this operation completes, the list will countain one fewer elements.

Operation: ::CORBA::NVList::remove.

void remove(
in unsigned long index
)
raises(
::CORBA::Bounds
);

Throws: Bounds
If the index is out of range.

All Packages  Class Hierarchy  This Package  Previous  Next  Index