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

src.main.java.com.smartbear.readyapi.client.model.ExcelDataSource Maven / Gradle / Ivy

Go to download

Java client library for creating and executing test recipes against Ready!API TestServer

The newest version!
package com.smartbear.readyapi.client.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;



/**
 * Data structure for <a herf=\"http://readyapi.smartbear.com/structure/sources/excel/introduction\">Excel Data Source</a>.
 **/

@ApiModel(description = "Data structure for Excel Data Source.")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-07-29T13:25:49.703+02:00")
public class ExcelDataSource   {
  
  private String file = null;
  private String worksheet = null;
  private String startAtCell = null;
  private Boolean ignoreEmpty = false;

  
  /**
   * The name of the file used for the data source.
   **/
  public ExcelDataSource file(String file) {
    this.file = file;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "The name of the file used for the data source.")
  @JsonProperty("file")
  public String getFile() {
    return file;
  }
  public void setFile(String file) {
    this.file = file;
  }

  
  /**
   * The name of the excel worksheet the test step gets data from.
   **/
  public ExcelDataSource worksheet(String worksheet) {
    this.worksheet = worksheet;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "The name of the excel worksheet the test step gets data from.")
  @JsonProperty("worksheet")
  public String getWorksheet() {
    return worksheet;
  }
  public void setWorksheet(String worksheet) {
    this.worksheet = worksheet;
  }

  
  /**
   * The cell from which the iterator starts gathering data.
   **/
  public ExcelDataSource startAtCell(String startAtCell) {
    this.startAtCell = startAtCell;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "The cell from which the iterator starts gathering data.")
  @JsonProperty("startAtCell")
  public String getStartAtCell() {
    return startAtCell;
  }
  public void setStartAtCell(String startAtCell) {
    this.startAtCell = startAtCell;
  }

  
  /**
   * If true, skips rows without data.
   **/
  public ExcelDataSource ignoreEmpty(Boolean ignoreEmpty) {
    this.ignoreEmpty = ignoreEmpty;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "If true, skips rows without data.")
  @JsonProperty("ignoreEmpty")
  public Boolean getIgnoreEmpty() {
    return ignoreEmpty;
  }
  public void setIgnoreEmpty(Boolean ignoreEmpty) {
    this.ignoreEmpty = ignoreEmpty;
  }

  

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ExcelDataSource excelDataSource = (ExcelDataSource) o;
    return Objects.equals(this.file, excelDataSource.file) &&
        Objects.equals(this.worksheet, excelDataSource.worksheet) &&
        Objects.equals(this.startAtCell, excelDataSource.startAtCell) &&
        Objects.equals(this.ignoreEmpty, excelDataSource.ignoreEmpty);
  }

  @Override
  public int hashCode() {
    return Objects.hash(file, worksheet, startAtCell, ignoreEmpty);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ExcelDataSource {\n");
    
    sb.append("    file: ").append(toIndentedString(file)).append("\n");
    sb.append("    worksheet: ").append(toIndentedString(worksheet)).append("\n");
    sb.append("    startAtCell: ").append(toIndentedString(startAtCell)).append("\n");
    sb.append("    ignoreEmpty: ").append(toIndentedString(ignoreEmpty)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy