View Javadoc

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