View Javadoc
1   package org.codehaus.gmavenplus.model;
2   
3   import java.io.File;
4   import java.io.Serializable;
5   import java.util.List;
6   import java.util.Set;
7   
8   /**
9    * Holds configuration for Groovy stub generation.
10   *
11   * @author Keegan Witt
12   */
13  public class GroovyStubConfiguration implements Serializable {
14      private static final long serialVersionUID = 1L;
15  
16      private Set<File> stubSources;
17      private List<?> classpath;
18      private File outputDirectory;
19      private IncludeClasspath includeClasspath;
20      private boolean skipBytecodeCheck;
21      private boolean debug;
22      private boolean verbose;
23      private int warningLevel;
24      private int tolerance;
25      private String sourceEncoding;
26      private String targetBytecode;
27  
28      public GroovyStubConfiguration(Set<File> stubSources, List<?> classpath, File outputDirectory) {
29          this.stubSources = stubSources;
30          this.classpath = classpath;
31          this.outputDirectory = outputDirectory;
32      }
33  
34      public Set<File> getStubSources() {
35          return stubSources;
36      }
37  
38      public List<?> getClasspath() {
39          return classpath;
40      }
41  
42      public File getOutputDirectory() {
43          return outputDirectory;
44      }
45  
46      public IncludeClasspath getIncludeClasspath() {
47          return includeClasspath;
48      }
49  
50      public void setIncludeClasspath(IncludeClasspath includeClasspath) {
51          this.includeClasspath = includeClasspath;
52      }
53  
54      public boolean isSkipBytecodeCheck() {
55          return skipBytecodeCheck;
56      }
57  
58      public void setSkipBytecodeCheck(boolean skipBytecodeCheck) {
59          this.skipBytecodeCheck = skipBytecodeCheck;
60      }
61  
62      public boolean isDebug() {
63          return debug;
64      }
65  
66      public void setDebug(boolean debug) {
67          this.debug = debug;
68      }
69  
70      public boolean isVerbose() {
71          return verbose;
72      }
73  
74      public void setVerbose(boolean verbose) {
75          this.verbose = verbose;
76      }
77  
78      public int getWarningLevel() {
79          return warningLevel;
80      }
81  
82      public void setWarningLevel(int warningLevel) {
83          this.warningLevel = warningLevel;
84      }
85  
86      public int getTolerance() {
87          return tolerance;
88      }
89  
90      public void setTolerance(int tolerance) {
91          this.tolerance = tolerance;
92      }
93  
94      public String getSourceEncoding() {
95          return sourceEncoding;
96      }
97  
98      public void setSourceEncoding(String sourceEncoding) {
99          this.sourceEncoding = sourceEncoding;
100     }
101 
102     public String getTargetBytecode() {
103         return targetBytecode;
104     }
105 
106     public void setTargetBytecode(String targetBytecode) {
107         this.targetBytecode = targetBytecode;
108     }
109 }