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