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

com.acrolinx.sidebar.pojo.settings.CheckOptions Maven / Gradle / Ivy

/* Copyright (c) 2018 Acrolinx GmbH */
package com.acrolinx.sidebar.pojo.settings;

import com.acrolinx.sidebar.pojo.document.externalcontent.ExternalContent;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;

/** Check options define how the Acrolinx Server handles document to check. */
public class CheckOptions {
  private final InputFormat inputFormat;
  private final RequestDescription requestDescription;

  @SerializedName("selection")
  private final DocumentSelection documentSelection;

  private final ExternalContent externalContent;

  /**
   * @param inputFormat Check InputFormat for valid formats.
   * @param requestDescription Contains the document reference. This can be an id or path to
   *     identify the document.
   */
  public CheckOptions(
      RequestDescription requestDescription,
      InputFormat inputFormat,
      DocumentSelection documentSelection,
      ExternalContent externalContent) {
    this.requestDescription = requestDescription;
    this.inputFormat = inputFormat;
    this.documentSelection = documentSelection;
    this.externalContent = externalContent;
  }

  public InputFormat getInputFormat() {
    return inputFormat;
  }

  public RequestDescription getRequestDescription() {
    return requestDescription;
  }

  @Override
  public String toString() {
    Gson gson = new Gson();
    return gson.toJson(this);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy