Sets the parameters attribute of the MMElementRule object.

@param params          The new parameters value
@throws CDKException   Description of the Exception

@see                   #getParameters
324166
@Override
    public void setParameters(Object[] params) throws CDKException {
        if (params.length > 2) throw new CDKException("MMElementRule only expects maximal two parameters");

        if (params[0] != null) {
            if (!(params[0] instanceof Database))
                throw new CDKException("The parameter must be of type Database enum");
            databaseUsed = (Database) params[0];
        }

        if (params.length > 1 && params[1] != null) {
            if (!(params[1] instanceof RangeMass))
                throw new CDKException("The parameter must be of type RangeMass enum");
            rangeMassUsed = (RangeMass) params[1];
        }

        if ((databaseUsed == Database.DNP) && (rangeMassUsed == RangeMass.Minus500))
            this.hashMap = getDNP_500();
        else if ((databaseUsed == Database.DNP) && (rangeMassUsed == RangeMass.Minus1000))
            this.hashMap = getDNP_1000();
        else if ((databaseUsed == Database.DNP) && (rangeMassUsed == RangeMass.Minus2000))
            this.hashMap = getDNP_2000();
        else if ((databaseUsed == Database.DNP) && (rangeMassUsed == RangeMass.Minus3000))
            this.hashMap = getDNP_3000();
        else if ((databaseUsed == Database.WILEY) && (rangeMassUsed == RangeMass.Minus500))
            this.hashMap = getWisley_500();
        else if ((databaseUsed == Database.WILEY) && (rangeMassUsed == RangeMass.Minus1000))
            this.hashMap = getWisley_1000();
        else if ((databaseUsed == Database.WILEY) && (rangeMassUsed == RangeMass.Minus2000))
            this.hashMap = getWisley_2000();
    }
156113
public void setParams(List<AstNode> params) {
        if (params == null) {
            this.params = null;
        } else {
            if (this.params != null)
                this.params.clear();
            for (AstNode param : params)
                addParam(param);
        }
    }
478276
@Override
    public void setParameters(Object[] params) throws CDKException {
        if (params.length > 1) {
            throw new CDKException("SigmaElectronegativityDescriptor only expects one parameter");
        }
        if (!(params[0] instanceof Integer)) {
            throw new CDKException("The parameter must be of type Integer");
        }
        if (params.length == 0) return;
        maxIterations = (Integer) params[0];
    }
1308113
@Override
    public void setParameters(Object[] params) throws CDKException {
        if (params.length > 3) throw new CDKException("PartialPiChargeDescriptor only expects three parameter");

        if (!(params[0] instanceof Integer)) throw new CDKException("The parameter must be of type Integer");
        maxIterations = (Integer) params[0];

        if (params.length > 1 && params[1] != null) {
            if (!(params[1] instanceof Boolean)) throw new CDKException("The parameter must be of type Boolean");
            lpeChecker = (Boolean) params[1];
        }

        if (params.length > 2 && params[2] != null) {
            if (!(params[2] instanceof Integer)) throw new CDKException("The parameter must be of type Integer");
            maxResonStruc = (Integer) params[2];
        }
    }
595288
public void setAll(Map<String, String> params) {
        for (Map.Entry<String, String> entry : params.entrySet()) {
            setParameter(entry.getKey(), entry.getValue());
        }
    }
827958
public void writeParameterSet(ParameterSet params) throws IOException {
        int len = params.getSerializedSize();
        growIfNeeded(len);
        params.flattenToBuffer(buffer.b());
    }
460456
public static String setParameters(String value, final Object[] params) {
		if (params != null) {
			for (int i = 0; i < params.length; i++) {
				value = value.replaceAll("\\{" + i + "\\}", params[i].toString());
			}
		}
		return value;
	}
497719
@Override
    public void setParameters(Object[] params) throws CDKException {
        if (params.length > 1) {
            throw new CDKException("DistanceToAtomDescriptor only expects two parameters");
        }
        if (!(params[0] instanceof Integer)) {
            throw new CDKException("The parameter must be of type Integer");
        }
        focusPosition = (Integer) params[0];
    }
861617
protected static void validateParamsPresence(Map params, String... keys) {
        for (String name : keys) {
            if (!params.containsKey(name)) {
                throw new IllegalArgumentException("parameter: '" + name + "' is missing");
            }
        }
    }
1009104
public void setParameters(java.util.Collection<PolicyParameter> parameters) {
        if (parameters == null) {
            this.parameters = null;
            return;
        }

        this.parameters = new java.util.ArrayList<PolicyParameter>(parameters);
    }
258288
@Override
    public void setInitParameters(Map<java.lang.String, java.lang.Object> initParms) {
        super.setInitParameters(initParms);
        String declarationsParm = (String) initParms.get("allowDeclarations");
        String scriptletsParm = (String) initParms.get("allowScriptlets");
        String expressionsParm = (String) initParms.get("allowExpressions");
        String rtExpressionsParm = (String) initParms.get("allowRTExpressions");

        allowDeclarations = "true".equalsIgnoreCase(declarationsParm);
        allowScriptlets = "true".equalsIgnoreCase(scriptletsParm);
        allowExpressions = "true".equalsIgnoreCase(expressionsParm);
        allowRTExpressions = "true".equalsIgnoreCase(rtExpressionsParm);
    }
598236
public void setDynamicParameters(Set<String> dynamicParams) {

        if (dynamicParams == null) {
            dynamicParams = Sets.newHashSet();
        }
        m_dynamicParameters = dynamicParams;
    }
147349
private void setParam(ElementEnum elementEnumParam, String objectParam, LiteralOption selector)
	{
		this.elementEnumParam = elementEnumParam;
		this.objectParam = objectParam;
		this.selector = selector;
	}
92926
private void setParameterValue(CmsObject cms, String key, String value) {

        if (m_parameters == null) {
            m_parameters = getParameterMap(getStringValue(cms));
        }
        if (CmsStringUtil.isEmptyOrWhitespaceOnly(value) && m_parameters.containsKey(key)) {
            m_parameters.remove(key);
        } else if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(value)) {
            m_parameters.put(key, new String[] {value});
        }
        String result = CmsRequestUtil.getRequestLink(getStringValue(cms));
        result = CmsRequestUtil.appendParameters(result, m_parameters, false);
        setStringValue(cms, result);
    }
876538
private void setParam(Boolean booleanParam, Integer integerParam, String literalParam, T objectParam)
	{
		this.booleanParam = booleanParam;
		this.integerParam = integerParam;
		this.literalParam = literalParam;
		this.objectParam = objectParam;
	}
1057473
public void setSdParams(List<SDParam> sdParams) {
        if (null == sdParams) {
            throw new IllegalArgumentException("sdParams list cannot be null");
        }
        this.sdParams.addAll(sdParams);
    }
1023760
public void setParamsToRuntimeCheck(Predicate<String> paramNames) {
    checkState(this.paramsToRuntimeTypeCheck == null);
    this.paramsToRuntimeTypeCheck = checkNotNull(paramNames);
  }