|
Directory SDK for Java 4.19 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnetscape.ldap.util.RDN
Objects of this class represent the components of a distinguished name (DN). (In some situations, these components are referred to as relative distinguished names, or RDNs.) For example, the DN "uid=bjensen, ou=People, o=Example.com" has three components: "uid=bjensen", "ou=People", and "o=Example.com".
Each DN component consists of an attribute type and a value. For example, in "o=Example.com", the attribute type is "o" and the value is "Example.com".
You can use objects of this class to add components to an
existing DN object.
DN,
Serialized Form| Field Summary | |
static String[] |
_cesAttributes
|
static String |
CES_SYNTAX
|
| Constructor Summary | |
RDN(String rdn)
Constructs a new RDN object from the specified
DN component. |
|
| Method Summary | |
boolean |
equals(RDN rdn)
Determines if the current DN component is equal to the specified DN component. |
String[] |
explodeRDN(boolean noType)
Deprecated. use toString or getValues instead. |
static String[] |
getAttributesForSyntax(String oid)
Returns all attributes registered for the given syntax as a String Array. |
static String |
getAttributeSyntax(String attr)
Returns the syntax for the attribute if the given attribute is registered in the internal attribute table. |
String |
getType()
Deprecated. use getTypes() instead. |
String[] |
getTypes()
Returns the attribute types of the DN component. |
String |
getValue()
Deprecated. use getValues() instead. |
String[] |
getValues()
Returns the values of the DN component. |
boolean |
isMultivalued()
Returns true if the RDN is multi-valued. |
static boolean |
isRDN(String rdn)
Determines if the specified string is a distinguished name component. |
static void |
registerAttributeSyntax(String attr,
String oid)
Registers the the given attribute for the given syntax in an internal table. |
String |
toString()
Returns the string representation of the DN component. |
static void |
unregisterAttributeSyntax(String attr)
Removes the the given attribute from the attribute syntax table. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String[] _cesAttributes
public static final String CES_SYNTAX
| Constructor Detail |
public RDN(String rdn)
RDN object from the specified
DN component.
rdn - DN component| Method Detail |
public 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 value
public String getType()
getTypes() instead.
public String[] getTypes()
public String getValue()
getValues() instead.
public String[] getValues()
public boolean isMultivalued()
true if the RDN is multi-valued.
true if the RDN is multi-valued.public String toString()
public static boolean isRDN(String rdn)
rdn - the string to check
true 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(String attr,
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(String attr)
attr - the attribute to remove.registerAttributeSyntax(java.lang.String, java.lang.String),
getAttributeSyntax(java.lang.String),
getAttributesForSyntax(java.lang.String)public static String getAttributeSyntax(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 String[] getAttributesForSyntax(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)
|
Directory SDK for Java 4.19 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||