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

com.tinypass.client.id.model.Validator Maven / Gradle / Ivy

There is a newer version: 16.331.0
Show newest version
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();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy