API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.naming. NameClassPair View Source
Author(s)
Rosanna Lee
Scott Seligman
Since
1.3
Version
1.11 05/11/17
Serial
Hierarchy
 Object
      NameClassPair
Implements
 Serializable
Subclasses
Description
public class NameClassPair
  This class represents the object name and class name pair of a binding found in a context.
Constructors
public NameClassPair (String name, String className)
  Constructs an instance of a NameClassPair given its name and class name.
public NameClassPair (String name, String className, boolean isRelative)
  Constructs an instance of a NameClassPair given its name, class name, and whether it is relative to the listing context.
Methods
Hide/Show inherited methods
public String getClassName ()
  Retrieves the class name of the object bound to the name of this binding.
public String getName ()
  Retrieves the name of this binding.
public String getNameInNamespace ()
  Retrieves the full name of this binding.
public boolean isRelative ()
  Determines whether the name of this binding is relative to the target context (which is named by the first parameter of the list() method).
public void setClassName (String name)
  Sets the class name of this binding.
public void setName (String name)
  Sets the name of this binding.
public void setNameInNamespace (String fullName)
  Sets the full name of this binding.
public void setRelative (boolean r)
  Sets whether the name of this binding is relative to the target context (which is named by the first parameter of the list() method).
public String toString ()
  Generates the string representation of this name/class pair.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar