javax.naming

Class CompoundName

public class CompoundName extends Object implements Name, Cloneable, Serializable

Represents hierarchical names from the single namespace. For instance, the path /home/audriusa/classpath/file.txt is the compound name, using the filesystem namespace.

Since: 1.3

UNKNOWN: May 16, 2001 FIXME: this class is underspecified. For instance, the `flat' direction is never described. If it means that the CompoundName can only have a single element, then the Enumeration-based constructor ought to throw InvalidNameException.

Field Summary
protected PropertiesmySyntax
Constructor Summary
protected CompoundName(Enumeration<String> comps, Properties syntax)
CompoundName(String n, Properties syntax)
Method Summary
Nameadd(int posn, String comp)
Nameadd(String comp)
NameaddAll(int posn, Name n)
NameaddAll(Name suffix)
Objectclone()
intcompareTo(Object obj)
booleanendsWith(Name n)
booleanequals(Object obj)
Stringget(int posn)
Enumeration<String>getAll()
NamegetPrefix(int posn)
NamegetSuffix(int posn)
inthashCode()
booleanisEmpty()
Objectremove(int posn)
intsize()
booleanstartsWith(Name n)
StringtoString()

Field Detail

mySyntax

protected transient Properties mySyntax

Constructor Detail

CompoundName

protected CompoundName(Enumeration<String> comps, Properties syntax)

CompoundName

public CompoundName(String n, Properties syntax)

Method Detail

add

public Name add(int posn, String comp)

add

public Name add(String comp)

addAll

public Name addAll(int posn, Name n)

addAll

public Name addAll(Name suffix)

clone

public Object clone()

compareTo

public int compareTo(Object obj)

endsWith

public boolean endsWith(Name n)

equals

public boolean equals(Object obj)

get

public String get(int posn)

getAll

public Enumeration<String> getAll()

getPrefix

public Name getPrefix(int posn)

getSuffix

public Name getSuffix(int posn)

hashCode

public int hashCode()

isEmpty

public boolean isEmpty()

remove

public Object remove(int posn)

size

public int size()

startsWith

public boolean startsWith(Name n)

toString

public String toString()