javax.naming

Class CompositeName

public class CompositeName extends Object implements Name, Cloneable, Serializable

Represents names that may span over several namespaces. For instance, the composite name http://www.gnu.org/software/classpath/index.html spans over three namespaces (the protocol http, the web server location (www.gnu.org) and the index.html location on the server).
Constructor Summary
CompositeName()
protected CompositeName(Enumeration<String> comps)
CompositeName(String n)
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()

Constructor Detail

CompositeName

public CompositeName()

CompositeName

protected CompositeName(Enumeration<String> comps)

CompositeName

public CompositeName(String n)

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()