javax.naming
Class NameImpl

java.lang.Object
  |
  +--javax.naming.NameImpl
All Implemented Interfaces:
Serializable

class NameImpl
extends Object
implements Serializable

The implementation class for CompoundName and CompositeName. This class is package private.

Since:
1.3
See Also:
Serialized Form

Constructor Summary
(package private) NameImpl(Properties syntax)
           
(package private) NameImpl(Properties syntax, Enumeration comps)
           
(package private) NameImpl(Properties syntax, String n)
           
 
Method Summary
 void add(int posn, String comp)
           
 void add(String comp)
           
 boolean addAll(Enumeration comps)
           
 boolean addAll(int posn, Enumeration comps)
           
 int compareTo(NameImpl obj)
          Compares obj to this NameImpl to determine ordering.
 boolean endsWith(int posn, Enumeration suffix)
           
 boolean equals(Object obj)
           
 String get(int posn)
           
 Enumeration getAll()
           
 Enumeration getPrefix(int posn)
           
 Enumeration getSuffix(int posn)
           
 int hashCode()
           
 boolean isEmpty()
           
 Object remove(int posn)
           
 int size()
           
 boolean startsWith(int posn, Enumeration prefix)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NameImpl

NameImpl(Properties syntax)

NameImpl

NameImpl(Properties syntax,
         String n)
   throws InvalidNameException

NameImpl

NameImpl(Properties syntax,
         Enumeration comps)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(NameImpl obj)
Compares obj to this NameImpl to determine ordering. Takes into account syntactic properties such as elimination of blanks, case-ignore, etc, if relevant. Note: using syntax of this NameImpl and ignoring that of comparison target.

size

public int size()

getAll

public Enumeration getAll()

get

public String get(int posn)

getPrefix

public Enumeration getPrefix(int posn)

getSuffix

public Enumeration getSuffix(int posn)

isEmpty

public boolean isEmpty()

startsWith

public boolean startsWith(int posn,
                          Enumeration prefix)

endsWith

public boolean endsWith(int posn,
                        Enumeration suffix)

addAll

public boolean addAll(Enumeration comps)
               throws InvalidNameException

addAll

public boolean addAll(int posn,
                      Enumeration comps)
               throws InvalidNameException

add

public void add(String comp)
         throws InvalidNameException

add

public void add(int posn,
                String comp)
         throws InvalidNameException

remove

public Object remove(int posn)

hashCode

public int hashCode()
Overrides:
hashCode in class Object