Set the bean property value.

@param property the bean property
@param bean the bean
@param value the value to set
329229
protected void setBeanPropertyValue(final String property, final Object bean,
			final Serializable value) {
		if (bean == null) {
			return;
		}

		if (".".equals(property)) {
			LOG.error("Set of entire bean is not supported by this model");
			return;
		}
		try {
			PropertyUtils.setProperty(bean, property, value);
		} catch (Exception e) {
			LOG.error("Failed to set bean property " + property + " on " + bean, e);
		}
	}
1307208
public void setProperty(final String propertyName, final List<String> values) {
        Preconditions.checkNotNull(propertyName);
        if (values == null) {
            properties.put(propertyName, null);
            return;
        }
        properties.put(propertyName, values);
    }
1285780
public void setPropertiesOn(final Bean bean) {
        String[][] properties = getProperties();
        for (int i = 0; i < properties.length; i++) {
            if (properties[i].length < 2) {
                continue;
            }
            for (int j = 0; j < properties[i].length - 1; j++) {
                bean.addProperty(properties[i][0], properties[i][j + 1]);
            }
        }
    }
272244
@Override
    public BeanBuilder<T> set(MetaProperty<?> metaProperty, Object value) {
        try {
            set(metaProperty.name(), value);
            return this;
        } catch (RuntimeException ex) {
            if (value == JodaBeanTests.TEST_COVERAGE_STRING) {
                return this;
            }
            throw ex;
        }
    }
1137216
synchronized void setProperty(final String name, final String value) {
        Hashtable<String, String> properties = new Hashtable<String, String>(this.properties);
        properties.put(name, value);

        this.properties = properties;
    }
696839
@Override
	public void setBean(final Object bean) {
		BeanAndProviderBoundComponentModel model = getOrCreateComponentModel();
		model.setBean(bean);

		if (getBeanProperty() == null) {
			setBeanProperty(".");
		}
		// Remove values in scratch map
		removeBeanFromScratchMap();
	}
500495
public function set($property, $value)
    {
        $properties = $this->getValue('properties', []);
        $properties[$property] = [$value];
        $this->setValue('properties', $properties);
    }
984485
@Override
    public void setPropertyValue(PropertyInfo propInfo, Object value) {
        setPropertyValue(propInfo.getId(), value);
    }
752900
public static final void setValue(Object bean, String property, Object v)
    {
        Object vv = BeanHelper.getValue(bean, property);
        if (v != null && v.getClass().isArray() &&  vv != null && (vv instanceof Collection))
        {   // array assignment to Collection
            Collection col = (Collection) vv;
            Class[] pt = BeanHelper.getParameterTypes(bean, property);
            col.clear();
            int len = Array.getLength(v);
            for (int ii=0;ii<len;ii++)
            {
                col.add(ConvertUtility.convert(pt[0], Array.get(v, ii)));
            }
        }
        else
        {
            if (v != null && v.getClass().isArray())
            {   // array with single menber
                if (Array.getLength(v) == 1)
                {
                    v = Array.get(v, 0);
                }
            }
            Class<?> type = BeanHelper.getType(bean, property);
            if (v != null)
            {
                v = ConvertUtility.convert(type, v);
            }
            Object value = v;
            doFor(
                bean, 
                property, 
                type,
                (Object a, int i)->{Array.set(a, i, value);return null;},
                (List l, int i)->{l.set(i, value);return null;},
                (Object b, Class c, String p)->{try
                {
                    c.getField(p).set(b, value);return null;
                }
                catch (IllegalArgumentException | IllegalAccessException ex)
                {
                    throw new IllegalArgumentException(ex);
                }
                }, 
                (Object b, Method m)->{try
                {
                    m.invoke(b, value);return null;
                }
                catch (IllegalArgumentException | IllegalAccessException | InvocationTargetException ex)
                {
                    throw new IllegalArgumentException(ex);
                }
                });
        }
    }
1166470
public void setProperty(Object object, String property, Object newValue) {
        setProperty(theClass, object, property, newValue, false, false);
    }
290636
public static void setProperty(Object obj, String propertyName, final Object value) {
		Method method = getSetterMethod(obj.getClass(), propertyName, value.getClass());
		if (method != null) {
			invokeMethod(obj, method, value);
		} else {
			setFieldValue(obj, propertyName, value);
		}
	}
662949
public static void clearBeanProperty(final Object bean, final String name) {
		Validate.notNull(bean, "Bean required");
		Validate.notEmpty(name, "Not empty property name required");

		final String methodName = new StringBuilder("set")
				.append(name.substring(0, 1).toUpperCase())
				.append(name.substring(1)).toString();
		for (Method method : bean.getClass().getMethods()) {
			if (method.getName().equals(methodName)) {
				try {
					method.invoke(bean, (Object) null);
					return;
				} catch (Exception exc) {
					throw new RuntimeException("Failed to clear property: "
							+ name);
				}
			}
		}
		throw new RuntimeException("Setter of property not found: " + name);
	}
989238
public synchronized void setBeanContext(BeanContext beanContext)
        throws PropertyVetoException
    {
        ControlBeanContext cbcs = null;

        if (beanContext != null)
        {
            //
            // ControlBeans can only be nested in context service instances that derive
            // from ControlBeanContext.
            //
            if (!(beanContext instanceof ControlBeanContext))
            {
                PropertyChangeEvent pce = new PropertyChangeEvent(_bean, "beanContext", getBeanContext(), beanContext);
                throw new PropertyVetoException("Context does not support nesting controls: " +
                                                beanContext.getClass(), pce);
            }

            cbcs = (ControlBeanContext)beanContext;
        }


        _beanContextServicesDelegate.setBeanContext(beanContext);

        resetControlID();

        _hasSingleThreadedParent = cbcs != null ? cbcs.isSingleThreadedContainer() : false;

        //
        // Notify the bean that its context (container) has been set.
        //
        if (_bean != null)
            _bean.setBeanContext(beanContext);
    }
520780
public static void setProperty(String key, String value, PropertyOwner propertyOwner, Map<String,Object> properties)
    {
        if (propertyOwner != null)
        {
            propertyOwner.setProperty(key, value);
        }
        if (properties != null)
        {
            if (value != null)
                properties.put(key, value);
            else
                properties.remove(key);
        }
    }
833446
@Override
	public Object setProperty(final String key, final String value) {
		lock.writeLock().lock();
		try {
			return properties.setProperty(key, value);
		} finally {
			lock.writeLock().unlock();
		}
	}
862674
public void set(Object obj, Object val, Object... args)
			throws SQLException, IllegalArgumentException,
			IllegalAccessException, InvocationTargetException,
			BeanPropertyException, NoSuchMethodException {
		boolean noValue[] = new boolean[1];
		val = convert(val, getTypeCode(), noValue);

		if (noValue[0])
			return;

		if (m_f != null) {
			m_f.set(obj, val);
			return;
		}

		if (m_mSet != null) {
			if (args == null || args.length == 0)
				m_mSet.invoke(obj, val);
			else {
				Object[] all = new Object[args.length + 1];
				for (int i = 0; i < args.length; i++)
					all[i] = args[i];
				all[all.length - 1] = val;
				m_mSet.invoke(obj, all);
			}
			return;
		}

		throw new BeanPropertyException("Try to write read-only property.");
	}
433233
public static void setPropertyValue(BeanDefinitionBuilder builder, String propertyValue, String propertyName) {
        if (StringUtils.hasText(propertyValue)) {
            builder.addPropertyValue(propertyName, propertyValue);
        }
    }