Method Summary |
|
public Name | add(String s) Append an element to this Name . |
public Name | add(int i, String s) Insert an element within this Name at the specified
position. |
public Name | addAll(Name name) Append a name to this Name . |
public Name | addAll(int i, Name name) Insert a name within this Name at the specified position.
The name itself may have a number of elements.
Parameters: i - the index of the element where to start inserting the name -must be greater than or equal to 0 and less than or equal tosize. Parameters: name - the name to insert into this Name . |
public Object | clone() Create a copy of this Name . |
public int | compareTo(Object o) Compare this Name with the one supplied as a parameter.
Each class which implements this interface will have a specification of
how to do the comparison.
Parameters: o - the object to compare - cannot be null. |
public boolean | endsWith(Name name) Check if this Name ends with the elements in the supplied
name. |
public String | get(int i) Get an element of this Name .
Parameters: i - the index of the required element - must be greater than orequal to 0 and less than size(). |
public Enumeration<String> | getAll() Get all the elements of this Name . |
public Name | getPrefix(int i) Create a new Name which comprises the first several
elements of this Name .
Parameters: i - the index of the first element not to be included - must begreater than or equal to 0 and less than or equal to size. |
public Name | getSuffix(int i) Create a new Name which comprises the last (size() - i )
elements of this Name .
Parameters: i - the index of the first element to be included - must begreater than or equal to 0 and less than size. |
public boolean | isEmpty() Check if this Name is empty. |
public Object | remove(int i) Delete an element from this Name .
Parameters: i - the index of the element to delete - must be greater than orequal to 0 and less than size. |
public int | size() Get the size of this Name . |
public boolean | startsWith(Name name) Check if this Name starts with the elements in the
supplied name. |