Newer
Older
RestfulChecker / src / restfulchecker / NecessaryParam.java
y-ota on 9 Jan 2019 1 KB 修正
package restfulchecker;

import java.util.ArrayList;

public class NecessaryParam {
	private ArrayList<RestParam> queryParams = new ArrayList<>();
	private ArrayList<RestParam> formParams = new ArrayList<>();
	private ArrayList<String> pathParams = new ArrayList<>();
	private ArrayList<String> keys = new ArrayList<>();
	private ArrayList<String> values = new ArrayList<>();

	public ArrayList<RestParam> getQueryParams() {
		return queryParams;
	}

	public void setQueryParams(RestParam queryParam) {
		queryParams.add(queryParam);
	}

	public ArrayList<RestParam> getFormParams() {
		return formParams;
	}

	public void setFormParams(RestParam formParam) {
		formParams.add(formParam);
	}

	public ArrayList<String> getPathParams() {
		return pathParams;
	}

	public void setPathParams(String pathParam) {
		pathParams.add(pathParam);
	}

	public void setProperty(String key, String value) {
		keys.add(key);
		values.add(value);
	}

	public ArrayList<String> getKeys() {
		return keys;
	}

	public ArrayList<String> getValues() {
		return values;
	}

}