FileDocCategorySizeDatePackage
NamingEntry.javaAPI DocGlassfish v2 API3316Fri May 04 22:33:00 BST 2007org.apache.naming

NamingEntry

public class NamingEntry extends Object
Represents a binding in a NamingContext.
author
Remy Maucherat
version
$Revision: 1.3 $ $Date: 2007/05/05 05:32:59 $

Fields Summary
public static final int
ENTRY
public static final int
LINK_REF
public static final int
REFERENCE
public static final int
CONTEXT
public int
type
The type instance variable is used to avoid unsing RTTI when doing lookups.
public String
name
public Object
value
Constructors Summary
public NamingEntry(String name, Object value, int type)



    // ----------------------------------------------------------- Constructors


           
        this.name = name;
        this.value = value;
        this.type = type;
    
Methods Summary
public booleanequals(java.lang.Object obj)

        if ((obj != null) && (obj instanceof NamingEntry)) {
            return name.equals(((NamingEntry) obj).name);
        } else {
            return false;
        }
    
public inthashCode()

        return name.hashCode();