< prev index next >

src/java.corba/share/classes/org/omg/CORBA/NVList.java

Print this page


   1 /*
   2  * Copyright (c) 1996, 2000, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  46  * An <code>NVList</code> object
  47  * may be created using one of the following
  48  * <code>ORB</code> methods:
  49  * <OL>
  50  * <LI><code>org.omg.CORBA.ORB.create_list</code>
  51  * <PRE>
  52  *    org.omg.CORBA.NVList nv = orb.create_list(3);
  53  * </PRE>
  54  * The variable <code>nv</code> represents a newly-created
  55  * <code>NVList</code> object.  The argument is a memory-management
  56  * hint to the orb and does not imply the actual length of the list.
  57  * If, for example, you want to use an <code>NVList</code> object
  58  * in a request, and the method being invoked takes three parameters,
  59  * you might optimize by supplying 3 to the method
  60  * <code>create_list</code>.  Note that the new <code>NVList</code>
  61  * will not necessarily have a length of 3; it
  62  * could have a length of 2 or 4, for instance.
  63  * Note also that you can add any number of
  64  * <code>NamedValue</code> objects to this list regardless of
  65  * its original length.
  66  * <P>
  67  * <LI><code>org.omg.CORBA.ORB.create_operation_list</code>
  68  * <PRE>
  69  *    org.omg.CORBA.NVList nv = orb.create_operation_list(myOperationDef);
  70  * </PRE>
  71  * The variable <code>nv</code> represents a newly-created
  72  * <code>NVList</code> object that contains descriptions of the
  73  * arguments to the method described in the given
  74  * <code>OperationDef</code> object.
  75  * </OL>
  76  * <P>
  77  * The methods in the class <code>NVList</code> all deal with
  78  * the <code>NamedValue</code> objects in the list.
  79  * There are three methods for adding a <code>NamedValue</code> object,
  80  * a method for getting the count of <code>NamedValue</code> objects in
  81  * the list, a method for retrieving a <code>NamedValue</code> object
  82  * at a given index, and a method for removing a <code>NamedValue</code> object
  83  * at a given index.
  84  *
  85  * @see org.omg.CORBA.Request
  86  * @see org.omg.CORBA.ServerRequest


   1 /*
   2  * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  46  * An <code>NVList</code> object
  47  * may be created using one of the following
  48  * <code>ORB</code> methods:
  49  * <OL>
  50  * <LI><code>org.omg.CORBA.ORB.create_list</code>
  51  * <PRE>
  52  *    org.omg.CORBA.NVList nv = orb.create_list(3);
  53  * </PRE>
  54  * The variable <code>nv</code> represents a newly-created
  55  * <code>NVList</code> object.  The argument is a memory-management
  56  * hint to the orb and does not imply the actual length of the list.
  57  * If, for example, you want to use an <code>NVList</code> object
  58  * in a request, and the method being invoked takes three parameters,
  59  * you might optimize by supplying 3 to the method
  60  * <code>create_list</code>.  Note that the new <code>NVList</code>
  61  * will not necessarily have a length of 3; it
  62  * could have a length of 2 or 4, for instance.
  63  * Note also that you can add any number of
  64  * <code>NamedValue</code> objects to this list regardless of
  65  * its original length.

  66  * <LI><code>org.omg.CORBA.ORB.create_operation_list</code>
  67  * <PRE>
  68  *    org.omg.CORBA.NVList nv = orb.create_operation_list(myOperationDef);
  69  * </PRE>
  70  * The variable <code>nv</code> represents a newly-created
  71  * <code>NVList</code> object that contains descriptions of the
  72  * arguments to the method described in the given
  73  * <code>OperationDef</code> object.
  74  * </OL>
  75  * <P>
  76  * The methods in the class <code>NVList</code> all deal with
  77  * the <code>NamedValue</code> objects in the list.
  78  * There are three methods for adding a <code>NamedValue</code> object,
  79  * a method for getting the count of <code>NamedValue</code> objects in
  80  * the list, a method for retrieving a <code>NamedValue</code> object
  81  * at a given index, and a method for removing a <code>NamedValue</code> object
  82  * at a given index.
  83  *
  84  * @see org.omg.CORBA.Request
  85  * @see org.omg.CORBA.ServerRequest


< prev index next >