javax.naming.directory

Interface Attributes

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      Object clone()
      Makes a copy of the attribute set.
      Attribute get(String attrID)
      Retrieves the attribute with the given attribute id from the attribute set.
      NamingEnumeration<? extends Attribute> getAll()
      Retrieves an enumeration of the attributes in the attribute set.
      NamingEnumeration<String> getIDs()
      Retrieves an enumeration of the ids of the attributes in the attribute set.
      boolean isCaseIgnored()
      Determines whether the attribute set ignores the case of attribute identifiers when retrieving or adding attributes.
      Attribute put(Attribute attr)
      Adds a new attribute to the attribute set.
      Attribute put(String attrID, Object val)
      Adds a new attribute to the attribute set.
      Attribute remove(String attrID)
      Removes the attribute with the attribute id 'attrID' from the attribute set.
      int size()
      Retrieves the number of attributes in the attribute set.

        

    • Method Detail

      • isCaseIgnored

        boolean isCaseIgnored()
        Determines whether the attribute set ignores the case of attribute identifiers when retrieving or adding attributes.
        Returns:
        true if case is ignored; false otherwise.
      • size

        int size()
        Retrieves the number of attributes in the attribute set.
        Returns:
        The nonnegative number of attributes in this attribute set.
      • get

        Attribute get(String attrID)
        Retrieves the attribute with the given attribute id from the attribute set.
        Parameters:
        attrID - The non-null id of the attribute to retrieve. If this attribute set ignores the character case of its attribute ids, the case of attrID is ignored.
        Returns:
        The attribute identified by attrID; null if not found.
        See Also:
        put(java.lang.String, java.lang.Object), remove(java.lang.String)
      • getAll

        NamingEnumeration<? extends Attribute> getAll()
        Retrieves an enumeration of the attributes in the attribute set. The effects of updates to this attribute set on this enumeration are undefined.
        Returns:
        A non-null enumeration of the attributes in this attribute set. Each element of the enumeration is of class Attribute. If attribute set has zero attributes, an empty enumeration is returned.
      • getIDs

        NamingEnumeration<String> getIDs()
        Retrieves an enumeration of the ids of the attributes in the attribute set. The effects of updates to this attribute set on this enumeration are undefined.
        Returns:
        A non-null enumeration of the attributes' ids in this attribute set. Each element of the enumeration is of class String. If attribute set has zero attributes, an empty enumeration is returned.
      • put

        Attribute put(String attrID,
                    Object val)
        Adds a new attribute to the attribute set.
        Parameters:
        attrID - non-null The id of the attribute to add. If the attribute set ignores the character case of its attribute ids, the case of attrID is ignored.
        val - The possibly null value of the attribute to add. If null, the attribute does not have any values.
        Returns:
        The Attribute with attrID that was previous in this attribute set; null if no such attribute existed.
        See Also:
        remove(java.lang.String)
      • put

        Attribute put(Attribute attr)
        Adds a new attribute to the attribute set.
        Parameters:
        attr - The non-null attribute to add. If the attribute set ignores the character case of its attribute ids, the case of attr's identifier is ignored.
        Returns:
        The Attribute with the same ID as attr that was previous in this attribute set; null if no such attribute existed.
        See Also:
        remove(java.lang.String)
      • remove

        Attribute remove(String attrID)
        Removes the attribute with the attribute id 'attrID' from the attribute set. If the attribute does not exist, ignore.
        Parameters:
        attrID - The non-null id of the attribute to remove. If the attribute set ignores the character case of its attribute ids, the case of attrID is ignored.
        Returns:
        The Attribute with the same ID as attrID that was previous in the attribute set; null if no such attribute existed.
      • clone

        Object clone()
        Makes a copy of the attribute set. The new set contains the same attributes as the original set: the attributes are not themselves cloned. Changes to the copy will not affect the original and vice versa.
        Returns:
        A non-null copy of this attribute set.

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 30/08/2006, dernière modification le 29/10/2018
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/naming/directory/attributes.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, Attributes

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.