/** * Indicates whether this entry contains the specified attribute. It will * only return {@code true} if this entry contains an attribute with the same * name and exact set of values. * * @param attribute The attribute for which to make the determination. It * must not be {@code null}. * * @return {@code true} if this entry contains the specified attribute, or * {@code false}. */ public boolean hasAttribute(final Attribute attribute) { ensureNotNull(attribute); for (final CompactAttribute a : attributes) { if (a.toAttribute().equals(attribute)) { return true; } } return false; }
/** * {@inheritDoc} */ public boolean hasAttribute(final Attribute attribute) { ensureNotNull(attribute); final Attribute a = getAttribute(attribute.getName()); return ((a != null) && attribute.equals(a)); }
/** * {@inheritDoc} */ public boolean hasAttribute(final Attribute attribute) { ensureNotNull(attribute); final Attribute a = getAttribute(attribute.getName()); return ((a != null) && attribute.equals(a)); }
/** * Indicates whether this entry contains the specified attribute. It will * only return {@code true} if this entry contains an attribute with the same * name and exact set of values. * * @param attribute The attribute for which to make the determination. It * must not be {@code null}. * * @return {@code true} if this entry contains the specified attribute, or * {@code false} if not. */ public final boolean hasAttribute(final Attribute attribute) { ensureNotNull(attribute); final String lowerName = toLowerCase(attribute.getName()); final Attribute attr = attributes.get(lowerName); return ((attr != null) && attr.equals(attribute)); }
/** * Indicates whether this entry contains the specified attribute. It will * only return {@code true} if this entry contains an attribute with the same * name and exact set of values. * * @param attribute The attribute for which to make the determination. It * must not be {@code null}. * * @return {@code true} if this entry contains the specified attribute, or * {@code false}. */ public boolean hasAttribute(final Attribute attribute) { ensureNotNull(attribute); for (final CompactAttribute a : attributes) { if (a.toAttribute().equals(attribute)) { return true; } } return false; }
/** * Indicates whether this entry contains the specified attribute. It will * only return {@code true} if this entry contains an attribute with the same * name and exact set of values. * * @param attribute The attribute for which to make the determination. It * must not be {@code null}. * * @return {@code true} if this entry contains the specified attribute, or * {@code false} if not. */ public final boolean hasAttribute(final Attribute attribute) { ensureNotNull(attribute); final String lowerName = toLowerCase(attribute.getName()); final Attribute attr = attributes.get(lowerName); return ((attr != null) && attr.equals(attribute)); }
/** * Indicates whether this RDN contains the specified attribute value. * * @param attributeName The name of the attribute for which to make the * determination. * @param attributeValue The attribute value for which to make the * determination. * * @return {@code true} if RDN contains the specified attribute, or * {@code false} if not. */ public boolean hasAttributeValue(final String attributeName, final byte[] attributeValue) { for (int i=0; i < attributeNames.length; i++) { if (attributeNames[i].equalsIgnoreCase(attributeName)) { final Attribute a = new Attribute(attributeName, schema, attributeValue); final Attribute b = new Attribute(attributeName, schema, attributeValues[i].getValue()); if (a.equals(b)) { return true; } } } return false; }
/** * Indicates whether this RDN contains the specified attribute value. * * @param attributeName The name of the attribute for which to make the * determination. * @param attributeValue The attribute value for which to make the * determination. * * @return {@code true} if RDN contains the specified attribute, or * {@code false} if not. */ public boolean hasAttributeValue(final String attributeName, final String attributeValue) { for (int i=0; i < attributeNames.length; i++) { if (attributeNames[i].equalsIgnoreCase(attributeName)) { final Attribute a = new Attribute(attributeName, schema, attributeValue); final Attribute b = new Attribute(attributeName, schema, attributeValues[i].stringValue()); if (a.equals(b)) { return true; } } } return false; }
/** * Indicates whether this RDN contains the specified attribute value. * * @param attributeName The name of the attribute for which to make the * determination. * @param attributeValue The attribute value for which to make the * determination. * * @return {@code true} if RDN contains the specified attribute, or * {@code false} if not. */ public boolean hasAttributeValue(final String attributeName, final byte[] attributeValue) { for (int i=0; i < attributeNames.length; i++) { if (attributeNames[i].equalsIgnoreCase(attributeName)) { final Attribute a = new Attribute(attributeName, schema, attributeValue); final Attribute b = new Attribute(attributeName, schema, attributeValues[i].getValue()); if (a.equals(b)) { return true; } } } return false; }
/** * Indicates whether this RDN contains the specified attribute value. * * @param attributeName The name of the attribute for which to make the * determination. * @param attributeValue The attribute value for which to make the * determination. * * @return {@code true} if RDN contains the specified attribute, or * {@code false} if not. */ public boolean hasAttributeValue(final String attributeName, final String attributeValue) { for (int i=0; i < attributeNames.length; i++) { if (attributeNames[i].equalsIgnoreCase(attributeName)) { final Attribute a = new Attribute(attributeName, schema, attributeValue); final Attribute b = new Attribute(attributeName, schema, attributeValues[i].stringValue()); if (a.equals(b)) { return true; } } } return false; }
if (sourceAttr.equals(targetAttr))
if (sourceAttr.equals(targetAttr))