Class NameAwareAttributes

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, javax.naming.directory.Attributes

    public final class NameAwareAttributes
    extends java.lang.Object
    implements javax.naming.directory.Attributes
    Used internally to help DirContextAdapter properly handle Names as values.
    Since:
    2.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      NameAwareAttributes()
      Create an empty instance
      NameAwareAttributes​(javax.naming.directory.Attributes attributes)
      Create a new instance, populated with the data from the supplied instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      boolean equals​(java.lang.Object o)  
      NameAwareAttribute get​(java.lang.String attrID)  
      javax.naming.NamingEnumeration<NameAwareAttribute> getAll()  
      javax.naming.NamingEnumeration<java.lang.String> getIDs()  
      int hashCode()  
      boolean isCaseIgnored()  
      javax.naming.directory.Attribute put​(java.lang.String attrID, java.lang.Object val)  
      javax.naming.directory.Attribute put​(javax.naming.directory.Attribute attr)  
      javax.naming.directory.Attribute remove​(java.lang.String attrID)  
      int size()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NameAwareAttributes

        public NameAwareAttributes()
        Create an empty instance
      • NameAwareAttributes

        public NameAwareAttributes​(javax.naming.directory.Attributes attributes)
        Create a new instance, populated with the data from the supplied instance.
        Parameters:
        attributes - the instance to copy.
    • Method Detail

      • isCaseIgnored

        public boolean isCaseIgnored()
        Specified by:
        isCaseIgnored in interface javax.naming.directory.Attributes
      • size

        public int size()
        Specified by:
        size in interface javax.naming.directory.Attributes
      • get

        public NameAwareAttribute get​(java.lang.String attrID)
        Specified by:
        get in interface javax.naming.directory.Attributes
      • getAll

        public javax.naming.NamingEnumeration<NameAwareAttribute> getAll()
        Specified by:
        getAll in interface javax.naming.directory.Attributes
      • getIDs

        public javax.naming.NamingEnumeration<java.lang.String> getIDs()
        Specified by:
        getIDs in interface javax.naming.directory.Attributes
      • put

        public javax.naming.directory.Attribute put​(java.lang.String attrID,
                                                    java.lang.Object val)
        Specified by:
        put in interface javax.naming.directory.Attributes
      • put

        public javax.naming.directory.Attribute put​(javax.naming.directory.Attribute attr)
        Specified by:
        put in interface javax.naming.directory.Attributes
      • remove

        public javax.naming.directory.Attribute remove​(java.lang.String attrID)
        Specified by:
        remove in interface javax.naming.directory.Attributes
      • clone

        public java.lang.Object clone()
        Specified by:
        clone in interface javax.naming.directory.Attributes
        Overrides:
        clone in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object