/*
This method will set values to following attributes setFederalID,
setApplicationType ,setFormVersion
420464
private void setPhsCheckListBasicProperties(PHS398Checklist13 phsChecklist) {
		phsChecklist.setFormVersion(FormVersion.v1_3.getVersion());
		DevelopmentProposalContract developmentProposal = pdDoc
				.getDevelopmentProposal();
		ApplicationType.Enum applicationEnum = null;
		if (developmentProposal.getProposalType() != null
				&& Integer.parseInt(developmentProposal.getProposalType().getCode()) < PROPOSAL_TYPE_CODE_6) {
			applicationEnum = ApplicationType.Enum.forInt(Integer
					.valueOf(developmentProposal.getProposalType().getCode()));
		}
		phsChecklist.setApplicationType(applicationEnum);
		String federalId = getSubmissionInfoService().getFederalId(pdDoc.getDevelopmentProposal().getProposalNumber());
		if (federalId != null) {
			phsChecklist.setFederalID(federalId);
		}
	}
107525
@Override
    public void setParameters(Object[] params) throws CDKException {
        if (params.length != 1) throw new CDKException("ElementRule expects one parameters");

        if (!(params[0] == null || params[0] instanceof MolecularFormulaRange))
            throw new CDKException("The parameter must be of type MolecularFormulaExpand");

        mfRange = (MolecularFormulaRange) params[0];
    }
1121943
@Override
    public void setAttributes(final Map<String, List<Object>> attributes) {
        for (final IAdditionalDescriptors additionalDescriptors : delegateDescriptors) {
            additionalDescriptors.setAttributes(attributes);
        }
    }
256392
protected void init() {
        FormModel model = createFormModel();
        if(getId() == null)
            formId = model.getId();
        if (model instanceof ValidatingFormModel) {
            ValidatingFormModel validatingFormModel = (ValidatingFormModel) model;
            setFormModel(validatingFormModel);
        } else {
            throw new IllegalArgumentException("Unsupported form model implementation " + formModel);
        }
        getApplicationConfig().applicationObjectConfigurer().configure(this, getId());
	}
197427
@Override
    public void setAttributeProperties(final String deviceName, final String attributeName,
            final Map<String, String[]> properties) throws DevFailed {
        cache.setAttributeProperties(deviceName, attributeName, properties);
    }
1209714
@Override
	public void setFwkAttribute(final String name, final Object value) {
		if (attribMap == null) {
			attribMap = new HashMap<>();
		}

		attribMap.put(name, value);
	}
618876
@Override
    public void setAttribute(String name, Object value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "Setting attribute: " + name);
        }
        this.attributes.put(name, value);
    }
96439
@SuppressWarnings("unchecked")
    private void setPropertyValue(Entity entity, Attribute attr, String propName, LdapAttribute ldapAttr) throws WIMException {
        String dataType = entity.getDataType(propName);
        boolean isMany = entity.isMultiValuedProperty(propName);

        String syntax = LDAP_ATTR_SYNTAX_STRING;

        if (ldapAttr != null) {
            syntax = ldapAttr.getSyntax();
            if (tc.isEventEnabled()) {
                Tr.event(tc, "ldapAttr " + ldapAttr + " syntax is " + syntax);
            }
        }

        try {

            if (isMany) {
                for (NamingEnumeration<?> enu = attr.getAll(); enu.hasMoreElements();) {
                    Object ldapValue = enu.nextElement();
                    if (ldapValue != null) {
                        entity.set(propName, processPropertyValue(entity, propName, dataType, syntax, ldapValue));
                    }
                }
            } else {
                Object ldapValue = attr.get();
                if (ldapValue != null) {
                    entity.set(propName, processPropertyValue(entity, propName, dataType, syntax, ldapValue));
                }
            }

        } catch (NamingException e) {
            if (tc.isEventEnabled()) {
                Tr.event(tc, "Unexpected on " + propName + " with dataType " + dataType, e);
            }
            String msg = Tr.formatMessage(tc, WIMMessageKey.NAMING_EXCEPTION, WIMMessageHelper.generateMsgParms(e.toString(true)));
            throw new WIMSystemException(WIMMessageKey.NAMING_EXCEPTION, msg, e);
        } catch (ClassCastException ce) {
            if (tc.isEventEnabled()) {
                Tr.event(tc, "Failed to cast property " + propName + " to " + dataType, ce);
            }
            if (tc.isErrorEnabled())
                Tr.error(tc, WIMMessageKey.INVALID_PROPERTY_DATA_TYPE, WIMMessageHelper.generateMsgParms(propName));
        } catch (ArrayStoreException ae) {
            if (tc.isEventEnabled()) {
                Tr.event(tc, "Unexpected on " + propName + " with dataType " + dataType, ae);
            }
            if (tc.isErrorEnabled())
                Tr.error(tc, WIMMessageKey.INVALID_PROPERTY_DATA_TYPE, WIMMessageHelper.generateMsgParms(propName));
        }

    }
328113
public void setMimeTypes(com.google.api.ads.admanager.axis.v201902.AssetCreativeTemplateVariableMimeType[] mimeTypes) {
        this.mimeTypes = mimeTypes;
    }
1297653
public void setAttributeValue(final AttributeValue_3 attributeValue_3) {
		deviceAttribute_3 = new DeviceAttribute_3(attributeValue_3);
		use_union = false;

		attributeValue_5.name = attributeValue_3.name;
		attributeValue_5.quality = attributeValue_3.quality;
		attributeValue_5.time = attributeValue_3.time;
		attributeValue_5.r_dim = attributeValue_3.r_dim;
		attributeValue_5.w_dim = attributeValue_3.w_dim;
		attributeValue_5.err_list = attributeValue_3.err_list;
		attributeValue_5.data_format = AttrDataFormat.FMT_UNKNOWN;
    }
94650
private void maybeSetApplicationState()
    {
        if (localNodeData.dcLocalAddress == null)
            return;
        final EndpointState es = Gossiper.instance.getEndpointStateForEndpoint(FBUtilities.getBroadcastAddress());
        if (es == null)
            return;
        final VersionedValue vv = es.getApplicationState(ApplicationState.INTERNAL_IP);
        if ((vv != null && !vv.value.equals(localNodeData.dcLocalAddress.getHostAddress()))
            || vv == null)
        {
            Gossiper.instance.addLocalApplicationState(ApplicationState.INTERNAL_IP,
                StorageService.instance.valueFactory.internalIP(localNodeData.dcLocalAddress.getHostAddress()));
        }
    }
197283
public void setAttributeValue(final AttributeValue attributeValue) {
		deviceAttribute_3 = new DeviceAttribute_3(attributeValue);
		use_union = false;
		attributeValue_5.name = attributeValue.name;
		attributeValue_5.quality = attributeValue.quality;
		attributeValue_5.data_format = AttrDataFormat.FMT_UNKNOWN;
		attributeValue_5.time = attributeValue.time;

		attributeValue_5.r_dim = new AttributeDim();
		attributeValue_5.w_dim = new AttributeDim();
		attributeValue_5.r_dim.dim_x = attributeValue.dim_x;
		attributeValue_5.r_dim.dim_y = attributeValue.dim_y;
		attributeValue_5.w_dim.dim_x = 0;
		attributeValue_5.w_dim.dim_y = 0;
		attributeValue_5.err_list = null;
    }
587621
public void setType(String type) throws ApplicationException {
	type = type.toLowerCase().trim();
	if (type.equals("page")) this.type = lucee.runtime.exp.Abort.SCOPE_PAGE;
	else if (type.equals("request")) this.type = lucee.runtime.exp.Abort.SCOPE_REQUEST;
	else throw new ApplicationException("attribute type has an invalid value [" + type + "], valid values are [page,request]");
    }
516613
public void init(final String name,
			final byte[] value, final int dim_x, final int dim_y) {
		buildAttributeValueObject(name);
		insert_uc(value, dim_x, dim_y);
    }
517665
public void setValueFromObject(Object valueAsJava) {
 	if ((valueAsJava!=null) && (value==null)) {
 	    if (valueAsJava instanceof QualifiedName) { 
 		this.value=valueAsJava;
 	    } else if (valueAsJava instanceof LangString) { 
 		this.value=valueAsJava;
 	    } else if (valueAsJava instanceof byte[]) {
 		setValueAsJava((byte[]) valueAsJava);
 	    } else if (valueAsJava instanceof org.w3c.dom.Node) {
 		setValueAsJava((org.w3c.dom.Node)valueAsJava);
 	    } else {
 		this.value = valueAsJava.toString();
 	    }
 	}
59538
@Override
    public void setAttribute(final String name, final String value) {
        hash.put(name, value);
    }
484081
@Api
	public void setValue(String name, ShortAttribute attribute) {
		FormItem item = formWidget.getField(name);
		if (item != null) {
			item.setValue(attribute.getValue());
		}
	}