|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.ldap.util.RDN
A RDN encapsulates a single object's name of a Distinguished Name(DN). The object name represented by this class contains no context. Thus a Relative Distinguished Name (RDN) could be relative to anywhere in the Directories tree.
For example, of following DN, 'cn=admin, ou=marketing, o=corporation', all possible RDNs are 'cn=admin', 'ou=marketing', and 'o=corporation'.
Multivalued attributes are encapsulated in this class. For example the following could be represented by an RDN: 'cn=john + l=US', or 'cn=juan + l=ES'
DN
Constructor Summary | |
RDN()
|
|
RDN(java.lang.String rdn)
Creates an RDN object from the DN component specified in the string RDN |
Method Summary | |
void |
add(java.lang.String attrType,
java.lang.String attrValue,
java.lang.String rawValue)
Adds another value to the RDN. |
boolean |
equals(RDN rdn)
Compares the RDN to the rdn passed. |
java.lang.String[] |
explodeRDN(boolean noTypes)
Returns each multivalued name in the current RDN as an array of Strings. |
protected java.lang.String |
getRawValue()
Returns the actually Raw String before Normalization |
java.lang.String |
getType()
Returns the type of this RDN. |
java.lang.String[] |
getTypes()
Returns all the types for this RDN. |
java.lang.String |
getValue()
Returns the values of this RDN. |
java.lang.String[] |
getValues()
Returns all the types for this RDN. |
boolean |
isMultivalued()
Determines if this RDN is multivalued or not |
java.lang.String |
toString()
Creates a string that represents this RDN, according to RFC 2253 |
java.lang.String |
toString(boolean noTypes)
Creates a string that represents this RDN. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RDN(java.lang.String rdn)
rdn
- the DN componentpublic RDN()
Method Detail |
public boolean equals(RDN rdn)
rdn
- the RDN to compare to
java.lang.IllegalArgumentException
- if the application compares a name
with an OID.protected java.lang.String getRawValue()
public void add(java.lang.String attrType, java.lang.String attrValue, java.lang.String rawValue)
attrType
- Attribute type, could be an OID or StringattrValue
- Attribute Value, must be normalized and escapedrawValue
- or text before normalization, can be Nullpublic java.lang.String toString()
public java.lang.String toString(boolean noTypes)
noTypes
- true if attribute types will be omitted.
public java.lang.String[] explodeRDN(boolean noTypes)
noTypes
- Specifies whether Attribute types are included. The attribute
type names will be ommitted if the parameter noTypes is true.
public java.lang.String getType()
public java.lang.String[] getTypes()
public java.lang.String getValue()
public java.lang.String[] getValues()
public boolean isMultivalued()
|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |