SelectedOptions.java

  1. /*
  2.  *    Copyright 2010-2022 the original author or authors.
  3.  *
  4.  *    Licensed under the Apache License, Version 2.0 (the "License");
  5.  *    you may not use this file except in compliance with the License.
  6.  *    You may obtain a copy of the License at
  7.  *
  8.  *       https://www.apache.org/licenses/LICENSE-2.0
  9.  *
  10.  *    Unless required by applicable law or agreed to in writing, software
  11.  *    distributed under the License is distributed on an "AS IS" BASIS,
  12.  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13.  *    See the License for the specific language governing permissions and
  14.  *    limitations under the License.
  15.  */
  16. package org.apache.ibatis.migration.options;

  17. public class SelectedOptions {
  18.   private SelectedPaths paths = new SelectedPaths();
  19.   private String environment = "development";
  20.   private String template;
  21.   private String idPattern;
  22.   private boolean force;
  23.   private boolean trace;
  24.   private String command;
  25.   private String params;
  26.   private boolean help;
  27.   private boolean quiet;
  28.   private boolean color;

  29.   public boolean isQuiet() {
  30.     return quiet;
  31.   }

  32.   public boolean hasColor() {
  33.     return color;
  34.   }

  35.   public void setColor(boolean color) {
  36.     this.color = color;
  37.   }

  38.   public void setQuiet(boolean quiet) {
  39.     this.quiet = quiet;
  40.   }

  41.   public SelectedPaths getPaths() {
  42.     return paths;
  43.   }

  44.   public String getEnvironment() {
  45.     return environment;
  46.   }

  47.   public void setEnvironment(String aEnvironment) {
  48.     environment = aEnvironment;
  49.   }

  50.   public String getTemplate() {
  51.     return template;
  52.   }

  53.   public void setTemplate(String aTemplate) {
  54.     template = aTemplate;
  55.   }

  56.   public String getIdPattern() {
  57.     return idPattern;
  58.   }

  59.   public void setIdPattern(String idPattern) {
  60.     this.idPattern = idPattern;
  61.   }

  62.   public boolean isForce() {
  63.     return force;
  64.   }

  65.   public void setForce(boolean aForce) {
  66.     force = aForce;
  67.   }

  68.   public boolean isTrace() {
  69.     return trace;
  70.   }

  71.   public void setTrace(boolean aTrace) {
  72.     trace = aTrace;
  73.   }

  74.   public String getCommand() {
  75.     return command;
  76.   }

  77.   public void setCommand(String aCommand) {
  78.     command = aCommand;
  79.   }

  80.   public String getParams() {
  81.     return params;
  82.   }

  83.   public void setParams(String aParams) {
  84.     params = aParams;
  85.   }

  86.   public boolean needsHelp() {
  87.     return help;
  88.   }

  89.   public void setHelp(boolean aHelp) {
  90.     help = aHelp;
  91.   }
  92. }