View Javadoc

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