Convenience method to change an attribute value on the server side.

@param response  must not be null or the method silently ignores the call
@param attribute must not be null
771880
@Deprecated
    public static void changeValueCommand(final List<Command> response, final ServerAttribute attribute, final Object value) {
        if (response == null) {
            return;
        }
        if (attribute == null) {
            LOG.error("Cannot change value on a null attribute to '{}'", value);
            return;
        }
        forceChangeValue(value, response, attribute);
    }
204851
public void setDynamicValue(String attribute, String value) {

        if (null == m_dynamicValues) {
            m_dynamicValues = new ConcurrentHashMap<String, String>();
        }
        m_dynamicValues.put(attribute, value);
    }
195857
public void setValue(String name, BooleanAttribute attribute) {
		FormItem item = formWidget.getField(name);
		if (item != null) {
			item.setValue(attribute.getValue());
		}
	}
792058
public void insertAttributeValue(String attributeName, String value, int index) {

        if (m_simpleAttributes.containsKey(attributeName)) {
            m_simpleAttributes.get(attributeName).add(index, value);
        } else {
            setAttributeValue(attributeName, value);
        }
        fireChange();
    }
1083762
@Override
    public BaseJsonBo setAttribute(String attrName, Object value, boolean triggerChange) {
        if (value instanceof JsonNode) {
            if (value instanceof NullNode || value instanceof MissingNode) {
                super.setAttribute(attrName, null, triggerChange);
            } else {
                super.setAttribute(attrName, value.toString(), triggerChange);
            }
        } else {
            JsonNode node = null;
            if (value instanceof String) {
                node = tryParseJson(value.toString());
            }
            node = node != null ? node : SerializationUtils.toJson(value);
            super.setAttribute(attrName, node.toString(), triggerChange);
        }
        return this;
    }
307063
@Override
    public void setAttribute(String key, Object value) {
        if (value == null) {
            setAttribute(key, null);
        } else {
            setAttribute(key, Collections.singletonList(value));
        }
    }
246412
@Override
	public void setAttribute(String name, Object value) {
		attributesSupport.setAttribute(name, value);
	}
91277
public void setAttribute(final String name, final Attribute attribute) {
        if (name.equals("datasource")) {
            this.allAttributes.putAll(((DataSourceAttribute) attribute).getAttributes());
        } else if (this.copyAttributes.contains(name)) {
            this.allAttributes.put(name, attribute);
        }
    }
635604
public void setAttribute(Object key, Object value) {
		if (attributes == null) {
			attributes = new HashMap(5);
		}
		attributes.put(key, value);
	}
1276338
public BaseBo setAttribute(String attrName, Object value, boolean triggerChange) {
        Lock lock = lockForWrite();
        try {
            if (value == null) {
                attributes.remove(attrName);
            } else {
                attributes.put(attrName, value);
            }
            if (triggerChange) {
                triggerChange(attrName);
            }
            markDirty();
            return this;
        } finally {
            lock.unlock();
        }
    }
472894
protected void fireAttributeChange(AttributeChangeEvent event) {
		if (this.listeners != null && isEventFirable()) {
			final AttributeChangeListener[] list = new AttributeChangeListener[this.listeners.size()];
			this.listeners.toArray(list);
			for (final AttributeChangeListener listener : list) {
				listener.onAttributeChangeEvent(event);
			}
		}
	}
1231351
public void setAttribute(String name, String value)
	{
		if (value != null)
			getElement().setAttribute(name, value);
		else
			getElement().removeAttribute(name);
	}
91040
public void set(String name, Object obj) throws IOException {
        if (!(obj instanceof SerialNumber)) {
            throw new IOException("Attribute must be of type SerialNumber.");
        }
        if (name.equalsIgnoreCase(NUMBER)) {
            serial = (SerialNumber)obj;
        } else {
            throw new IOException("Attribute name not recognized by " +
                                "CertAttrSet:CertificateSerialNumber.");
        }
    }
145922
public void set(String name, Object obj) throws IOException {
        if (name.equalsIgnoreCase(ISSUER_NAME)) {
            if (!(obj instanceof GeneralNames)) {
              throw new IOException("Attribute value should be of" +
                                    " type GeneralNames.");
            }
            names = (GeneralNames)obj;
        } else {
          throw new IOException("Attribute name not recognized by " +
                        "CertAttrSet:IssuerAlternativeName.");
        }
        encodeThis();
    }
857089
public void setAttribute(final String name, final Attribute attribute) {
        if (name.equals(MAP_KEY)) {
            this.mapAttribute = (MapAttribute) attribute;
        }
    }
445264
@Override
    public void setAttribute(String name, Object value) {
        final boolean bTrace = TraceComponent.isAnyTracingEnabled();
        if (bTrace && tc.isDebugEnabled()) {
            Tr.debug(tc, "setAttribute: " + name + "=" + value);
        }
        if (null == value) {
            removeAttribute(name);
            return;
        }
        if (isInvalid()) {
            throw new IllegalStateException("Session is invalid");
        }
        HttpSessionBindingEvent replaceEvent = null;
        HttpSessionBindingEvent addEvent = null;
        Object current = this.attributes.remove(name);
        if (null != current) {
            replaceEvent = new HttpSessionBindingEvent(this, name, current);
            if (current instanceof HttpSessionBindingListener) {
                // inform the old value of it's removal
                if (bTrace && tc.isDebugEnabled()) {
                    Tr.debug(tc, "Notifying old value: " + current);
                }
                ((HttpSessionBindingListener) current).valueUnbound(replaceEvent);
            }
        }
        this.attributes.put(name, value);
        if (value instanceof HttpSessionBindingListener) {
            // inform the new value of it's use
            if (bTrace && tc.isDebugEnabled()) {
                Tr.debug(tc, "Notifying new value: " + value);
            }
            addEvent = new HttpSessionBindingEvent(this, name, value);
            ((HttpSessionBindingListener) value).valueBound(addEvent);
        }
        // List<HttpSessionAttributeListener> list = this.myConfig.getSessionAttributeListeners();
        // if (null != list) {
        // // if we replaced a value, let the listeners now that. Otherwise,
        // // tell them of the new value being set
        // if (null != current) {
        // for (HttpSessionAttributeListener listener : list) {
        // if (bTrace && tc.isDebugEnabled()) {
        // Tr.debug(tc, "Notifying listener of replace: " + listener);
        // }
        // listener.attributeReplaced(replaceEvent);
        // }
        // } else {
        // if (null == addEvent) {
        // addEvent = new HttpSessionBindingEvent(this, name, value);
        // }
        // for (HttpSessionAttributeListener listener : list) {
        // if (bTrace && tc.isDebugEnabled()) {
        // Tr.debug(tc, "Notifying listener of set: " + listener);
        // }
        // listener.attributeAdded(addEvent);
        // }
        // }
        // }
    }
778673
public void setAttribute(String name, Object attribute) {
        if (!_iSess.isValid())
            throw new IllegalStateException();
        if (null != attribute) {
            if (!(attribute instanceof HttpSessionBindingListener)) {
                _iSess.setAttribute(name, attribute, Boolean.FALSE);
            } else {
                _iSess.setAttribute(name, attribute, Boolean.TRUE);
            }
        } else {
            // attribute is null
            // if name is not null, remove it ... otherwise do nothing
            if (name != null) {
                _iSess.removeAttribute(name);
            }
        }
    }