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
NameImpl
NameImpl(Properties syntax)
NameImpl
NameImpl(Properties syntax,
String n)
throws InvalidNameException
NameImpl
NameImpl(Properties syntax,
Enumeration comps)
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