Methods Summary |
---|
public javax.naming.Name | add(java.lang.String comp)Adds a single component to the end of this name.
|
public javax.naming.Name | add(int posn, java.lang.String comp)Adds a single component at a specified position within this name.
Components of this name at or after the index of the new component
are shifted up by one (away from index 0) to accommodate the new
component.
|
public javax.naming.Name | addAll(javax.naming.Name suffix)Adds the components of a name -- in order -- to the end of this name.
|
public javax.naming.Name | addAll(int posn, javax.naming.Name n)Adds the components of a name -- in order -- at a specified position
within this name.
Components of this name at or after the index of the first new
component are shifted up (away from 0) to accommodate the new
components.
|
public java.lang.Object | clone()Generates a new copy of this name.
Subsequent changes to the components of this name will not
affect the new copy, and vice versa.
|
public int | compareTo(java.lang.Object obj)Compares this name with another name for order.
Returns a negative integer, zero, or a positive integer as this
name is less than, equal to, or greater than the given name.
As with Object.equals(), the notion of ordering for names
depends on the class that implements this interface.
For example, the ordering may be
based on lexicographical ordering of the name components.
Specific attributes of the name, such as how it treats case,
may affect the ordering. In general, two names of different
classes may not be compared.
|
public boolean | endsWith(javax.naming.Name n)Determines whether this name ends with a specified suffix.
A name n is a suffix if it is equal to
getSuffix(size()-n.size()).
|
public java.lang.String | get(int posn)Retrieves a component of this name.
|
public java.util.Enumeration | getAll()Retrieves the components of this name as an enumeration
of strings. The effect on the enumeration of updates to
this name is undefined. If the name has zero components,
an empty (non-null) enumeration is returned.
|
public javax.naming.Name | getPrefix(int posn)Creates a name whose components consist of a prefix of the
components of this name. Subsequent changes to
this name will not affect the name that is returned and vice versa.
|
public javax.naming.Name | getSuffix(int posn)Creates a name whose components consist of a suffix of the
components in this name. Subsequent changes to
this name do not affect the name that is returned and vice versa.
|
public boolean | isEmpty()Determines whether this name is empty.
An empty name is one with zero components.
|
public java.lang.Object | remove(int posn)Removes a component from this name.
The component of this name at the specified position is removed.
Components with indexes greater than this position
are shifted down (toward index 0) by one.
|
public int | size()Returns the number of components in this name.
|
public boolean | startsWith(javax.naming.Name n)Determines whether this name starts with a specified prefix.
A name n is a prefix if it is equal to
getPrefix(n.size()).
|