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

io.ebean.codegen.Actions Maven / Gradle / Ivy

There is a newer version: 4.2
Show newest version
package io.ebean.codegen;

public class Actions {

  private boolean addEbeanManifest;

  private String manifestEntityPackage;

  private boolean addTestProperties;

  private boolean quitState;
  private String manifestTransactionalPackage;
  private String manifestQueryBeanPackage;

  public String checkState(String answer) {
    if ("Q".equalsIgnoreCase(answer)) {
      quitState = true;
    }
    return answer;
  }

  public void setAddEbeanManifest(boolean addEbeanManifest) {
    this.addEbeanManifest = addEbeanManifest;
  }

  public boolean isAddEbeanManifest() {
    return addEbeanManifest;
  }

  public void setManifestEntityPackage(String answer) {
    this.manifestEntityPackage = checkState(answer);
  }

  public String getManifestEntityPackage() {
    return manifestEntityPackage;
  }

  public void setAddTestProperties(boolean addTestProperties) {
    this.addTestProperties = addTestProperties;
  }

  public boolean isAddTestProperties() {
    return addTestProperties;
  }

  public boolean continueState() {
    return !quitState;
  }

  public String readLine() {
    String answer = System.console().readLine();
    answer = answer.trim();
    return checkState(answer);
  }

  public void setManifestTransactionalPackage(String manifestTransactionalPackage) {
    this.manifestTransactionalPackage = manifestTransactionalPackage;
  }

  public String getManifestTransactionalPackage() {
    return manifestTransactionalPackage;
  }

  public void setManifestQueryBeanPackage(String manifestQueryBeanPackage) {
    this.manifestQueryBeanPackage = manifestQueryBeanPackage;
  }

  public String getManifestQueryBeanPackage() {
    return manifestQueryBeanPackage;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy