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

org.molgenis.semanticmapper.data.request.MappingServiceRequest Maven / Gradle / Ivy

package org.molgenis.semanticmapper.data.request;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

public class MappingServiceRequest {
  @NotNull private final String targetEntityName;
  @NotNull private final String sourceEntityName;
  @NotNull private final String targetAttributeName;
  @NotNull private final String algorithm;
  private final int depth;

  @Min(0)
  private Long offset;

  @Min(1)
  @Max(1000)
  private Long num;

  public MappingServiceRequest(
      String targetEntityName,
      String sourceEntityName,
      String targetAttributeName,
      String algorithm,
      int depth) {
    this.targetEntityName = targetEntityName;
    this.sourceEntityName = sourceEntityName;
    this.targetAttributeName = targetAttributeName;
    this.algorithm = algorithm;
    this.depth = depth;
  }

  public String getTargetEntityName() {
    return targetEntityName;
  }

  public String getSourceEntityName() {
    return sourceEntityName;
  }

  public String getTargetAttributeName() {
    return targetAttributeName;
  }

  public String getAlgorithm() {
    return algorithm;
  }

  public Long getOffset() {
    return offset;
  }

  public void setOffset(Long offset) {
    this.offset = offset;
  }

  public Long getNum() {
    return num;
  }

  public void setNum(Long num) {
    this.num = num;
  }

  public int getDepth() {
    return this.depth;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy