All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.terapico.caf.baseelement.ParamInfo Maven / Gradle / Ivy

The newest version!
package com.terapico.caf.baseelement;

import com.terapico.utils.MapUtil;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class ParamInfo {
	protected String title;
	protected String type = "input";
	protected List> candidateValues;
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public List> getCandidateValues() {
		return candidateValues;
	}
	public void setCandidateValues(List> candidateValues) {
		this.candidateValues = candidateValues;
	}
	public void addCandidate(String key, String value) {
		if (candidateValues == null) {
			candidateValues = new ArrayList<>();
		}
		candidateValues.add(MapUtil.put("key", key).put("value", value).into_map(String.class));
		this.setType("select");
	}
	
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy