Adds an attribute to the collection. If the collection already has an attribute of this class, it will be replaced.
eOk if the attribute is added to the collection successfully, or eInvalidInput if the attribute parameter is invalid.