set the value type Specifies the criteria type for the search.

@param type value to set
@throws ApplicationException
483253
public void setType(String type) throws ApplicationException {
	if (type == null) return;
	type = type.toLowerCase().trim();
	if (type.equals("simple")) this.type = SearchCollection.SEARCH_TYPE_SIMPLE;
	else if (type.equals("explicit")) this.type = SearchCollection.SEARCH_TYPE_EXPLICIT;
	else throw new ApplicationException("attribute type of tag search has an invalid value, valid values are [simple,explicit] now is [" + type + "]");

    }
329435
@SuppressWarnings("unchecked")
    private <T extends XPathBuilder> T setSearchLabelType(SearchType... searchLabelTypes) {
        this.searchLabelType = new ArrayList<>();
        if (searchLabelTypes != null) {
            this.searchLabelType.addAll(0, Arrays.asList(searchLabelTypes));
        }
        this.searchLabelType = cleanUpSearchType(this.searchLabelType);
        return (T) this;
    }
109316
@NonNull
    public SourceParams setType(@Source.SourceType String type) {
        mType = type;
        mTypeRaw = type;
        return this;
    }
17345
public function setType($type = self::TYPE_TEXT) {
		if (!in_array($type, array(self::TYPE_TEXT, self::TYPE_HTML))) {
			throw new MailException('invalid type: ' . $type);
		}
		$this->type = $type;
	}
521154
public void setParameterType(String type) {
		String typeName;
		if (Strings.isEmpty(type)) {
			typeName = Object.class.getName();
		} else {
			typeName = type;
		}
		this.parameter.setParameterType(newTypeRef(this.context, typeName));
	}
1090656
public void setExceptionType(String exceptionType) {
		if (exceptionType != null) {
			NullArgumentException.validateNotEmpty(exceptionType, "Error code");
		}
		this.exceptionType = exceptionType;
	}
636657
private void setType(String type) {
        requireArgument(type != null && !type.trim().isEmpty(), "Type cannot be null or empty.");
        _type = type;
    }
1045663
public void setType(String type) throws ExpressionException {
	type = type.toLowerCase().trim();
	if (type.equals("exception")) {
	    errorPage.setType(ErrorPage.TYPE_EXCEPTION);
	}
	else if (type.equals("request")) {
	    errorPage.setType(ErrorPage.TYPE_REQUEST);
	}
	// else if(type.equals("validation")) this.type=VALIDATION;
	else throw new ExpressionException("invalid type [" + type + "] for tag error, use one of the following types [exception,request]");
    }
682485
public void setElementType (Class type, String fieldName, Class elementType) {
		ObjectMap<String, FieldMetadata> fields = getFields(type);
		FieldMetadata metadata = fields.get(fieldName);
		if (metadata == null) throw new JsonException("Field not found: " + fieldName + " (" + type.getName() + ")");
		metadata.elementType = elementType;
	}
968308
public void setScope(String strScope) throws ApplicationException {
	strScope = strScope.trim().toLowerCase();
	if (strScope.equals("onelevel")) scope = SearchControls.ONELEVEL_SCOPE;
	else if (strScope.equals("base")) scope = SearchControls.OBJECT_SCOPE;
	else if (strScope.equals("subtree")) scope = SearchControls.SUBTREE_SCOPE;
	else throw new ApplicationException("invalid value for attribute scope [" + strScope + "], valid values are [oneLevel,base,subtree]");
    }
809893
public void setResourceType(java.util.Collection<StringFilter> resourceType) {
        if (resourceType == null) {
            this.resourceType = null;
            return;
        }

        this.resourceType = new java.util.ArrayList<StringFilter>(resourceType);
    }
1032888
public void setBasisType(com.google.api.ads.admanager.axis.v201902.BasisType basisType) {
        this.basisType = basisType;
    }
846715
@Api
	public void setMapType(MapType type) {
		this.type = type;
		if (googleMap != null) {
			setMapType(googleMap, type.toString());
		}
	}
553074
public void setSelectionType(MaterialDatePickerType selectionType) {
        this.selectionType = selectionType;
        switch (selectionType) {
            case MONTH_DAY:
                options.selectMonths = true;
                break;
            case YEAR_MONTH_DAY:
                options.selectYears = yearsToDisplay;
                options.selectMonths = true;
                break;
            case YEAR:
                options.selectYears = yearsToDisplay;
                options.selectMonths = false;
                break;
        }
    }
130334
public void setModifytype(String modifyType) throws ApplicationException {
	modifyType = modifyType.trim().toLowerCase();
	if (modifyType.equals("add")) this.modifyType = DirContext.ADD_ATTRIBUTE;
	else if (modifyType.equals("delete")) this.modifyType = DirContext.REMOVE_ATTRIBUTE;
	else if (modifyType.equals("replace")) this.modifyType = DirContext.REPLACE_ATTRIBUTE;
	else throw new ApplicationException("invalid value for attribute modifyType [" + modifyType + "], valid values are [add,replace,delete]");
    }
767841
public void setContentType(String contentType) throws InvalidArgumentException {
    if (Strings.isNullOrEmpty(contentType)) {
      throw new InvalidArgumentException("empty content type");
    }

    this.contentType = contentType;
  }
407461
public void setType(String type) throws ApplicationException {
	if (StringUtil.isEmpty(type, true)) return;
	type = type.toLowerCase().trim();

	if (type.equals("url")) param.setType(HttpParamBean.TYPE_URL);
	else if (type.equals("formfield") || type.equals("form")) param.setType(HttpParamBean.TYPE_FORM);
	else if (type.equals("cgi")) param.setType(HttpParamBean.TYPE_CGI);
	else if (type.startsWith("head") || type.startsWith("header")) param.setType(HttpParamBean.TYPE_HEADER);
	else if (type.equals("cookie")) param.setType(HttpParamBean.TYPE_COOKIE);
	else if (type.equals("file")) param.setType(HttpParamBean.TYPE_FILE);
	else if (type.equals("xml")) param.setType(HttpParamBean.TYPE_XML);
	else if (type.equals("body")) param.setType(HttpParamBean.TYPE_BODY);
	else throw new ApplicationException("invalid type [" + type + "], valid types are [body,cgi,cookie,file,form,head,url,xml]");
    }