FileDocCategorySizeDatePackage
NamingEntry.javaAPI DocApache Tomcat 6.0.142236Fri Jul 20 04:20:36 BST 2007org.apache.naming

NamingEntry

public class NamingEntry extends Object
Represents a binding in a NamingContext.
author
Remy Maucherat
version
$Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

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();