com.ca.jcs.jndi
Class SimpleName
java.lang.Object
com.ca.jcs.jndi.SimpleName
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<Object>, Name
public class SimpleName
- extends Object
- implements Name
Implementation of JNDI Name interface which doesn't impose restrictions on
attribute id components in RDNs, unlike LdapName,
which make for easier passing of arbitrary connectorMapTo= values to concrete connectors.
- See Also:
- Serialized Form
SimpleName
public SimpleName()
clone
public Object clone()
- Specified by:
clone in interface Name- Overrides:
clone in class Object
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
Created 2011-07-14 13:27 EST