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   * Contains the plugins management informations for the project.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class PluginConfiguration
33      extends PluginContainer
34      implements java.io.Serializable, java.lang.Cloneable
35  {
36  
37        //--------------------------/
38       //- Class/Member Variables -/
39      //--------------------------/
40  
41      /**
42       * Default plugin information to be made available for
43       * reference by projects
44       *             derived from this one. This plugin configuration
45       * will not be resolved or bound to the
46       *             lifecycle unless referenced. Any local
47       * configuration for a given plugin will override
48       *             the plugin's entire definition here.
49       */
50      private PluginManagement pluginManagement;
51  
52  
53        //-----------/
54       //- Methods -/
55      //-----------/
56  
57      /**
58       * Method clone.
59       * 
60       * @return PluginConfiguration
61       */
62      public PluginConfiguration clone()
63      {
64          try
65          {
66              PluginConfiguration copy = (PluginConfiguration) super.clone();
67  
68              if ( this.pluginManagement != null )
69              {
70                  copy.pluginManagement = (PluginManagement) this.pluginManagement.clone();
71              }
72  
73              return copy;
74          }
75          catch ( java.lang.Exception ex )
76          {
77              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
78                  + " does not support clone()" ).initCause( ex );
79          }
80      } //-- PluginConfiguration clone()
81  
82      /**
83       * Get default plugin information to be made available for
84       * reference by projects
85       *             derived from this one. This plugin configuration
86       * will not be resolved or bound to the
87       *             lifecycle unless referenced. Any local
88       * configuration for a given plugin will override
89       *             the plugin's entire definition here.
90       * 
91       * @return PluginManagement
92       */
93      public PluginManagement getPluginManagement()
94      {
95          return this.pluginManagement;
96      } //-- PluginManagement getPluginManagement()
97  
98      /**
99       * Set default plugin information to be made available for
100      * reference by projects
101      *             derived from this one. This plugin configuration
102      * will not be resolved or bound to the
103      *             lifecycle unless referenced. Any local
104      * configuration for a given plugin will override
105      *             the plugin's entire definition here.
106      * 
107      * @param pluginManagement a pluginManagement object.
108      */
109     public void setPluginManagement( PluginManagement pluginManagement )
110     {
111         this.pluginManagement = pluginManagement;
112     } //-- void setPluginManagement( PluginManagement )
113 
114     
115             
116     /**
117      * @see java.lang.Object#toString()
118      */
119     public String toString()
120     {
121         return "PluginConfiguration {" + super.toString() + "}";
122     }
123             
124           
125 }