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

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

Go to download

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

There is a newer version: 1.2.1
Show newest version
package com.smartbear.readyapi.client.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.smartbear.readyapi.client.model.PropertyTransferSource;
import com.smartbear.readyapi.client.model.PropertyTransferTarget;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;



/**
 * Data structure for the <a herf=\"http://readyapi.smartbear.com/structure/steps/property/transfer/intro/step\">Property Transfer</a> test step.
 **/

@ApiModel(description = "Data structure for the Property Transfer test step.")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-24T08:38:08.699-04:00")
public class PropertyTransfer   {
  
  private String transferName = null;
  private PropertyTransferSource source = null;
  private PropertyTransferTarget target = null;
  private Boolean failTransferOnError = false;
  private Boolean setNullOnMissingSource = false;
  private Boolean transferTextContent = false;
  private Boolean ignoreEmptyValue = false;
  private Boolean transferToAll = false;
  private Boolean transferChildNodes = false;
  private Boolean entitizeTransferredValues = false;

  
  /**
   * The name of the property transfer test step.
   **/
  public PropertyTransfer transferName(String transferName) {
    this.transferName = transferName;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "The name of the property transfer test step.")
  @JsonProperty("transferName")
  public String getTransferName() {
    return transferName;
  }
  public void setTransferName(String transferName) {
    this.transferName = transferName;
  }

  
  /**
   **/
  public PropertyTransfer source(PropertyTransferSource source) {
    this.source = source;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("source")
  public PropertyTransferSource getSource() {
    return source;
  }
  public void setSource(PropertyTransferSource source) {
    this.source = source;
  }

  
  /**
   **/
  public PropertyTransfer target(PropertyTransferTarget target) {
    this.target = target;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("target")
  public PropertyTransferTarget getTarget() {
    return target;
  }
  public void setTarget(PropertyTransferTarget target) {
    this.target = target;
  }

  
  /**
   * If true, the property transfer test step fails when an error occurs.
   **/
  public PropertyTransfer failTransferOnError(Boolean failTransferOnError) {
    this.failTransferOnError = failTransferOnError;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "If true, the property transfer test step fails when an error occurs.")
  @JsonProperty("failTransferOnError")
  public Boolean getFailTransferOnError() {
    return failTransferOnError;
  }
  public void setFailTransferOnError(Boolean failTransferOnError) {
    this.failTransferOnError = failTransferOnError;
  }

  
  /**
   * If true, sets target to null if the source is missing.
   **/
  public PropertyTransfer setNullOnMissingSource(Boolean setNullOnMissingSource) {
    this.setNullOnMissingSource = setNullOnMissingSource;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "If true, sets target to null if the source is missing.")
  @JsonProperty("setNullOnMissingSource")
  public Boolean getSetNullOnMissingSource() {
    return setNullOnMissingSource;
  }
  public void setSetNullOnMissingSource(Boolean setNullOnMissingSource) {
    this.setNullOnMissingSource = setNullOnMissingSource;
  }

  
  /**
   * If true, only transfers text content.
   **/
  public PropertyTransfer transferTextContent(Boolean transferTextContent) {
    this.transferTextContent = transferTextContent;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "If true, only transfers text content.")
  @JsonProperty("transferTextContent")
  public Boolean getTransferTextContent() {
    return transferTextContent;
  }
  public void setTransferTextContent(Boolean transferTextContent) {
    this.transferTextContent = transferTextContent;
  }

  
  /**
   * If true, does not transfer empty or missing values.
   **/
  public PropertyTransfer ignoreEmptyValue(Boolean ignoreEmptyValue) {
    this.ignoreEmptyValue = ignoreEmptyValue;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "If true, does not transfer empty or missing values.")
  @JsonProperty("ignoreEmptyValue")
  public Boolean getIgnoreEmptyValue() {
    return ignoreEmptyValue;
  }
  public void setIgnoreEmptyValue(Boolean ignoreEmptyValue) {
    this.ignoreEmptyValue = ignoreEmptyValue;
  }

  
  /**
   * If true, transfers to all matching transfer selections.
   **/
  public PropertyTransfer transferToAll(Boolean transferToAll) {
    this.transferToAll = transferToAll;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "If true, transfers to all matching transfer selections.")
  @JsonProperty("transferToAll")
  public Boolean getTransferToAll() {
    return transferToAll;
  }
  public void setTransferToAll(Boolean transferToAll) {
    this.transferToAll = transferToAll;
  }

  
  /**
   * If true, transfers child nodes of the source node as children of the target node.
   **/
  public PropertyTransfer transferChildNodes(Boolean transferChildNodes) {
    this.transferChildNodes = transferChildNodes;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "If true, transfers child nodes of the source node as children of the target node.")
  @JsonProperty("transferChildNodes")
  public Boolean getTransferChildNodes() {
    return transferChildNodes;
  }
  public void setTransferChildNodes(Boolean transferChildNodes) {
    this.transferChildNodes = transferChildNodes;
  }

  
  /**
   * If true, all HTML symbols are replaced with appropriate entities.
   **/
  public PropertyTransfer entitizeTransferredValues(Boolean entitizeTransferredValues) {
    this.entitizeTransferredValues = entitizeTransferredValues;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "If true, all HTML symbols are replaced with appropriate entities.")
  @JsonProperty("entitizeTransferredValues")
  public Boolean getEntitizeTransferredValues() {
    return entitizeTransferredValues;
  }
  public void setEntitizeTransferredValues(Boolean entitizeTransferredValues) {
    this.entitizeTransferredValues = entitizeTransferredValues;
  }

  

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PropertyTransfer propertyTransfer = (PropertyTransfer) o;
    return Objects.equals(this.transferName, propertyTransfer.transferName) &&
        Objects.equals(this.source, propertyTransfer.source) &&
        Objects.equals(this.target, propertyTransfer.target) &&
        Objects.equals(this.failTransferOnError, propertyTransfer.failTransferOnError) &&
        Objects.equals(this.setNullOnMissingSource, propertyTransfer.setNullOnMissingSource) &&
        Objects.equals(this.transferTextContent, propertyTransfer.transferTextContent) &&
        Objects.equals(this.ignoreEmptyValue, propertyTransfer.ignoreEmptyValue) &&
        Objects.equals(this.transferToAll, propertyTransfer.transferToAll) &&
        Objects.equals(this.transferChildNodes, propertyTransfer.transferChildNodes) &&
        Objects.equals(this.entitizeTransferredValues, propertyTransfer.entitizeTransferredValues);
  }

  @Override
  public int hashCode() {
    return Objects.hash(transferName, source, target, failTransferOnError, setNullOnMissingSource, transferTextContent, ignoreEmptyValue, transferToAll, transferChildNodes, entitizeTransferredValues);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PropertyTransfer {\n");
    
    sb.append("    transferName: ").append(toIndentedString(transferName)).append("\n");
    sb.append("    source: ").append(toIndentedString(source)).append("\n");
    sb.append("    target: ").append(toIndentedString(target)).append("\n");
    sb.append("    failTransferOnError: ").append(toIndentedString(failTransferOnError)).append("\n");
    sb.append("    setNullOnMissingSource: ").append(toIndentedString(setNullOnMissingSource)).append("\n");
    sb.append("    transferTextContent: ").append(toIndentedString(transferTextContent)).append("\n");
    sb.append("    ignoreEmptyValue: ").append(toIndentedString(ignoreEmptyValue)).append("\n");
    sb.append("    transferToAll: ").append(toIndentedString(transferToAll)).append("\n");
    sb.append("    transferChildNodes: ").append(toIndentedString(transferChildNodes)).append("\n");
    sb.append("    entitizeTransferredValues: ").append(toIndentedString(entitizeTransferredValues)).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