|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--netscape.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=Airius.com" has three components: "uid=bjensen", "ou=People", and "o=Airius.com".
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 FormConstructor Summary | |
RDN(java.lang.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. |
java.lang.String[] |
explodeRDN(boolean noType)
Returns the DN component as the first element in an array of strings. |
java.lang.String |
getType()
Returns the attribute type of the DN component. |
java.lang.String |
getValue()
Returns the value of the DN component. |
static boolean |
isRDN(java.lang.String rdn)
Determines if the specified string is an distinguished name component. |
java.lang.String |
toString()
Returns the string representation of the DN component. |
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
object from the specified
DN component.rdn
- DN componentMethod Detail |
public java.lang.String[] explodeRDN(boolean noType)
noType
- specify true
to ignore the attribute type and
equals sign (for example, "cn=") and return only the valuepublic java.lang.String getType()
public java.lang.String getValue()
public java.lang.String toString()
public static boolean isRDN(java.lang.String rdn)
dn
- 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |