View Javadoc
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  
18  public class SelectedOptions {
19    private SelectedPaths paths = new SelectedPaths();
20    private String environment = "development";
21    private String template;
22    private String idPattern;
23    private boolean force;
24    private boolean trace;
25    private String command;
26    private String params;
27    private boolean help;
28    private boolean quiet;
29    private boolean color;
30  
31    public boolean isQuiet() {
32      return quiet;
33    }
34  
35    public boolean hasColor() {
36      return color;
37    }
38  
39    public void setColor(boolean color) {
40      this.color = color;
41    }
42  
43    public void setQuiet(boolean quiet) {
44      this.quiet = quiet;
45    }
46  
47    public SelectedPaths getPaths() {
48      return paths;
49    }
50  
51    public String getEnvironment() {
52      return environment;
53    }
54  
55    public void setEnvironment(String aEnvironment) {
56      environment = aEnvironment;
57    }
58  
59    public String getTemplate() {
60      return template;
61    }
62  
63    public void setTemplate(String aTemplate) {
64      template = aTemplate;
65    }
66  
67    public String getIdPattern() {
68      return idPattern;
69    }
70  
71    public void setIdPattern(String idPattern) {
72      this.idPattern = idPattern;
73    }
74  
75    public boolean isForce() {
76      return force;
77    }
78  
79    public void setForce(boolean aForce) {
80      force = aForce;
81    }
82  
83    public boolean isTrace() {
84      return trace;
85    }
86  
87    public void setTrace(boolean aTrace) {
88      trace = aTrace;
89    }
90  
91    public String getCommand() {
92      return command;
93    }
94  
95    public void setCommand(String aCommand) {
96      command = aCommand;
97    }
98  
99    public String getParams() {
100     return params;
101   }
102 
103   public void setParams(String aParams) {
104     params = aParams;
105   }
106 
107   public boolean needsHelp() {
108     return help;
109   }
110 
111   public void setHelp(boolean aHelp) {
112     help = aHelp;
113   }
114 }