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.archetype.metadata;
25  
26  /**
27   * Class AbstractArchetypeDescriptor.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class AbstractArchetypeDescriptor
33      implements java.io.Serializable
34  {
35  
36        //--------------------------/
37       //- Class/Member Variables -/
38      //--------------------------/
39  
40      /**
41       * Field fileSets.
42       */
43      private java.util.List<FileSet> fileSets;
44  
45      /**
46       * Field modules.
47       */
48      private java.util.List<ModuleDescriptor> modules;
49  
50  
51        //-----------/
52       //- Methods -/
53      //-----------/
54  
55      /**
56       * Method addFileSet.
57       * 
58       * @param fileSet a fileSet object.
59       */
60      public void addFileSet( FileSet fileSet )
61      {
62          getFileSets().add( fileSet );
63      } //-- void addFileSet( FileSet )
64  
65      /**
66       * Method addModule.
67       * 
68       * @param moduleDescriptor a moduleDescriptor object.
69       */
70      public void addModule( ModuleDescriptor moduleDescriptor )
71      {
72          getModules().add( moduleDescriptor );
73      } //-- void addModule( ModuleDescriptor )
74  
75      /**
76       * Method getFileSets.
77       * 
78       * @return List
79       */
80      public java.util.List<FileSet> getFileSets()
81      {
82          if ( this.fileSets == null )
83          {
84              this.fileSets = new java.util.ArrayList<FileSet>();
85          }
86  
87          return this.fileSets;
88      } //-- java.util.List<FileSet> getFileSets()
89  
90      /**
91       * Method getModules.
92       * 
93       * @return List
94       */
95      public java.util.List<ModuleDescriptor> getModules()
96      {
97          if ( this.modules == null )
98          {
99              this.modules = new java.util.ArrayList<ModuleDescriptor>();
100         }
101 
102         return this.modules;
103     } //-- java.util.List<ModuleDescriptor> getModules()
104 
105     /**
106      * Method removeFileSet.
107      * 
108      * @param fileSet a fileSet object.
109      */
110     public void removeFileSet( FileSet fileSet )
111     {
112         getFileSets().remove( fileSet );
113     } //-- void removeFileSet( FileSet )
114 
115     /**
116      * Method removeModule.
117      * 
118      * @param moduleDescriptor a moduleDescriptor object.
119      */
120     public void removeModule( ModuleDescriptor moduleDescriptor )
121     {
122         getModules().remove( moduleDescriptor );
123     } //-- void removeModule( ModuleDescriptor )
124 
125     /**
126      * Set file sets definition.
127      * 
128      * @param fileSets a fileSets object.
129      */
130     public void setFileSets( java.util.List<FileSet> fileSets )
131     {
132         this.fileSets = fileSets;
133     } //-- void setFileSets( java.util.List )
134 
135     /**
136      * Set modules definition.
137      * 
138      * @param modules a modules object.
139      */
140     public void setModules( java.util.List<ModuleDescriptor> modules )
141     {
142         this.modules = modules;
143     } //-- void setModules( java.util.List )
144 
145 }