public class JavaName extends Object implements Name
serialVersionUID| Constructor and Description |
|---|
JavaName(JavaName name) |
JavaName(NameTranslator nameTranslator) |
| Modifier and Type | Method and Description |
|---|---|
Name |
add(int posn,
String comp) |
Name |
add(String comp) |
Name |
addAll(int posn,
Name n) |
Name |
addAll(Name suffix) |
Object |
clone() |
int |
compareTo(Object obj) |
boolean |
endsWith(Name n) |
String |
get(int posn) |
Enumeration<String> |
getAll() |
protected ArrayList<String> |
getNameList() |
protected NameTranslator |
getNameTranslator() |
Name |
getPrefix(int posn) |
Name |
getSuffix(int posn) |
boolean |
isEmpty() |
Object |
remove(int posn) |
int |
size() |
boolean |
startsWith(Name n) |
String |
toString() |
public JavaName(JavaName name)
public JavaName(NameTranslator nameTranslator)
protected NameTranslator getNameTranslator()
public int compareTo(Object obj)
compareTo in interface Comparable<Object>compareTo in interface Namepublic Enumeration<String> getAll()
public boolean startsWith(Name n)
startsWith in interface Namepublic Name addAll(Name suffix) throws InvalidNameException
addAll in interface NameInvalidNameExceptionpublic Name addAll(int posn, Name n) throws InvalidNameException
addAll in interface NameInvalidNameExceptionpublic Name add(String comp) throws InvalidNameException
add in interface NameInvalidNameExceptionpublic Name add(int posn, String comp) throws InvalidNameException
add in interface NameInvalidNameExceptionpublic Object remove(int posn) throws InvalidNameException
remove in interface NameInvalidNameExceptionCopyright © 2016. All rights reserved.