com.tinypass.client.id.model.Validator Maven / Gradle / Ivy
package com.tinypass.client.id.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Validator {
private String type = null;
//public enum typeEnum { NOP, MIN, MAX, REGEXP, MIN_AGE, STR_LENGTH, DATE_AFTER, DATE_BEFORE, ONE_OF, MULTIPLE_OF, EMAIL, WHITELIST, BLACKLIST, MIN_CHOSEN, MAX_CHOSEN, PHONE_NUMBER, STEP, };
private Map params = new HashMap();
private String errorMessage = null;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Map getParams() {
return params;
}
public void setParams(Map params) {
this.params = params;
}
public String getErrorMessage() {
return errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Validator {\n");
sb.append(" type: ").append(type).append("\n");
sb.append(" params: ").append(params).append("\n");
sb.append(" errorMessage: ").append(errorMessage).append("\n");
sb.append("}\n");
return sb.toString();
}
}