View Javadoc
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.shared.model.fileset;
25  
26  /**
27   * 
28   *         Defines the rules for matching and working with files in
29   * a given base directory.
30   *       
31   * 
32   * @version $Revision$ $Date$
33   */
34  @SuppressWarnings( "all" )
35  public class FileSet
36      extends SetBase
37      implements java.io.Serializable
38  {
39  
40        //--------------------------/
41       //- Class/Member Variables -/
42      //--------------------------/
43  
44      /**
45       * 
46       *             Absolute or relative from the module's
47       * directory.  For
48       *             example, "src/main/bin" would select this
49       * subdirectory
50       *             of the project in which this dependency is
51       * defined.
52       *           
53       */
54      private String directory;
55  
56      /**
57       * 
58       *             
59       *             Controls the line-endings of files in this
60       * fileSet.
61       *             <br/>
62       *             Valid values:
63       *             <ul>
64       *               <li><b>"keep"</b> - Preserve all line
65       * endings</li>
66       *               <li><b>"unix"</b> - Use Unix-style line
67       * endings</li>
68       *               <li><b>"lf"</b> - Use a single line-feed line
69       * endings</li>
70       *               <li><b>"dos"</b> - Use DOS-style line
71       * endings</li>
72       *               <li><b>"crlf"</b> - Use Carraige-return,
73       * line-feed line endings</li>
74       *             </ul>
75       *             
76       *           
77       */
78      private String lineEnding;
79  
80      /**
81       * Field modelEncoding.
82       */
83      private String modelEncoding = "UTF-8";
84  
85  
86        //-----------/
87       //- Methods -/
88      //-----------/
89  
90      /**
91       * Get absolute or relative from the module's directory.  For
92       *             example, "src/main/bin" would select this
93       * subdirectory
94       *             of the project in which this dependency is
95       * defined.
96       * 
97       * @return String
98       */
99      public String getDirectory()
100     {
101         return this.directory;
102     } //-- String getDirectory()
103 
104     /**
105      * Get controls the line-endings of files in this fileSet.
106      *             <br/>
107      *             Valid values:
108      *             <ul>
109      *               <li><b>"keep"</b> - Preserve all line
110      * endings</li>
111      *               <li><b>"unix"</b> - Use Unix-style line
112      * endings</li>
113      *               <li><b>"lf"</b> - Use a single line-feed line
114      * endings</li>
115      *               <li><b>"dos"</b> - Use DOS-style line
116      * endings</li>
117      *               <li><b>"crlf"</b> - Use Carraige-return,
118      * line-feed line endings</li>
119      *             </ul>
120      * 
121      * @return String
122      */
123     public String getLineEnding()
124     {
125         return this.lineEnding;
126     } //-- String getLineEnding()
127 
128     /**
129      * Get the modelEncoding field.
130      * 
131      * @return String
132      */
133     public String getModelEncoding()
134     {
135         return this.modelEncoding;
136     } //-- String getModelEncoding()
137 
138     /**
139      * Set absolute or relative from the module's directory.  For
140      *             example, "src/main/bin" would select this
141      * subdirectory
142      *             of the project in which this dependency is
143      * defined.
144      * 
145      * @param directory a directory object.
146      */
147     public void setDirectory( String directory )
148     {
149         this.directory = directory;
150     } //-- void setDirectory( String )
151 
152     /**
153      * Set controls the line-endings of files in this fileSet.
154      *             <br/>
155      *             Valid values:
156      *             <ul>
157      *               <li><b>"keep"</b> - Preserve all line
158      * endings</li>
159      *               <li><b>"unix"</b> - Use Unix-style line
160      * endings</li>
161      *               <li><b>"lf"</b> - Use a single line-feed line
162      * endings</li>
163      *               <li><b>"dos"</b> - Use DOS-style line
164      * endings</li>
165      *               <li><b>"crlf"</b> - Use Carraige-return,
166      * line-feed line endings</li>
167      *             </ul>
168      * 
169      * @param lineEnding a lineEnding object.
170      */
171     public void setLineEnding( String lineEnding )
172     {
173         this.lineEnding = lineEnding;
174     } //-- void setLineEnding( String )
175 
176     /**
177      * Set the modelEncoding field.
178      * 
179      * @param modelEncoding a modelEncoding object.
180      */
181     public void setModelEncoding( String modelEncoding )
182     {
183         this.modelEncoding = modelEncoding;
184     } //-- void setModelEncoding( String )
185 
186 }