/** * 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 final Attribute getObjectClassAttribute() { return getAttribute("objectClass"); }
/** * 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 final Attribute getObjectClassAttribute() { return getAttribute("objectClass"); }
/** * Retrieves the attribute with the specified name. * * @param attributeName The name of the attribute to retrieve. It must not * be {@code null}. * * @return The requested attribute from this entry, or {@code null} if the * specified attribute is not present in this entry. */ public final Attribute getAttribute(final String attributeName) { return getAttribute(attributeName, schema); }
/** * Retrieves the attribute with the specified name. * * @param attributeName The name of the attribute to retrieve. It must not * be {@code null}. * * @return The requested attribute from this entry, or {@code null} if the * specified attribute is not present in this entry. */ public final Attribute getAttribute(final String attributeName) { return getAttribute(attributeName, schema); }
entry.getAttribute(attributeType.getNameOrOID(), schema); if (a != null)
entry.getAttribute(attributeType.getNameOrOID(), schema); if (a != null)
/** * Removes the specified attribute from this entry. * * @param attributeName The name of the attribute to remove. It must not be * {@code null}. * * @return {@code true} if the attribute was removed from the entry, or * {@code false} if it was not present. */ public boolean removeAttribute(final String attributeName) { ensureNotNull(attributeName); if (schema == null) { return (attributes.remove(toLowerCase(attributeName)) != null); } else { final Attribute a = getAttribute(attributeName, schema); if (a == null) { return false; } else { attributes.remove(toLowerCase(a.getName())); return true; } } }
/** * Removes the specified attribute from this entry. * * @param attributeName The name of the attribute to remove. It must not be * {@code null}. * * @return {@code true} if the attribute was removed from the entry, or * {@code false} if it was not present. */ public boolean removeAttribute(final String attributeName) { ensureNotNull(attributeName); if (schema == null) { return (attributes.remove(toLowerCase(attributeName)) != null); } else { final Attribute a = getAttribute(attributeName, schema); if (a == null) { return false; } else { attributes.remove(toLowerCase(a.getName())); return true; } } }
/** * Adds the provided attribute to this entry, replacing any existing set of * values for the associated attribute. * * @param attribute The attribute to be included in this entry. It must not * be {@code null}. */ public void setAttribute(final Attribute attribute) { ensureNotNull(attribute); final String lowerName; final Attribute a = getAttribute(attribute.getName(), schema); if (a == null) { lowerName = toLowerCase(attribute.getName()); } else { lowerName = toLowerCase(a.getName()); } attributes.put(lowerName, attribute); }
/** * Adds the provided attribute to this entry, replacing any existing set of * values for the associated attribute. * * @param attribute The attribute to be included in this entry. It must not * be {@code null}. */ public void setAttribute(final Attribute attribute) { ensureNotNull(attribute); final String lowerName; final Attribute a = getAttribute(attribute.getName(), schema); if (a == null) { lowerName = toLowerCase(attribute.getName()); } else { lowerName = toLowerCase(a.getName()); } attributes.put(lowerName, attribute); }
final Attribute a = e.getAttribute(attributeName); if ((a == null) || (! a.hasValue()))
if ((entry != null) && entry.hasAttribute(attributeName)) final Attribute a = entry.getAttribute(attributeName); throw new AssertionError(ERR_TEST_ATTR_MISSING_VALUE.get(dn, attributeName,
final Attribute attr = getAttribute(attributeName, schema); if (attr == null)
final Attribute attr = getAttribute(attributeName, schema); if (attr == null)
final Attribute attr = getAttribute(attributeName, schema); if (attr == null)
final Attribute attr = getAttribute(attributeName, schema); if (attr == null)
final Attribute attr = getAttribute(attributeName, schema); if (attr == null)
final Attribute attr = getAttribute(attributeName, schema); if (attr == null)
final Attribute attr = getAttribute(attributeName, schema); if (attr == null)
final Attribute attr = getAttribute(attributeName, schema); if (attr == null)