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.model;
25  
26  /**
27   * A PatternSet for files.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class FileSet
33      extends PatternSet
34      implements java.io.Serializable, java.lang.Cloneable
35  {
36  
37        //--------------------------/
38       //- Class/Member Variables -/
39      //--------------------------/
40  
41      /**
42       * Describe the directory where the resources are stored. The
43       * path is relative
44       *             to the POM.
45       */
46      private String directory;
47  
48  
49        //-----------/
50       //- Methods -/
51      //-----------/
52  
53      /**
54       * Method clone.
55       * 
56       * @return FileSet
57       */
58      public FileSet clone()
59      {
60          try
61          {
62              FileSet copy = (FileSet) super.clone();
63  
64              return copy;
65          }
66          catch ( java.lang.Exception ex )
67          {
68              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
69                  + " does not support clone()" ).initCause( ex );
70          }
71      } //-- FileSet clone()
72  
73      /**
74       * Get describe the directory where the resources are stored.
75       * The path is relative
76       *             to the POM.
77       * 
78       * @return String
79       */
80      public String getDirectory()
81      {
82          return this.directory;
83      } //-- String getDirectory()
84  
85      /**
86       * Set describe the directory where the resources are stored.
87       * The path is relative
88       *             to the POM.
89       * 
90       * @param directory a directory object.
91       */
92      public void setDirectory( String directory )
93      {
94          this.directory = directory;
95      } //-- void setDirectory( String )
96  
97      
98              
99      /**
100      * @see java.lang.Object#toString()
101      */
102     public String toString()
103     {
104         return "FileSet {directory: " + getDirectory() + ", " + super.toString() + "}";
105     }
106             
107           
108 }