1 /* 2 * $Id$ 3 */ 4 5 package org.apache.maven.model; 6 7 //---------------------------------/ 8 //- Imported classes and packages -/ 9 //---------------------------------/ 10 11 import java.util.Date; 12 13 /** 14 * A PatternSet for files. 15 * 16 * @version $Revision$ $Date$ 17 */ 18 public class FileSet extends PatternSet 19 implements java.io.Serializable 20 { 21 22 23 //--------------------------/ 24 //- Class/Member Variables -/ 25 //--------------------------/ 26 27 /** 28 * Describe the directory where the resources are stored. The 29 * path is relative 30 * to the POM. 31 */ 32 private String directory; 33 34 35 //-----------/ 36 //- Methods -/ 37 //-----------/ 38 39 /** 40 * Get describe the directory where the resources are stored. 41 * The path is relative 42 * to the POM. 43 * 44 * @return String 45 */ 46 public String getDirectory() 47 { 48 return this.directory; 49 } //-- String getDirectory() 50 51 /** 52 * Set describe the directory where the resources are stored. 53 * The path is relative 54 * to the POM. 55 * 56 * @param directory 57 */ 58 public void setDirectory( String directory ) 59 { 60 this.directory = directory; 61 } //-- void setDirectory( String ) 62 63 64 65 /** 66 * @see java.lang.Object#toString() 67 */ 68 public String toString() 69 { 70 return "FileSet {directory: " + getDirectory() + ", " + super.toString() + "}"; 71 } 72 73 74 private String modelEncoding = "UTF-8"; 75 76 /** 77 * Set an encoding used for reading/writing the model. 78 * 79 * @param modelEncoding the encoding used when reading/writing the model. 80 */ 81 public void setModelEncoding( String modelEncoding ) 82 { 83 this.modelEncoding = modelEncoding; 84 } 85 86 /** 87 * @return the current encoding used when reading/writing this model. 88 */ 89 public String getModelEncoding() 90 { 91 return modelEncoding; 92 } 93 }