org.smallmind.cloud.namespace.java
Class JavaName
java.lang.Object
org.smallmind.cloud.namespace.java.JavaName
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<Object>, Name
public class JavaName
- extends Object
- implements Name
- See Also:
- Serialized Form
JavaName
public JavaName(JavaName name)
JavaName
public JavaName(NameTranslator nameTranslator)
getNameTranslator
protected NameTranslator getNameTranslator()
getNameList
protected ArrayList<String> getNameList()
compareTo
public int compareTo(Object obj)
- Specified by:
compareTo in interface Comparable<Object>- Specified by:
compareTo in interface Name
size
public int size()
- Specified by:
size in interface Name
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Name
getAll
public Enumeration<String> getAll()
- Specified by:
getAll in interface Name
get
public String get(int posn)
- Specified by:
get in interface Name
getPrefix
public Name getPrefix(int posn)
- Specified by:
getPrefix in interface Name
getSuffix
public Name getSuffix(int posn)
- Specified by:
getSuffix in interface Name
startsWith
public boolean startsWith(Name n)
- Specified by:
startsWith in interface Name
endsWith
public boolean endsWith(Name n)
- Specified by:
endsWith in interface Name
addAll
public Name addAll(Name suffix)
throws InvalidNameException
- Specified by:
addAll in interface Name
- Throws:
InvalidNameException
addAll
public Name addAll(int posn,
Name n)
throws InvalidNameException
- Specified by:
addAll in interface Name
- Throws:
InvalidNameException
add
public Name add(String comp)
throws InvalidNameException
- Specified by:
add in interface Name
- Throws:
InvalidNameException
add
public Name add(int posn,
String comp)
throws InvalidNameException
- Specified by:
add in interface Name
- Throws:
InvalidNameException
remove
public Object remove(int posn)
throws InvalidNameException
- Specified by:
remove in interface Name
- Throws:
InvalidNameException
clone
public Object clone()
- Specified by:
clone in interface Name- Overrides:
clone in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.