Lines Matching defs:Rdn

54  * The Rdn class represents an RDN as attribute type/value mappings,
58 * of type and value when the Rdn consist of a single type/value pair,
66 * <code>Rdn</code> will properly parse all valid RDNs, but
75 * The following code example shows how to construct an Rdn using the
78 * Rdn rdn = new Rdn("cn", "Juicy, Fruit");
90 * Rdn rdn = new Rdn("cn=Juicy\\, Fruit");
96 * <tt>Rdn</tt> need not be synchronized.
105 public class Rdn implements Serializable, Comparable<Object> {
116 * Constructs an Rdn from the given attribute set. See
129 public Rdn(Attributes attrSet) throws InvalidNameException {
153 * Constructs an Rdn from the given string.
163 public Rdn(String rdnString) throws InvalidNameException {
169 * Constructs an Rdn from the given <tt>rdn</tt>.
171 * created Rdn.
172 * @param rdn The non-null Rdn to be copied.
174 public Rdn(Rdn rdn) {
180 * Constructs an Rdn from the given attribute type and
193 public Rdn(String type, Object value) throws InvalidNameException {
212 Rdn() {
217 * Adds the given attribute type and value to this Rdn.
225 * @return The updated Rdn, not a new one. Cannot be null.
228 Rdn put(String type, Object value) {
249 * Retrieves one of this Rdn's value.
264 * Retrieves one of this Rdn's type.
282 * Returns this Rdn as a string represented in a format defined by
286 * @return The string representation of the Rdn.
302 * Compares this Rdn with the specified Object for order.
304 * Rdn is less than, equal to, or greater than the given Object.
306 * If obj is null or not an instance of Rdn, ClassCastException
315 * @return A negative integer, zero, or a positive integer as this Rdn
317 * @exception ClassCastException if obj is null or not a Rdn.
321 if (!(obj instanceof Rdn)) {
322 throw new ClassCastException("The obj is not a Rdn");
327 Rdn that = (Rdn) obj;
342 * Compares the specified Object with this Rdn for equality.
343 * Returns true if the given object is also a Rdn and the two Rdns
356 * If obj is null or not an instance of Rdn, false is returned.
358 * @param obj object to be compared for equality with this Rdn.
359 * @return true if the specified object is equal to this Rdn.
366 if (!(obj instanceof Rdn)) {
369 Rdn that = (Rdn) obj;
386 * @return An int representing the hash code of this Rdn.
403 * view of the type/value mappings contained in this Rdn.
406 * mappings of this Rdn.
496 * Retrieves the number of attribute type/value pairs in this Rdn.
497 * @return The non-negative number of type/value pairs in this Rdn.