Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
org.omg.CORBA

Class ContextList


  • public abstract class ContextList
    extends Object
    An object containing a modifiable list of String objects that represent property names. This class is used in Request operations to describe the contexts that need to be resolved and sent with the invocation. (A context is resolved by giving a property name and getting back the value associated with it.) This is done by calling the Context method get_values and supplying a string from a ContextList object as the third parameter. The method get_values returns an NVList object containing the NamedValue objects that hold the value(s) identified by the given string.

    A ContextList object is created by the ORB, as illustrated here:

       ORB orb = ORB.init(args, null);
       org.omg.CORBA.ContextList ctxList = orb.create_context_list();
     
    The variable ctxList represents an empty ContextList object. Strings are added to the list with the method add, accessed with the method item, and removed with the method remove.
    Since:
    JDK1.2
    See Also:
    Context
    • Constructor Detail

      • ContextList

        public ContextList()
    • Method Detail

      • count

        public abstract int count()
        Returns the number of String objects in this ContextList object.
        Returns:
        an int representing the number of Strings in this ContextList object
      • add

        public abstract void add(String ctx)
        Adds a String object to this ContextList object.
        Parameters:
        ctx - the String object to be added
      • item

        public abstract String item(int index)
                             throws Bounds
        Returns the String object at the given index.
        Parameters:
        index - the index of the string desired, with 0 being the index of the first string
        Returns:
        the string at the given index
        Throws:
        Bounds - if the index is greater than or equal to the number of strings in this ContextList object
      • remove

        public abstract void remove(int index)
                             throws Bounds
        Removes the String object at the given index. Note that the indices of all strings following the one removed are shifted down by one.
        Parameters:
        index - the index of the String object to be removed, with 0 designating the first string
        Throws:
        Bounds - if the index is greater than or equal to the number of String objects in this ContextList object

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-org/omg/corba/contextlist.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut