
package de.ivu.elect.business.dokumente.boundary;

import java.util.ArrayList;
import java.util.List;

public class DokumentVorlageOpenOfficeTestResult {

  private final List<String> messages = new ArrayList<>();

  private boolean connectionPossible = false;

  private boolean conversionPossible = false;

  private Throwable throwable;

  public void addMessage(String message) {
    messages.add(message);
  }

  public List<String> getMessages() {
    return messages;
  }

  public void setConnectionPossible(boolean connectionPossible) {
    this.connectionPossible = connectionPossible;
  }

  public boolean isConnectionPossible() {
    return connectionPossible;
  }

  public boolean isConversionPossible() {
    return conversionPossible;
  }

  public void setConversionPossible(boolean conversionPossible) {
    this.conversionPossible = conversionPossible;
  }

  public void setThrowable(Throwable throwable) {
    this.throwable = throwable;
  }

  public Throwable getThrowable() {
    return throwable;
  }

  @Override
  public String toString() {
    return "DokumentVorlageOpenOfficeTestResult{" +
        "messages=" + messages +
        ", connectionPossible=" + connectionPossible +
        ", conversionPossible=" + conversionPossible +
        ", throwable=" + throwable +
        '}';
  }
}
