org.apache.directory.api.ldap.model.name
Class DnUtils

java.lang.Object
  extended by org.apache.directory.api.ldap.model.name.DnUtils

public final class DnUtils
extends Object

Utility class used to manipulate Dn or Rdn elements.

Author:
Apache Directory Project

Constructor Summary
DnUtils()
           
 
Method Summary
static String getRdnAttributeType(String rdn)
          Gets the attributeType of a RDN (the left part of the RDN).
static String getRdnValue(String rdn)
          Gets the value of a RDN ( the right part of the RDN).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DnUtils

public DnUtils()
Method Detail

getRdnAttributeType

public static String getRdnAttributeType(String rdn)
Gets the attributeType of a RDN (the left part of the RDN). The RDN is supposed to contain only one AVA.

Parameters:
rdn - the RDN
Returns:
the attributeType

getRdnValue

public static String getRdnValue(String rdn)
Gets the value of a RDN ( the right part of the RDN). The RDN is supposed to contain only one AVA.

Parameters:
rdn - the RDN
Returns:
the value of tpart of the RDN


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.