This method will add an attribute to the list of inheritted attributes.
@param list
@param attr
@param removes
500207
private void removeAttribute(int list, TreeHtmlAttributeInfo attr, RemoveInfo removes)
    {
        assert(attr != null);

        // get the correct array list
        ArrayList al = _lists[list];
        assert(al != null);

        // remove the attributes from the array list -- this should never fail
        boolean removed = al.remove(attr);
        assert(removed) : "Unable to remove attribute:" + attr.getAttribute() + "=" + attr.getValue();

        // if there was a list of removed attributes we need to possibly add one back
        // We do this by walking the removes list and when we find an attribute with the
        // same name and supporting the same list type, we add it to the list.
        if (removes != null) {

            // walk the remove list looking for an attribute with the same name
            int cnt = removes.removes.size();
            for (int i = 0; i < cnt; i++) {
                TreeHtmlAttributeInfo a = (TreeHtmlAttributeInfo) removes.removes.get(i);
                if (attr.getAttribute().equals(a.getAttribute())) {

                    // based upon the type we are removing, if the matching attribute supports the type
                    // then we add it back.
                    switch (list) {
                        case TreeHtmlAttributeInfo.HTML_LOCATION_DIV:
                            if (a.isOnDiv() && !al.contains(a))
                                al.add(a);
                            break;
                        case TreeHtmlAttributeInfo.HTML_LOCATION_ICON:
                            if (a.isOnIcon() && !al.contains(a))
                                al.add(a);
                            break;
                        case TreeHtmlAttributeInfo.HTML_LOCATION_SELECTION_LINK:
                            if (a.isOnSelectionLink() && !al.contains(a))
                                al.add(a);
                            break;
                    }
                }
            }
        }
    }
307051
def add(self,attrlist,attrvalues):
        '''
        
        '''
        for i,d in enumerate(attrlist):
            self[d] = attrvalues[i]
84444
public void ack(List<Attribute> attributes) {
        for (Attribute attr : attributes) {
            queue.remove(attr.conceptId().getValue());
        }
    }
795443
public void setAttributes( final Collection<String> attributes )
    {
        this.attributes = attributes == null ? null : Collections.unmodifiableSet( new HashSet<String>( attributes ) );
    }
591865
private void addToAttributes(final List<ApiAttribute> attributes) {
        for (final ApiObject object : attributes) {
            final ApiModelToGedObjectVisitor visitor = createVisitor();
            object.accept(visitor);
        }
    }
306464
@Override
    public void setAttributes(Map<String, List<String>> attributes) {
        // Tries to modify as many of the existing attributes in place to reduce DB churn in
        // hibernate

        // Make a local copy so we don't edit the original reference
        attributes = new LinkedHashMap<String, List<String>>(attributes);

        for (final Iterator<LocalAccountPersonAttributeImpl> attributesItr =
                        this.attributes.iterator();
                attributesItr.hasNext(); ) {
            final LocalAccountPersonAttributeImpl attribute = attributesItr.next();

            // Remove the new values for the attribute from the input map
            final String name = attribute.getName();
            final List<String> newValues = attributes.remove(name);

            // If no new values remove the attribute
            if (newValues == null) {
                attributesItr.remove();
            }
            // Otherwise update the existing values
            else {
                attribute.setValues(new ArrayList<String>(newValues));
            }
        }

        // Add any remaining new attributes to the list
        for (final Map.Entry<String, List<String>> attribute : attributes.entrySet()) {
            final String name = attribute.getKey();
            final List<String> values = attribute.getValue();
            this.attributes.add(new LocalAccountPersonAttributeImpl(name, values));
        }
    }
978617
@SuppressWarnings("unchecked")
  public <L extends List> L setListProperty(final L list,
                                            final String name,
                                            final String val) {
    removeProperty(list, name);
    return addListProperty(list, name, val);
  }
442820
public M remove(String... attrs) {
		if (attrs != null)
			for (String a : attrs) {
				this.attrs.remove(a);
				this._getModifyFlag().remove(a);
			}
		return (M)this;
	}
1166016
@Override
    public void removeAttributes() {
        // TODO: there must be a direct way to clear the SO on the client side
        Set<String> names = getAttributeNames();
        for (String key : names) {
            SharedObjectEvent event = new SharedObjectEvent(Type.CLIENT_DELETE_DATA, key, null);
            ownerMessage.addEvent(event);
            syncEvents.add(event);
        }
        deleteStats.addAndGet(names.size());
        // clear data
        super.removeAttributes();
        // mark as modified
        modified.set(true);
        // broadcast 'modified' event
        notifyModified();
    }
7919
public void put(String name,List list)
    {
        if (list==null || list.size()==0)
        {
            remove(name);
            return;
        }
        
        Object v=list.get(0);
        if (v!=null)
            put(name,v.toString());
        else
            remove(name);
        
        if (list.size()>1)
        {    
            java.util.Iterator iter = list.iterator();
            iter.next();
            while(iter.hasNext())
            {
                v=iter.next();
                if (v!=null)
                    add(name,v.toString());
            }
        }
    }
1112052
@JsonIgnore
    public void setAttribute(final String key, final Object value) {
        attributes.put(key, CollectionUtils.toCollection(value, ArrayList.class));
    }
148677
public static void addExcludedAttrs(String... attrs) {
		if (attrs != null) {
			for (String attr : attrs) {
				excludedAttrs.add(attr);
			}
		}
	}
150638
public void addAttribute(String attribute)
    {
        if(this.attributes == null)
            this.attributes = new ArrayList<String>();
        this.attributes.add(attribute);
    }
1231142
public void setAttributes(java.util.Collection<TypedLinkAttributeDefinition> attributes) {
        if (attributes == null) {
            this.attributes = null;
            return;
        }

        this.attributes = new java.util.ArrayList<TypedLinkAttributeDefinition>(attributes);
    }
313346
public void add(List list) {
	if (values == null) values = new LinkedList();
	values.add(list);
    }
24077
public final void addAttributes(final Map<String,String> attributes) {
        if(attributes != null) {
            this.attributes.putAll(attributes);
        }
    }
75799
public void addAttribute(String alias, AttributeKey<?> attrKey) {
        ensureNotStarted();
        builder.addAttribute(alias, attrKey);
    }