Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
PluginConfiguration |
|
| 1.0;1 |
1 | /* | |
2 | * $Id$ | |
3 | */ | |
4 | ||
5 | package org.apache.maven.model; | |
6 | ||
7 | //---------------------------------/ | |
8 | //- Imported classes and packages -/ | |
9 | //---------------------------------/ | |
10 | ||
11 | import java.util.Date; | |
12 | ||
13 | /** | |
14 | * Contains the plugins management informations for the project. | |
15 | * | |
16 | * @version $Revision$ $Date$ | |
17 | */ | |
18 | 0 | public class PluginConfiguration extends PluginContainer |
19 | implements java.io.Serializable | |
20 | { | |
21 | ||
22 | ||
23 | //--------------------------/ | |
24 | //- Class/Member Variables -/ | |
25 | //--------------------------/ | |
26 | ||
27 | /** | |
28 | * Default plugin information to be made available for | |
29 | * reference by projects | |
30 | * derived from this one. This plugin configuration | |
31 | * will not be resolved or bound to the | |
32 | * lifecycle unless referenced. Any local | |
33 | * configuration for a given plugin will override | |
34 | * the plugin's entire definition here. | |
35 | */ | |
36 | private PluginManagement pluginManagement; | |
37 | ||
38 | ||
39 | //-----------/ | |
40 | //- Methods -/ | |
41 | //-----------/ | |
42 | ||
43 | /** | |
44 | * Get default plugin information to be made available for | |
45 | * reference by projects | |
46 | * derived from this one. This plugin configuration | |
47 | * will not be resolved or bound to the | |
48 | * lifecycle unless referenced. Any local | |
49 | * configuration for a given plugin will override | |
50 | * the plugin's entire definition here. | |
51 | * | |
52 | * @return PluginManagement | |
53 | */ | |
54 | public PluginManagement getPluginManagement() | |
55 | { | |
56 | 0 | return this.pluginManagement; |
57 | } //-- PluginManagement getPluginManagement() | |
58 | ||
59 | /** | |
60 | * Set default plugin information to be made available for | |
61 | * reference by projects | |
62 | * derived from this one. This plugin configuration | |
63 | * will not be resolved or bound to the | |
64 | * lifecycle unless referenced. Any local | |
65 | * configuration for a given plugin will override | |
66 | * the plugin's entire definition here. | |
67 | * | |
68 | * @param pluginManagement | |
69 | */ | |
70 | public void setPluginManagement( PluginManagement pluginManagement ) | |
71 | { | |
72 | 0 | this.pluginManagement = pluginManagement; |
73 | 0 | } //-- void setPluginManagement( PluginManagement ) |
74 | ||
75 | ||
76 | 0 | private String modelEncoding = "UTF-8"; |
77 | ||
78 | /** | |
79 | * Set an encoding used for reading/writing the model. | |
80 | * | |
81 | * @param modelEncoding the encoding used when reading/writing the model. | |
82 | */ | |
83 | public void setModelEncoding( String modelEncoding ) | |
84 | { | |
85 | 0 | this.modelEncoding = modelEncoding; |
86 | 0 | } |
87 | ||
88 | /** | |
89 | * @return the current encoding used when reading/writing this model. | |
90 | */ | |
91 | public String getModelEncoding() | |
92 | { | |
93 | 0 | return modelEncoding; |
94 | } | |
95 | } |