Name

CompositeName

Synopsis

This class represents a sequence of names that span multiple namespaces. Each component of a CompositeName is a String name. The CompositeName does not know to which naming system each name component belongs. JNDI uses the forward slash character (“/”) to separate constituent name components.

                  
public class CompositeName implements javax.naming.Name {
// Public Constructors
   public CompositeName();  
   public CompositeName(
        String n) throws InvalidNameException;  
// Protected Constructors
   protected CompositeName( java.util.Enumeration comps);  
// Methods Implementing Name
   public javax.naming.Name add(
        String comp) throws InvalidNameException;  
   public javax.naming.Name add(int posn, 
        String comp) throws InvalidNameException;  
   public javax.naming.Name addAll(
        javax.naming.Name suffix) throws InvalidNameException;  
   public javax.naming.Name addAll(int posn, 
        javax.naming.Name n) throws InvalidNameException;  
   public Object clone();  
   public int compareTo( Object obj);  
   public boolean endsWith( javax.naming.Name n);  
   public String get( int posn);  
   public java.util.Enumeration getAll();  
   public javax.naming.Name getPrefix( int posn);  
   public javax.naming.Name getSuffix( int posn);  
   public boolean isEmpty();                                     // default:true
   public Object remove(
        int posn) throws InvalidNameException;  
   public int size();  
   public boolean startsWith( javax.naming.Name n);  
// Public Methods Overriding Object ...

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.