1 /*
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18 =================== DO NOT EDIT THIS FILE ====================
19 Generated by Modello 2.4.0,
20 any modifications will be overwritten.
21 ==============================================================
22 */
23
24 package org.apache.maven.archetype.model;
25
26 /**
27 * Describes a source file. Note that source files are always
28 * filtered, unlike resources that
29 * can be non-filtered.
30 *
31 * @version $Revision$ $Date$
32 */
33 @SuppressWarnings( "all" )
34 public class Source
35 implements java.io.Serializable
36 {
37
38 //--------------------------/
39 //- Class/Member Variables -/
40 //--------------------------/
41
42 /**
43 * The source file.
44 */
45 private String file;
46
47 /**
48 * 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 private String encoding;
53
54
55 //-----------/
56 //- Methods -/
57 //-----------/
58
59 /**
60 * Get the encoding to be used when reading/writing this file.
61 * Platform encoding is used by default, or
62 * ISO-8859-1 when filename ends in <code>.properties</code>
63 *
64 * @return String
65 */
66 public String getEncoding()
67 {
68 return this.encoding;
69 } //-- String getEncoding()
70
71 /**
72 * Get the source file.
73 *
74 * @return String
75 */
76 public String getFile()
77 {
78 return this.file;
79 } //-- String getFile()
80
81 /**
82 * Set the encoding to be used when reading/writing this file.
83 * Platform encoding is used by default, or
84 * ISO-8859-1 when filename ends in <code>.properties</code>
85 *
86 * @param encoding a encoding object.
87 */
88 public void setEncoding( String encoding )
89 {
90 this.encoding = encoding;
91 } //-- void setEncoding( String )
92
93 /**
94 * Set the source file.
95 *
96 * @param file a file object.
97 */
98 public void setFile( String file )
99 {
100 this.file = file;
101 } //-- void setFile( String )
102
103 }