public class NameWrapper extends Object implements Cloneable, Serializable, IName
This is essentially a wrapper around the JNDI Name class.
| Modifier | Constructor and Description | 
|---|---|
| protected  | NameWrapper(ICS ics,
           Class[] argTypes,
           Object[] args)Ultimately, all constructors call this class to instantiate the
 Name implementation class from the classname specified
 in the property file. | 
|   | NameWrapper(ICS ics,
           String name)Constructs a new instance of a name. | 
|   | NameWrapper(ICS ics,
           String name,
           Properties syntax)Constructs a new instance of a name. | 
| protected  | NameWrapper(Name name) | 
| Modifier and Type | Method and Description | 
|---|---|
| IName | add(ICS ics,
   int posn,
   String comp)Adds a single component at a specified position within this
       name. | 
| IName | add(ICS ics,
   String comp)Adds a single component to the end of this name. | 
| IName | addAll(ICS ics,
      IName suffix)Adds the components of a name -- in order -- to the end of this
       name. | 
| IName | addAll(ICS ics,
      int posn,
      IName n)Adds the components of a name -- in order -- at a specified
       position within this name. | 
| String | clean(ICS ics)Return a "clean" string representation for this IName with all whitespace trimmed
       between components. | 
| Object | clone()Generates a new copy of this name. | 
| int | compareTo(ICS ics,
         Object obj)Compares this name with another name for order. | 
| boolean | endsWith(ICS ics,
        IName n)Determines whether this name ends with a specified suffix. | 
| String | get(ICS ics,
   int posn)Retrieves a component of this name. | 
| Enumeration | getAll(ICS ics)Retrieves the components of this name as an enumeration of
       strings. | 
| IName | getPrefix(ICS ics,
         int posn)Creates a name whose components consist of a prefix of the
       components of this name. | 
| IName | getSuffix(ICS ics,
         int posn)Creates a name whose components consist of a suffix of the
       components in this name. | 
| boolean | isEmpty(ICS ics)Determines whether this name is empty. | 
| Object | remove(ICS ics,
      int posn)Removes a component from this name. | 
| int | size(ICS ics)Returns the number of components in this name. | 
| boolean | startsWith(ICS ics,
          IName n)Determines whether this name starts with a specified prefix. | 
| protected static Name | toJNDIName(ICS ics,
          IName name)Convert the specified class. | 
| String | toString()Generates the string representation of this name. | 
protected Name m_impl
protected NameWrapper(Name name)
protected NameWrapper(ICS ics, Class[] argTypes, Object[] args) throws DirectoryException
DirectoryExceptionpublic NameWrapper(ICS ics, String name, Properties syntax) throws DirectoryException
name - The fully qualified name, following the syntax put
       forth in the dir.ini file. It cannot be null.DirectoryExceptionpublic NameWrapper(ICS ics, String name) throws DirectoryException
name - The fully qualified name, following the syntax put
       forth in the dir.ini file. It cannot be null.DirectoryExceptionprotected static Name toJNDIName(ICS ics, IName name) throws DirectoryException
Convert the specified class.
DirectoryExceptionpublic IName add(ICS ics, int posn, String comp) throws DirectoryException
add in interface INameDirectoryExceptionpublic IName add(ICS ics, String comp) throws DirectoryException
add in interface INameDirectoryExceptionpublic IName addAll(ICS ics, int posn, IName n) throws DirectoryException
addAll in interface INameDirectoryExceptionpublic IName addAll(ICS ics, IName suffix) throws DirectoryException
addAll in interface INameDirectoryExceptionpublic Object clone()
public int compareTo(ICS ics, Object obj) throws DirectoryException
compareTo in interface INameDirectoryExceptionpublic boolean endsWith(ICS ics, IName n) throws DirectoryException
endsWith in interface INameDirectoryExceptionpublic String get(ICS ics, int posn) throws DirectoryException
get in interface INameDirectoryExceptionpublic Enumeration getAll(ICS ics) throws DirectoryException
getAll in interface INameDirectoryExceptionpublic IName getPrefix(ICS ics, int posn) throws DirectoryException
getPrefix in interface INameDirectoryExceptionpublic IName getSuffix(ICS ics, int posn) throws DirectoryException
getSuffix in interface INameDirectoryExceptionpublic boolean isEmpty(ICS ics) throws DirectoryException
isEmpty in interface INameDirectoryExceptionpublic Object remove(ICS ics, int posn) throws DirectoryException
remove in interface INameDirectoryExceptionpublic int size(ICS ics) throws DirectoryException
size in interface INameDirectoryExceptionpublic boolean startsWith(ICS ics, IName n) throws DirectoryException
startsWith in interface INameDirectoryExceptionpublic String toString()
public String clean(ICS ics) throws DirectoryException
clean in interface INameDirectoryException