com.ca.jcs.jndi
Class SimpleName

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface javax.naming.Name
serialVersionUID
 
Constructor Summary
SimpleName()
           
 
Method Summary
 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()
           
 Name getPrefix(int posn)
           
 Name getSuffix(int posn)
           
 boolean isEmpty()
           
 Object remove(int posn)
           
 int size()
           
 boolean startsWith(Name n)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleName

public SimpleName()
Method Detail

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