Class JavaName
- java.lang.Object
-
- org.smallmind.quorum.namespace.java.JavaName
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Object>,Name
public class JavaName extends Object implements Name
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface javax.naming.Name
serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description JavaName(NameTranslator nameTranslator)JavaName(JavaName name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Nameadd(int posn, String comp)Nameadd(String comp)NameaddAll(int posn, Name n)NameaddAll(Name suffix)Objectclone()intcompareTo(Object obj)booleanendsWith(Name n)Stringget(int posn)Enumeration<String>getAll()protected ArrayList<String>getNameList()protected NameTranslatorgetNameTranslator()NamegetPrefix(int posn)NamegetSuffix(int posn)booleanisEmpty()Objectremove(int posn)intsize()booleanstartsWith(Name n)StringtoString()
-
-
-
Constructor Detail
-
JavaName
public JavaName(JavaName name)
-
JavaName
public JavaName(NameTranslator nameTranslator)
-
-
Method Detail
-
getNameTranslator
protected NameTranslator getNameTranslator()
-
compareTo
public int compareTo(Object obj)
- Specified by:
compareToin interfaceComparable<Object>- Specified by:
compareToin interfaceName
-
getAll
public Enumeration<String> getAll()
-
startsWith
public boolean startsWith(Name n)
- Specified by:
startsWithin interfaceName
-
addAll
public Name addAll(Name suffix) throws InvalidNameException
- Specified by:
addAllin interfaceName- Throws:
InvalidNameException
-
addAll
public Name addAll(int posn, Name n) throws InvalidNameException
- Specified by:
addAllin interfaceName- Throws:
InvalidNameException
-
add
public Name add(String comp) throws InvalidNameException
- Specified by:
addin interfaceName- Throws:
InvalidNameException
-
add
public Name add(int posn, String comp) throws InvalidNameException
- Specified by:
addin interfaceName- Throws:
InvalidNameException
-
remove
public Object remove(int posn) throws InvalidNameException
- Specified by:
removein interfaceName- Throws:
InvalidNameException
-
-