Adds necessary attributes to the map.<p>

@param attributes the attribute map
@param callback the callback to execute
492673
public void getImageAttributes(Map<String, String> attributes, I_CmsSimpleCallback<Map<String, String>> callback) {

        if (getGalleryMode() == GalleryMode.editor) {
            m_imageEditorFormatsTab.getImageAttributes(attributes);
            m_imageAdvancedTab.getImageAttributes(attributes, callback);
        } else {
            callback.execute(attributes);
        }
    }
810437
public GetSMSAttributesResult withAttributes(java.util.Map<String, String> attributes) {
        setAttributes(attributes);
        return this;
    }
1112052
@JsonIgnore
    public void setAttribute(final String key, final Object value) {
        attributes.put(key, CollectionUtils.toCollection(value, ArrayList.class));
    }
1085844
public void setAttribute(String name, Object o) {
		if(logger.isDebugEnabled()) {
        	logger.debug("setAttribute - name=" + name + ", object=" + o);
        }
		if (name == null)
			throw new NullPointerException("Attribute name can not be null.");
		this.getAttributeMap().put(name, o);
	}
857089
public void setAttribute(final String name, final Attribute attribute) {
        if (name.equals(MAP_KEY)) {
            this.mapAttribute = (MapAttribute) attribute;
        }
    }
85598
public void setAttributeDefinitions(java.util.Collection<AttributeDefinition> attributeDefinitions) {
        if (attributeDefinitions == null) {
            this.attributeDefinitions = null;
            return;
        }

        this.attributeDefinitions = new java.util.ArrayList<AttributeDefinition>(attributeDefinitions);
    }
872496
public void setAttributes( final String... attributes )
    {
        this.attributes = attributes == null ? null : new HashSet<String>( Arrays.asList( attributes ) );
    }
311941
public void setUserAttributes(Map<String, Object> attributes)
    {
        userAttributes.putAll(attributes);
        propertyChangeSupport.firePropertyChange(USER_ATTRIBUTES, null, userAttributes);
    }
1296882
public void setAttributeMethodInfos(JmxAttributeMethodInfo[] attributeMethodInfos) {
		if (this.attributeMethodInfos == null) {
			this.attributeMethodInfos = arrayToList(attributeMethodInfos);
		} else {
			for (JmxAttributeMethodInfo attributeMethodInfo : attributeMethodInfos) {
				this.attributeMethodInfos.add(attributeMethodInfo);
			}
		}
	}
444822
public void setAttributeMap( Map savedAttrs )
    {
        assert savedAttrs != null : "Map of attributes must be non-null";

        Map currentAttrs = _scopedContainer.getAttrMap();

        Map attrs = new HashMap();
        attrs.putAll( savedAttrs );

        if ( currentAttrs != null )
        {
            attrs.putAll( currentAttrs );
        }

        _scopedContainer.setAttrMap( attrs  );
    }
948786
private void registerMandatoryAttributes(Attributes attributes) {
    // see https://sourceforge.net/p/jerichohtml/discussion/350024/thread/501a7d05/
    Map<String, String> attrs = context.getMandatoryAttributes();
    if (!attrs.isEmpty()) {
      for (Entry<String, String> i : attrs.entrySet()) {
        String v = i.getValue();
        if (v == null) {
          outputDocument.insert(attributes.getBegin(), " " + i.getKey() + " ");
        } else {
          outputDocument.insert(attributes.getBegin(), " " + i.getKey() + "\"" + v + "\" ");
        }
      }
    }
  }
528817
public void addAttribute(TreeHtmlAttributeInfo attr)
    {
        if (_attribute == null) {
            _attribute = new ArrayList();
        }
        attr.setParent(this);
        _attribute.add(attr);
    }
260202
public Endpoint withAttributes(java.util.Map<String, String> attributes) {
        setAttributes(attributes);
        return this;
    }
1292210
public void setAttributes(Map<String, Object> attr) {
    pendingAttributes.clear();
    pendingAttributes.putAll(attr);
  }
935519
public void setAttributeUpdates(java.util.Collection<LinkAttributeUpdate> attributeUpdates) {
        if (attributeUpdates == null) {
            this.attributeUpdates = null;
            return;
        }

        this.attributeUpdates = new java.util.ArrayList<LinkAttributeUpdate>(attributeUpdates);
    }
769791
protected void addAttribute() {
        attributes.put(attribute, builder.toString().trim());
        attribute = null;
        Strings.clearBuilder(builder);
    }
1107483
public void setAttributes(java.util.Collection<AccountAttribute> attributes) {
        if (attributes == null) {
            this.attributes = null;
            return;
        }

        this.attributes = new java.util.ArrayList<AccountAttribute>(attributes);
    }