Name
NameClassPair
Synopsis
This class represents the name and class of an object bound to a
Context
. The list()
method of Context
returns an NamingEnumeration
of
NameClassPair
objects. Note that NameClassPair
does not represent the
object itself; that is the job of its subclass Binding
.
public class NameClassPair implements Serializable { // Public Constructors public NameClassPair( String name, String className); public NameClassPair(String name, String className, boolean isRelative); // Public Instance Methods public String getClassName(); public String getName(); public boolean isRelative(); public void setClassName( String name); public void setName( String name); public void setRelative( boolean r); // Public Methods Overriding Object public String toString(); }
Subclasses
javax.naming.Binding
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.