Coverage Report - org.apache.maven.shared.model.fileset.FileSet
 
Classes in this File Line Coverage Branch Coverage Complexity
FileSet
45%
5/11
N/A
1
 
 1  
 /*
 2  
  * $Id: org.apache.maven.shared.model.fileset.FileSet.html 886882 2013-11-16 21:55:43Z hboutemy $
 3  
  */
 4  
 
 5  
 package org.apache.maven.shared.model.fileset;
 6  
 
 7  
   //---------------------------------/
 8  
  //- Imported classes and packages -/
 9  
 //---------------------------------/
 10  
 
 11  
 import java.util.Date;
 12  
 
 13  
 /**
 14  
  * 
 15  
  *         Defines the rules for matching and working with files in
 16  
  * a given base directory.
 17  
  *       
 18  
  * 
 19  
  * @version $Revision: 886882 $ $Date: 2013-11-16 21:55:43 +0000 (Sat, 16 Nov 2013) $
 20  
  */
 21  10
 public class FileSet extends SetBase 
 22  
 implements java.io.Serializable
 23  
 {
 24  
 
 25  
 
 26  
       //--------------------------/
 27  
      //- Class/Member Variables -/
 28  
     //--------------------------/
 29  
 
 30  
     /**
 31  
      * 
 32  
      *             Absolute or relative from the module's
 33  
      * directory.  For
 34  
      *             example, "src/main/bin" would select this
 35  
      * subdirectory
 36  
      *             of the project in which this dependency is
 37  
      * defined.
 38  
      *           
 39  
      */
 40  
     private String directory;
 41  
 
 42  
     /**
 43  
      * 
 44  
      *             
 45  
      *             Controls the line-endings of files in this
 46  
      * fileSet.
 47  
      *             <br/>
 48  
      *             Valid values:
 49  
      *             <ul>
 50  
      *               <li><b>"keep"</b> - Preserve all line
 51  
      * endings</li>
 52  
      *               <li><b>"unix"</b> - Use Unix-style line
 53  
      * endings</li>
 54  
      *               <li><b>"lf"</b> - Use a single line-feed line
 55  
      * endings</li>
 56  
      *               <li><b>"dos"</b> - Use DOS-style line
 57  
      * endings</li>
 58  
      *               <li><b>"crlf"</b> - Use Carraige-return,
 59  
      * line-feed line endings</li>
 60  
      *             </ul>
 61  
      *             
 62  
      *           
 63  
      */
 64  
     private String lineEnding;
 65  
 
 66  
 
 67  
       //-----------/
 68  
      //- Methods -/
 69  
     //-----------/
 70  
 
 71  
     /**
 72  
      * Get 
 73  
      *             Absolute or relative from the module's
 74  
      * directory.  For
 75  
      *             example, "src/main/bin" would select this
 76  
      * subdirectory
 77  
      *             of the project in which this dependency is
 78  
      * defined.
 79  
      *           
 80  
      * 
 81  
      * @return String
 82  
      */
 83  
     public String getDirectory()
 84  
     {
 85  38
         return this.directory;
 86  
     } //-- String getDirectory() 
 87  
 
 88  
     /**
 89  
      * Get 
 90  
      *             
 91  
      *             Controls the line-endings of files in this
 92  
      * fileSet.
 93  
      *             <br/>
 94  
      *             Valid values:
 95  
      *             <ul>
 96  
      *               <li><b>"keep"</b> - Preserve all line
 97  
      * endings</li>
 98  
      *               <li><b>"unix"</b> - Use Unix-style line
 99  
      * endings</li>
 100  
      *               <li><b>"lf"</b> - Use a single line-feed line
 101  
      * endings</li>
 102  
      *               <li><b>"dos"</b> - Use DOS-style line
 103  
      * endings</li>
 104  
      *               <li><b>"crlf"</b> - Use Carraige-return,
 105  
      * line-feed line endings</li>
 106  
      *             </ul>
 107  
      *             
 108  
      *           
 109  
      * 
 110  
      * @return String
 111  
      */
 112  
     public String getLineEnding()
 113  
     {
 114  0
         return this.lineEnding;
 115  
     } //-- String getLineEnding() 
 116  
 
 117  
     /**
 118  
      * Set 
 119  
      *             Absolute or relative from the module's
 120  
      * directory.  For
 121  
      *             example, "src/main/bin" would select this
 122  
      * subdirectory
 123  
      *             of the project in which this dependency is
 124  
      * defined.
 125  
      *           
 126  
      * 
 127  
      * @param directory
 128  
      */
 129  
     public void setDirectory(String directory)
 130  
     {
 131  10
         this.directory = directory;
 132  10
     } //-- void setDirectory(String) 
 133  
 
 134  
     /**
 135  
      * Set 
 136  
      *             
 137  
      *             Controls the line-endings of files in this
 138  
      * fileSet.
 139  
      *             <br/>
 140  
      *             Valid values:
 141  
      *             <ul>
 142  
      *               <li><b>"keep"</b> - Preserve all line
 143  
      * endings</li>
 144  
      *               <li><b>"unix"</b> - Use Unix-style line
 145  
      * endings</li>
 146  
      *               <li><b>"lf"</b> - Use a single line-feed line
 147  
      * endings</li>
 148  
      *               <li><b>"dos"</b> - Use DOS-style line
 149  
      * endings</li>
 150  
      *               <li><b>"crlf"</b> - Use Carraige-return,
 151  
      * line-feed line endings</li>
 152  
      *             </ul>
 153  
      *             
 154  
      *           
 155  
      * 
 156  
      * @param lineEnding
 157  
      */
 158  
     public void setLineEnding(String lineEnding)
 159  
     {
 160  0
         this.lineEnding = lineEnding;
 161  0
     } //-- void setLineEnding(String) 
 162  
 
 163  
 
 164  10
     private String modelEncoding = "UTF-8";
 165  
 
 166  
     /**
 167  
      * Set an encoding used for reading/writing the model.
 168  
      *
 169  
      * @param modelEncoding the encoding used when reading/writing the model.
 170  
      */
 171  
     public void setModelEncoding( String modelEncoding )
 172  
     {
 173  0
         this.modelEncoding = modelEncoding;
 174  0
     }
 175  
 
 176  
     /**
 177  
      * @return the current encoding used when reading/writing this model.
 178  
      */
 179  
     public String getModelEncoding()
 180  
     {
 181  0
         return modelEncoding;
 182  
     }
 183  
 }