View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.11,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.archetype.model;
7   
8   /**
9    * Describes a resource file.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class Resource
15      implements java.io.Serializable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * The resource file.
24       */
25      private String file;
26  
27      /**
28       * The encoding to be used when reading/writing this file.
29       *             Platform encoding is used by default, or
30       * ISO-8859-1 when filename ends in <code>.properties</code>
31       */
32      private String encoding;
33  
34      /**
35       * A resource can be filtered, which means the file will be
36       * used as Velocity template.
37       *           It can be non-filtered, which means the file will
38       * be copied without modification.
39       */
40      private boolean filtered = true;
41  
42  
43        //-----------/
44       //- Methods -/
45      //-----------/
46  
47      /**
48       * Get the encoding to be used when reading/writing this file.
49       *             Platform encoding is used by default, or
50       * ISO-8859-1 when filename ends in <code>.properties</code>
51       * 
52       * @return String
53       */
54      public String getEncoding()
55      {
56          return this.encoding;
57      } //-- String getEncoding()
58  
59      /**
60       * Get the resource file.
61       * 
62       * @return String
63       */
64      public String getFile()
65      {
66          return this.file;
67      } //-- String getFile()
68  
69      /**
70       * Get a resource can be filtered, which means the file will be
71       * used as Velocity template.
72       *           It can be non-filtered, which means the file will
73       * be copied without modification.
74       * 
75       * @return boolean
76       */
77      public boolean isFiltered()
78      {
79          return this.filtered;
80      } //-- boolean isFiltered()
81  
82      /**
83       * Set the encoding to be used when reading/writing this file.
84       *             Platform encoding is used by default, or
85       * ISO-8859-1 when filename ends in <code>.properties</code>
86       * 
87       * @param encoding
88       */
89      public void setEncoding( String encoding )
90      {
91          this.encoding = encoding;
92      } //-- void setEncoding( String )
93  
94      /**
95       * Set the resource file.
96       * 
97       * @param file
98       */
99      public void setFile( String file )
100     {
101         this.file = file;
102     } //-- void setFile( String )
103 
104     /**
105      * Set a resource can be filtered, which means the file will be
106      * used as Velocity template.
107      *           It can be non-filtered, which means the file will
108      * be copied without modification.
109      * 
110      * @param filtered
111      */
112     public void setFiltered( boolean filtered )
113     {
114         this.filtered = filtered;
115     } //-- void setFiltered( boolean )
116 
117 }