Sets the specified attribute with a given value.
true if the value is successfully set for the specified attribute, false otherwise.