{{tag>Index Programmers_Reference Methods IEntity_Interface SetAttributeValue}}
====setAttributeValue (String, Object)====
public void setAttributeValue (String attributeName, Object value)
throws InvalidParameterException
This method sets the value of the specified attribute.
The attribute must not be a reference. Use the ''[[pr_methods:setreferences|setReferences]]'' method to set references.
===Parameters===
|''attributeName''|the name of the attribute of the business object or notification the value of which is set|
|''value''|the value of the attribute to set as Object. The type of the object corresponds to the type of the attribute. See [[docs:3500:appendix_a|Appendix A]] that provides the mapping between attribute types and Java types.|
===Throws===
|''InvalidParameterException''|if the specified attribute name does not exist in the business object or notification|