View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.8.3,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.archetype.model;
7   
8   /**
9    * Describes a source file. Note that source files are always
10   * filtered, unlike resources that
11   *         can be non-filtered.
12   * 
13   * @version $Revision: 942523 $ $Date: 2015-03-06 01:20:33 +0100 (Fri, 06 Mar 2015) $
14   */
15  @SuppressWarnings( "all" )
16  public class Source
17      implements java.io.Serializable
18  {
19  
20        //--------------------------/
21       //- Class/Member Variables -/
22      //--------------------------/
23  
24      /**
25       * The source file.
26       */
27      private String file;
28  
29      /**
30       * The encoding to be used when reading/writing this file.
31       *             Platform encoding is used by default, or
32       * ISO-8859-1 when filename ends in <code>.properties</code>
33       */
34      private String encoding;
35  
36  
37        //-----------/
38       //- Methods -/
39      //-----------/
40  
41      /**
42       * Get the encoding to be used when reading/writing this file.
43       *             Platform encoding is used by default, or
44       * ISO-8859-1 when filename ends in <code>.properties</code>
45       * 
46       * @return String
47       */
48      public String getEncoding()
49      {
50          return this.encoding;
51      } //-- String getEncoding()
52  
53      /**
54       * Get the source file.
55       * 
56       * @return String
57       */
58      public String getFile()
59      {
60          return this.file;
61      } //-- String getFile()
62  
63      /**
64       * Set the encoding to be used when reading/writing this file.
65       *             Platform encoding is used by default, or
66       * ISO-8859-1 when filename ends in <code>.properties</code>
67       * 
68       * @param encoding
69       */
70      public void setEncoding( String encoding )
71      {
72          this.encoding = encoding;
73      } //-- void setEncoding( String )
74  
75      /**
76       * Set the source file.
77       * 
78       * @param file
79       */
80      public void setFile( String file )
81      {
82          this.file = file;
83      } //-- void setFile( String )
84  
85  }