/** * Retrieves the "objectClass" attribute from the entry, if available. * * @return The "objectClass" attribute from the entry, or {@code null} if * that attribute not available. */ public Attribute getObjectClassAttribute() { return getAttribute("objectClass"); }
/** * Retrieves the values of the "objectClass" attribute from the entry, if * available. * * @return The values of the "objectClass" attribute from the entry, or * {@code null} if that attribute is not available. */ public String[] getObjectClassValues() { return getAttributeValues("objectClass"); }
/** * Indicates whether this entry contains the specified object class. * * @param objectClassName The name of the object class for which to make the * determination. It must not be {@code null}. * * @return {@code true} if this entry contains the specified object class, or * {@code false} if not. */ public boolean hasObjectClass(final String objectClassName) { return hasAttributeValue("objectClass", objectClassName); }
/** * Indicates whether the provided object is equal to this entry. The provided * object will only be considered equal to this entry if it is an entry with * the same DN and set of attributes. * * @param o The object for which to make the determination. * * @return {@code true} if the provided object is considered equal to this * entry, or {@code false} if not. */ @Override() public boolean equals(final Object o) { if ((o == null) || (! (o instanceof CompactEntry))) { return false; } return toEntry().equals(((CompactEntry) o).toEntry()); }
/** * Appends an LDIF-formatted string representation of this entry to the * provided buffer. No wrapping will be performed, and no extra blank lines * will be added. * * @param buffer The buffer to which to append the LDIF representation of * this entry. */ public void toLDIFString(final StringBuilder buffer) { toLDIFString(buffer, 0); }
/** * Retrieves the RDN for this entry. * * @return The RDN for this entry, or {@code null} if the DN is the null DN. * * @throws LDAPException If the DN string cannot be parsed as a valid DN. */ public RDN getRDN() throws LDAPException { return getParsedDN().getRDN(); }
/** * Appends an LDIF representation of this entry to the provided buffer. Long * lines will not be wrapped. * * @param buffer The buffer to which the LDIF representation of this entry * should be written. */ public void toLDIF(final ByteStringBuffer buffer) { toLDIF(buffer, 0); }
/** * Retrieves a string representation of this entry. * * @return A string representation of this entry. */ @Override() public String toString() { final StringBuilder buffer = new StringBuilder(); toString(buffer); return buffer.toString(); }
/** * Indicates whether the provided object is equal to this entry. The provided * object will only be considered equal to this entry if it is an entry with * the same DN and set of attributes. * * @param o The object for which to make the determination. * * @return {@code true} if the provided object is considered equal to this * entry, or {@code false} if not. */ @Override() public boolean equals(final Object o) { if ((o == null) || (! (o instanceof CompactEntry))) { return false; } return toEntry().equals(((CompactEntry) o).toEntry()); }
/** * Appends an LDIF-formatted string representation of this entry to the * provided buffer. No wrapping will be performed, and no extra blank lines * will be added. * * @param buffer The buffer to which to append the LDIF representation of * this entry. */ public void toLDIFString(final StringBuilder buffer) { toLDIFString(buffer, 0); }
/** * Retrieves the RDN for this entry. * * @return The RDN for this entry, or {@code null} if the DN is the null DN. * * @throws LDAPException If the DN string cannot be parsed as a valid DN. */ public RDN getRDN() throws LDAPException { return getParsedDN().getRDN(); }
/** * Retrieves an LDIF representation of this entry, with each attribute value * on a separate line. Long lines will not be wrapped. * * @return An LDIF representation of this entry. */ public String[] toLDIF() { return toLDIF(0); }
/** * Retrieves a string representation of this entry. * * @return A string representation of this entry. */ @Override() public String toString() { final StringBuilder buffer = new StringBuilder(); toString(buffer); return buffer.toString(); }
/** * Retrieves the "objectClass" attribute from the entry, if available. * * @return The "objectClass" attribute from the entry, or {@code null} if * that attribute not available. */ public Attribute getObjectClassAttribute() { return getAttribute("objectClass"); }
/** * Appends an LDIF representation of this entry to the provided buffer. * * @param buffer The buffer to which the LDIF representation of this * entry should be written. * @param wrapColumn The column at which long lines should be wrapped. A * value less than or equal to two indicates that no * wrapping should be performed. */ public void toLDIF(final ByteStringBuffer buffer, final int wrapColumn) { toEntry().toLDIF(buffer, wrapColumn); }
/** * Retrieves an LDIF-formatted string representation of this entry. No * wrapping will be performed, and no extra blank lines will be added. * * @return An LDIF-formatted string representation of this entry. */ public String toLDIFString() { final StringBuilder buffer = new StringBuilder(); toLDIFString(buffer, 0); return buffer.toString(); }
/** * Retrieves the parent DN for this entry. * * @return The parent DN for this entry, or {@code null} if there is no * parent. * * @throws LDAPException If the DN string cannot be parsed as a valid DN. */ public DN getParentDN() throws LDAPException { return getParsedDN().getParent(); }
/** * Appends an LDIF representation of this entry to the provided buffer. Long * lines will not be wrapped. * * @param buffer The buffer to which the LDIF representation of this entry * should be written. */ public void toLDIF(final ByteStringBuffer buffer) { toLDIF(buffer, 0); }
/** * Retrieves the values of the "objectClass" attribute from the entry, if * available. * * @return The values of the "objectClass" attribute from the entry, or * {@code null} if that attribute is not available. */ public String[] getObjectClassValues() { return getAttributeValues("objectClass"); }
/** * Indicates whether this entry contains the specified object class. * * @param objectClassName The name of the object class for which to make the * determination. It must not be {@code null}. * * @return {@code true} if this entry contains the specified object class, or * {@code false} if not. */ public boolean hasObjectClass(final String objectClassName) { return hasAttributeValue("objectClass", objectClassName); }