View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.8.1,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.model;
7   
8   /**
9    * A PatternSet for files.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class FileSet
15      extends PatternSet
16      implements java.io.Serializable, java.lang.Cloneable
17  {
18  
19        //--------------------------/
20       //- Class/Member Variables -/
21      //--------------------------/
22  
23      /**
24       * Describe the directory where the resources are stored. The
25       * path is relative
26       *             to the POM.
27       */
28      private String directory;
29  
30  
31        //-----------/
32       //- Methods -/
33      //-----------/
34  
35      /**
36       * Method clone.
37       * 
38       * @return FileSet
39       */
40      public FileSet clone()
41      {
42          try
43          {
44              FileSet copy = (FileSet) super.clone();
45  
46              return copy;
47          }
48          catch ( java.lang.Exception ex )
49          {
50              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
51                  + " does not support clone()" ).initCause( ex );
52          }
53      } //-- FileSet clone()
54  
55      /**
56       * Get describe the directory where the resources are stored.
57       * The path is relative
58       *             to the POM.
59       * 
60       * @return String
61       */
62      public String getDirectory()
63      {
64          return this.directory;
65      } //-- String getDirectory()
66  
67      /**
68       * Set describe the directory where the resources are stored.
69       * The path is relative
70       *             to the POM.
71       * 
72       * @param directory
73       */
74      public void setDirectory( String directory )
75      {
76          this.directory = directory;
77      } //-- void setDirectory( String )
78  
79      
80              
81      /**
82       * @see java.lang.Object#toString()
83       */
84      public String toString()
85      {
86          return "FileSet {directory: " + getDirectory() + ", " + super.toString() + "}";
87      }
88              
89            
90  }