org.w3c.dom

Interface NameList


  • public interface NameList
    The NameList interface provides the abstraction of an ordered collection of parallel pairs of name and namespace values (which could be null values), without defining or constraining how this collection is implemented. The items in the NameList are accessible via an integral index, starting from 0.

    See also the Document Object Model (DOM) Level 3 Core Specification.

    Since:
    DOM Level 3
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean contains(String str)
      Test if a name is part of this NameList.
      boolean containsNS(String namespaceURI, String name)
      Test if the pair namespaceURI/name is part of this NameList.
      int getLength()
      The number of pairs (name and namespaceURI) in the list.
      String getName(int index)
      Returns the indexth name item in the collection.
      String getNamespaceURI(int index)
      Returns the indexth namespaceURI item in the collection.

        

    • Method Detail

      • getName

        String getName(int index)
        Returns the indexth name item in the collection.
        Parameters:
        index - Index into the collection.
        Returns:
        The name at the indexth position in the NameList, or null if there is no name for the specified index or if the index is out of range.
      • getNamespaceURI

        String getNamespaceURI(int index)
        Returns the indexth namespaceURI item in the collection.
        Parameters:
        index - Index into the collection.
        Returns:
        The namespace URI at the indexth position in the NameList, or null if there is no name for the specified index or if the index is out of range.
      • getLength

        int getLength()
        The number of pairs (name and namespaceURI) in the list. The range of valid child node indices is 0 to length-1 inclusive.
      • contains

        boolean contains(String str)
        Test if a name is part of this NameList.
        Parameters:
        str - The name to look for.
        Returns:
        true if the name has been found, false otherwise.
      • containsNS

        boolean containsNS(String namespaceURI,
                         String name)
        Test if the pair namespaceURI/name is part of this NameList.
        Parameters:
        namespaceURI - The namespace URI to look for.
        name - The name to look for.
        Returns:
        true if the pair namespaceURI/name has been found, false otherwise.

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 29/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-org/w3c/dom/NameList.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, NameList

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut