Class NamingEntry


  • public class NamingEntry
    extends java.lang.Object
    Represents a binding in a NamingContext.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CONTEXT
      Entry type for a sub-context.
      static int ENTRY
      Entry type for a regular binding.
      static int LINK_REF
      Entry type for a link reference.
      java.lang.String name
      The binding name.
      static int REFERENCE
      Entry type for a reference.
      int type
      The type instance variable is used to avoid using RTTI when doing lookups.
      java.lang.Object value
      The bound object value.
    • Constructor Summary

      Constructors 
      Constructor Description
      NamingEntry​(java.lang.String name, java.lang.Object value, int type)
      Creates a new naming entry.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LINK_REF

        public static final int LINK_REF
        Entry type for a link reference.
        See Also:
        Constant Field Values
      • REFERENCE

        public static final int REFERENCE
        Entry type for a reference.
        See Also:
        Constant Field Values
      • type

        public int type
        The type instance variable is used to avoid using RTTI when doing lookups.
      • name

        public final java.lang.String name
        The binding name.
      • value

        public java.lang.Object value
        The bound object value.
    • Constructor Detail

      • NamingEntry

        public NamingEntry​(java.lang.String name,
                           java.lang.Object value,
                           int type)
        Creates a new naming entry.
        Parameters:
        name - The binding name
        value - The bound object
        type - The entry type
    • Method Detail

      • equals

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

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