java.lang.Objectorg.omg.CORBA.NVList
public abstract class NVList
A modifiable list containing NamedValue objects.
The class NVList is used as follows:
Request object
in the Dynamic Invocation Interface and
the Dynamic Skeleton Interface
Context object
Each NamedValue object consists of the following:
String object
Any object
An NVList object
may be created using one of the following
ORB methods:
org.omg.CORBA.ORB.create_list
org.omg.CORBA.NVList nv = orb.create_list(3);
The variable nv represents a newly-created
NVList object. The argument is a memory-management
hint to the orb and does not imply the actual length of the list.
If, for example, you want to use an NVList object
in a request, and the method being invoked takes three parameters,
you might optimize by supplying 3 to the method
create_list. Note that the new NVList
will not necessarily have a length of 3; it
could have a length of 2 or 4, for instance.
Note also that you can add any number of
NamedValue objects to this list regardless of
its original length.
org.omg.CORBA.ORB.create_operation_list
org.omg.CORBA.NVList nv = orb.create_operation_list(myOperationDef);
The variable nv represents a newly-created
NVList object that contains descriptions of the
arguments to the method described in the given
OperationDef object.
The methods in the class NVList all deal with
the NamedValue objects in the list.
There are three methods for adding a NamedValue object,
a method for getting the count of NamedValue objects in
the list, a method for retrieving a NamedValue object
at a given index, and a method for removing a NamedValue object
at a given index.
Request,
ServerRequest,
NamedValue,
Context| Constructor Summary | |
|---|---|
NVList()
|
|
| Method Summary | |
|---|---|
abstract NamedValue |
add_item(String item_name,
int flags)
Creates a new NamedValue object initialized with the
given name and flag,
and adds it to the end of this NVList object. |
abstract NamedValue |
add_value(String item_name,
Any val,
int flags)
Creates a new NamedValue object initialized with the
given name, value, and flag,
and adds it to the end of this NVList object. |
abstract NamedValue |
add(int flags)
Creates a new NamedValue object initialized with the given flag
and adds it to the end of this NVList object. |
abstract int |
count()
Returns the number of NamedValue objects that have
been added to this NVList object. |
abstract NamedValue |
item(int index)
Retrieves the NamedValue object at the given index. |
abstract void |
remove(int index)
Removes the NamedValue object at the given index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NVList()
| Method Detail |
|---|
public abstract int count()
NamedValue objects that have
been added to this NVList object.
int indicating the number of
NamedValue objects in this NVList.public abstract NamedValue add(int flags)
NamedValue object initialized with the given flag
and adds it to the end of this NVList object.
The flag can be any one of the argument passing modes:
ARG_IN.value, ARG_OUT.value, or
ARG_INOUT.value.
flags - one of the argument mode flags
NamedValue objectpublic abstract NamedValue add_item(String item_name, int flags)
NamedValue object initialized with the
given name and flag,
and adds it to the end of this NVList object.
The flag can be any one of the argument passing modes:
ARG_IN.value, ARG_OUT.value, or
ARG_INOUT.value.
item_name - the name for the new NamedValue objectflags - one of the argument mode flags
NamedValue objectpublic abstract NamedValue add_value(String item_name, Any val, int flags)
NamedValue object initialized with the
given name, value, and flag,
and adds it to the end of this NVList object.
item_name - the name for the new NamedValue objectval - an Any object containing the value
for the new NamedValue objectflags - one of the following argument passing modes:
ARG_IN.value, ARG_OUT.value, or
ARG_INOUT.value
NamedValue objectpublic abstract NamedValue item(int index) throws Bounds
NamedValue object at the given index.
index - the index of the desired NamedValue object,
which must be between zero and the length of the list
minus one, inclusive. The first item is at index zero.
NamedValue object at the given index
Bounds - if the index is greater than
or equal to number of NamedValue objects
public abstract void remove(int index)
throws Bounds
NamedValue object at the given index.
Note that the indices of all NamedValue objects following
the one removed are shifted down by one.
index - the index of the NamedValue object to be
removed, which must be between zero and the length
of the list minus one, inclusive.
The first item is at index zero.
Bounds - if the index is greater than
or equal to number of NamedValue objects in
the listCes informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
7 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)