API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.naming.ldap. LdapName View Source
Author(s)
Scott Seligman
Since
1.5
Version
1.8 05/11/17
Serial
Hierarchy
 Object
      LdapName
Implements
 Name
Subclasses
Description
public class LdapName
  This class represents a distinguished name as specified by RFC 2253.
See also:   
Constructors
public LdapName (List<Rdn> rdns)
  Constructs an LDAP name given its parsed RDN components.
public LdapName (String name) throws InvalidNameException
  Constructs an LDAP name from the given distinguished name.
private LdapName (String name, ArrayList rdns, int beg, int end)
Methods
Hide/Show inherited methods
public Name add (int posn, Rdn comp)
  Adds a single RDN at a specified position within this LDAP name.
public Name add (int posn, String comp) throws InvalidNameException [Specified in Name]
  Adds a single component at a specified position within this LDAP name.
public Name add (Rdn comp)
  Adds a single RDN to the end of this LDAP name.
public Name add (String comp) throws InvalidNameException [Specified in Name]
  Adds a single component to the end of this LDAP name.
public Name addAll (int posn, List<Rdn> suffixRdns)
  Adds the RDNs of a name -- in order -- at a specified position within this name.
public Name addAll (int posn, Name suffix) throws InvalidNameException [Specified in Name]
  Adds the components of a name -- in order -- at a specified position within this name.
public Name addAll (List<Rdn> suffixRdns)
  Adds the RDNs of a name -- in order -- to the end of this name.
public Name addAll (Name suffix) throws InvalidNameException [Specified in Name]
  Adds the components of a name -- in order -- to the end of this name.
public Object clone () [Specified in Name]
  Generates a new copy of this name.
public int compareTo (Object obj) [Specified in Name]
  Compares this LdapName with the specified Object for order.
public boolean endsWith (List<Rdn> rdns)
  Determines whether the specified RDN sequence forms a suffix of this LDAP name.
public boolean endsWith (Name n) [Specified in Name]
  Determines whether this LDAP name ends with a specified LDAP name suffix.
public boolean equals (Object obj)
  Determines whether two LDAP names are equal.
public String get (int posn) [Specified in Name]
  Retrieves a component of this LDAP name as a string.
public Enumeration<String> getAll () [Specified in Name]
  Retrieves the components of this name as an enumeration of strings.
public Name getPrefix (int posn) [Specified in Name]
  Creates a name whose components consist of a prefix of the components of this LDAP name.
public Rdn getRdn (int posn)
  Retrieves an RDN of this LDAP name as an Rdn.
public List<Rdn> getRdns ()
  Retrieves the list of relative distinguished names.
public Name getSuffix (int posn) [Specified in Name]
  Creates a name whose components consist of a suffix of the components in this LDAP name.
public int hashCode ()
  Computes the hash code of this LDAP name.
public boolean isEmpty () [Specified in Name]
  Determines whether this LDAP name is empty.
public Object remove (int posn) throws InvalidNameException [Specified in Name]
  Removes a component from this LDAP name.
public int size () [Specified in Name]
  Retrieves the number of components in this LDAP name.
public boolean startsWith (List<Rdn> rdns)
  Determines whether the specified RDN sequence forms a prefix of this LDAP name.
public boolean startsWith (Name n) [Specified in Name]
  Determines whether this LDAP name starts with a specified LDAP name prefix.
public String toString ()
  Returns a string representation of this LDAP name in a format defined by RFC 2253 and described in the class description.
Fields
Hide/Show inherited fields
publicfinalstatic long serialVersionUID = "-3617482732056931635" [Inherited From Name]
The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar