This method stores state information associated with the name and optional
context.

@param context The optional context
@param name The name
@param value The value
170658
public void setState(Object context, String name, Object value) {
        StateInformation si = stateInformation.get(name);
        if (si == null) {
            si = new StateInformation();
            stateInformation.put(name, si);
        }
        si.set(context, value);
    }
730642
public FeatureState setParameter(String name, String value) {
        if (value != null) {
            this.parameters.put(name, value);
        }
        else {
            this.parameters.remove(name);
        }
        return this;
    }
1374889
public void set(String name, String value) {
		HttpHeader header = get(name);
		if(header == null) {
			add(name,value);
		} else {
			header.setValue(value);
		}
	}
491752
public void set(String name, Object value) {
        hashAttributes.put(name, value);

        if (plugin != null) {
            plugin.invalidate();
        }
    }
1289520
@Override
    public void setHeader(String name, String value) {
        this.checkState();
        super.setHeader(name, value);
    }
1031659
public Object saveState(FacesContext context) {
        if (context == null) {
            throw new NullPointerException();
        }
        if (!initialStateMarked()) {
            Object values[] = new Object[1];
            values[0] = validationGroups;
            return values;
        }
        return null;
    }
1006437
public RouteContext header(String name, String value) {
        this.response.header(name, value);
        return this;
    }
180477
public void setValueFor(Object value, String name) {
        getMapHelper().setValueForIn(value, name, getCurrentValues());
    }
242075
public static void setStateParam(String name, String value, HttpServletRequest req, HttpServletResponse res) {
		setStateParam(name, value, req, res, false);
	}
1121397
public JNDIContentRepositoryBuilder withContextProperty(final String name, final Object value) {

        contextProperties.put(name, value);
        return this;
    }
104390
public synchronized void setContextAttribute(String name, Object value)
    {
        Object old= super.getContextAttribute(name);
        super.setContextAttribute(name, value);

        if (_contextAttributeListeners != null)
        {
            ServletContextAttributeEvent event=
                new ServletContextAttributeEvent(getServletContext(), name, old != null ? old : value);
            for (int i= 0; i < LazyList.size(_contextAttributeListeners); i++)
            {
                ServletContextAttributeListener l=
                    (ServletContextAttributeListener)LazyList.get(_contextAttributeListeners, i);
                if (old == null)
                    l.attributeAdded(event);
                else
                    if (value == null)
                        l.attributeRemoved(event);
                    else
                        l.attributeReplaced(event);
            }
        }
    }
57382
public void setContextName(final String contextName) {
		NullArgumentException.validateNotNull(contextName, "Context name");
		this.contextName = contextName;

		// remove the previous setting.
		WebAppInitParam prev = getWebAppInitParam("webapp.context");
		if (prev != null) {
			contextParams.remove(prev);
		}

		// set the context name into the context params
		final WebAppInitParam initParam = new WebAppInitParam();
		initParam.setParamName("webapp.context");
		initParam.setParamValue(contextName);
		contextParams.add(initParam);
	}
90796
def context_value(name):
    

    def context_value(_value, context, **_params):
        return defer.succeed(context[name])

    return context_value
632834
public synchronized void setValue(String name, String value) {
        if (map == null) {
            map = new HashMap<String,String>();
        }
        map.put(name, value);
    }
163371
public void set(String name, String value)
    {
        delegate.removeAll(name);
        delegate.put(name,  value);
    }
599510
private void addToContext(final VelocityContext context, final String name, final Object value) {
		if (name.endsWith(LIST_SUFFIX)) {
			// We want to use lists
			Object already = context.get(name);
			if (already != null && !(already instanceof List)) {
				throw new SystemException(
						"VelocityContext contained " + already + " instead of List under " + name);
			}

			List list = (List) context.get(name);

			if (list == null) {
				list = new ArrayList();
				context.put(name, list);
			}

			list.add(value);
		} else {
			context.put(name, value);
		}
	}
1343440
public void setDetail(String name, Object value) {
        if (value == null) {
            details.remove(name);
        } else {
            details.put(name, value);
        }
        
        if (log.isDebugEnabled()) {
            if (value == null) {
                log.debug("Detail removed: " + name);
            } else {
                log.debug("Detail added: " + name + " = " + value);
            }
        }
    }