public final class RDN
extends java.lang.Object
implements java.io.Serializable
Each DN component consists of an attribute type and a value. For example, in "o=Airius.com", the attribute type is "o" and the value is "Airius.com".
You can use objects of this class to add components to an
existing DN object.
DN,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
_cesAttributes |
static java.lang.String |
CES_SYNTAX |
| Constructor and Description |
|---|
RDN(java.lang.String rdn)
Constructs a new
RDN object from the specified
DN component. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(RDN rdn)
Determines if the current DN component is equal to the specified
DN component.
|
java.lang.String[] |
explodeRDN(boolean noType)
Deprecated.
use
toString or getValues instead. |
static java.lang.String[] |
getAttributesForSyntax(java.lang.String oid)
Returns all attributes registered for the given syntax as a
String Array. |
static java.lang.String |
getAttributeSyntax(java.lang.String attr)
Returns the syntax for the attribute if the given attribute is registered
in the internal attribute table.
|
java.lang.String |
getType()
Deprecated.
use
getTypes() instead. |
java.lang.String[] |
getTypes()
Returns the attribute types of the DN component.
|
java.lang.String |
getValue()
Deprecated.
use
getValues() instead. |
java.lang.String[] |
getValues()
Returns the values of the DN component.
|
boolean |
isMultivalued()
Returns
true if the RDN is multi-valued. |
static boolean |
isRDN(java.lang.String rdn)
Determines if the specified string is a distinguished name component.
|
static void |
registerAttributeSyntax(java.lang.String attr,
java.lang.String oid)
Registers the the given attribute for the given syntax in an
internal table.
|
java.lang.String |
toString()
Returns the string representation of the DN component.
|
static void |
unregisterAttributeSyntax(java.lang.String attr)
Removes the the given attribute from the attribute syntax table.
|
public static final java.lang.String[] _cesAttributes
public static final java.lang.String CES_SYNTAX
public RDN(java.lang.String rdn)
RDN object from the specified
DN component.rdn - DN componentpublic java.lang.String[] explodeRDN(boolean noType)
toString or getValues instead.noType - specify true to ignore the attribute type and
equals sign (for example, "cn=") and return only the valuepublic java.lang.String getType()
getTypes() instead.public java.lang.String[] getTypes()
public java.lang.String getValue()
getValues() instead.public java.lang.String[] getValues()
public boolean isMultivalued()
true if the RDN is multi-valued.true if the RDN is multi-valued.public java.lang.String toString()
toString in class java.lang.Objectpublic static boolean isRDN(java.lang.String rdn)
rdn - the string to checktrue if the string is a distinguished name component.public boolean equals(RDN rdn)
rdn - the DN component to compare against the
current DN component.true if the two DN components are equal.registerAttributeSyntax(java.lang.String, java.lang.String),
getAttributeSyntax(java.lang.String)public static void registerAttributeSyntax(java.lang.String attr,
java.lang.String oid)
equals() method.attr - the attribute to register.oid - the syntax to register with the attribute.equals(netscape.ldap.util.RDN),
unregisterAttributeSyntax(java.lang.String),
getAttributeSyntax(java.lang.String),
getAttributesForSyntax(java.lang.String)public static void unregisterAttributeSyntax(java.lang.String attr)
attr - the attribute to remove.registerAttributeSyntax(java.lang.String, java.lang.String),
getAttributeSyntax(java.lang.String),
getAttributesForSyntax(java.lang.String)public static java.lang.String getAttributeSyntax(java.lang.String attr)
attr - the attribute to lookup in the table.unregisterAttributeSyntax(java.lang.String),
registerAttributeSyntax(java.lang.String, java.lang.String),
getAttributesForSyntax(java.lang.String)public static java.lang.String[] getAttributesForSyntax(java.lang.String oid)
String Array.oid - the syntax to look up in the table.String[]unregisterAttributeSyntax(java.lang.String),
registerAttributeSyntax(java.lang.String, java.lang.String),
getAttributeSyntax(java.lang.String)