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

com.acrolinx.sidebar.adapter.NullEditorAdapter Maven / Gradle / Ivy

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

import com.acrolinx.sidebar.InputAdapterInterface;
import com.acrolinx.sidebar.pojo.document.AcrolinxMatch;
import com.acrolinx.sidebar.pojo.document.AcrolinxMatchWithReplacement;
import com.acrolinx.sidebar.pojo.document.IntRange;
import com.acrolinx.sidebar.pojo.document.externalcontent.ExternalContent;
import com.acrolinx.sidebar.pojo.settings.InputFormat;
import java.util.Collections;
import java.util.List;

/**
 * Use as fallback input adapter.
 *
 * @see InputAdapterInterface
 */
public class NullEditorAdapter implements InputAdapterInterface {
  @Override
  public InputFormat getInputFormat() {
    return null;
  }

  @Override
  public String getContent() {
    return null;
  }

  @Override
  public ExternalContent getExternalContent() {
    return null;
  }

  @Override
  public String getDocumentReference() {
    return null;
  }

  @Override
  public void selectRanges(String checkId, List acrolinxMatches) {
    // do nothing
  }

  @Override
  public void replaceRanges(String checkId, List matches) {
    // do nothing
  }

  @Override
  public List getCurrentSelection() {
    return Collections.emptyList();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy