View Javadoc
1   /**
2    *    Copyright 2006-2016 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    *       http://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.mybatis.generator.codegen;
17  
18  import java.util.List;
19  
20  import org.mybatis.generator.api.IntrospectedTable;
21  import org.mybatis.generator.api.ProgressCallback;
22  import org.mybatis.generator.config.Context;
23  
24  /**
25   * 
26   * @author Jeff Butler
27   * 
28   */
29  public abstract class AbstractGenerator {
30      protected Context context;
31      protected IntrospectedTable introspectedTable;
32      protected List<String> warnings;
33      protected ProgressCallback progressCallback;
34  
35      public AbstractGenerator() {
36          super();
37      }
38  
39      public Context getContext() {
40          return context;
41      }
42  
43      public void setContext(Context context) {
44          this.context = context;
45      }
46  
47      public IntrospectedTable getIntrospectedTable() {
48          return introspectedTable;
49      }
50  
51      public void setIntrospectedTable(IntrospectedTable introspectedTable) {
52          this.introspectedTable = introspectedTable;
53      }
54  
55      public List<String> getWarnings() {
56          return warnings;
57      }
58  
59      public void setWarnings(List<String> warnings) {
60          this.warnings = warnings;
61      }
62  
63      public ProgressCallback getProgressCallback() {
64          return progressCallback;
65      }
66  
67      public void setProgressCallback(ProgressCallback progressCallback) {
68          this.progressCallback = progressCallback;
69      }
70  }