Name

Name

Synopsis

This interface represents the name of an object in a naming system. A Name can be either a compound name or a composite name. This interface is used primarily by developers who are writing JNDI service providers, not by JNDI application developers. As an application developer, you can use String objects instead of Name objects to specify names in Context and javax.naming.directory.DirContext method calls.

                  
public interface Name extends Cloneable, Serializable {
// Public Instance Methods
   public abstract javax.naming.Name add(
        String comp) throws InvalidNameException;  
   public abstract javax.naming.Name add(int posn, 
        String comp) throws InvalidNameException;  
   public abstract javax.naming.Name addAll(
        javax.naming.Name suffix) throws InvalidNameException;  
   public abstract javax.naming.Name addAll(int posn, 
        javax.naming.Name n) throws InvalidNameException;  
   public abstract Object clone();  
   public abstract int compareTo( Object obj);  
   public abstract boolean endsWith( javax.naming.Name n);  
   public abstract String get( int posn);  
   public abstract java.util.Enumeration getAll();  
   public abstract javax.naming.Name getPrefix( int posn);  
   public abstract javax.naming.Name getSuffix( int posn);  
   public abstract boolean isEmpty();  
   public abstract Object remove(
        int posn) throws InvalidNameException;  
   public abstract int size();  
   public abstract boolean startsWith( javax.naming.Name n); } ...

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.