Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
PluginMetadata |
|
| 1.1666666666666667;1,167 |
1 | /* | |
2 | =================== DO NOT EDIT THIS FILE ==================== | |
3 | Generated by Modello 1.4.1 on 2012-05-28 13:23:01, | |
4 | any modifications will be overwritten. | |
5 | ============================================================== | |
6 | */ | |
7 | ||
8 | package org.apache.maven.plugin.tools.model; | |
9 | ||
10 | /** | |
11 | * Root element of a script-based mojo's plugin metadata bindings. | |
12 | * | |
13 | * @version $Revision$ $Date$ | |
14 | */ | |
15 | @SuppressWarnings( "all" ) | |
16 | 2 | public class PluginMetadata |
17 | implements java.io.Serializable | |
18 | { | |
19 | ||
20 | //--------------------------/ | |
21 | //- Class/Member Variables -/ | |
22 | //--------------------------/ | |
23 | ||
24 | /** | |
25 | * Field mojos. | |
26 | */ | |
27 | private java.util.List<Mojo> mojos; | |
28 | ||
29 | /** | |
30 | * Field modelEncoding. | |
31 | */ | |
32 | 2 | private String modelEncoding = "UTF-8"; |
33 | ||
34 | ||
35 | //-----------/ | |
36 | //- Methods -/ | |
37 | //-----------/ | |
38 | ||
39 | /** | |
40 | * Method addMojo. | |
41 | * | |
42 | * @param mojo | |
43 | */ | |
44 | public void addMojo( Mojo mojo ) | |
45 | { | |
46 | 0 | getMojos().add( mojo ); |
47 | 0 | } //-- void addMojo( Mojo ) |
48 | ||
49 | /** | |
50 | * Get the modelEncoding field. | |
51 | * | |
52 | * @return String | |
53 | */ | |
54 | public String getModelEncoding() | |
55 | { | |
56 | 0 | return this.modelEncoding; |
57 | } //-- String getModelEncoding() | |
58 | ||
59 | /** | |
60 | * Method getMojos. | |
61 | * | |
62 | * @return List | |
63 | */ | |
64 | public java.util.List<Mojo> getMojos() | |
65 | { | |
66 | 2 | if ( this.mojos == null ) |
67 | { | |
68 | 0 | this.mojos = new java.util.ArrayList<Mojo>(); |
69 | } | |
70 | ||
71 | 2 | return this.mojos; |
72 | } //-- java.util.List<Mojo> getMojos() | |
73 | ||
74 | /** | |
75 | * Method removeMojo. | |
76 | * | |
77 | * @param mojo | |
78 | */ | |
79 | public void removeMojo( Mojo mojo ) | |
80 | { | |
81 | 0 | getMojos().remove( mojo ); |
82 | 0 | } //-- void removeMojo( Mojo ) |
83 | ||
84 | /** | |
85 | * Set the modelEncoding field. | |
86 | * | |
87 | * @param modelEncoding | |
88 | */ | |
89 | public void setModelEncoding( String modelEncoding ) | |
90 | { | |
91 | 2 | this.modelEncoding = modelEncoding; |
92 | 2 | } //-- void setModelEncoding( String ) |
93 | ||
94 | /** | |
95 | * Set the list of mojos contained in the accompanying script. | |
96 | * | |
97 | * @param mojos | |
98 | */ | |
99 | public void setMojos( java.util.List<Mojo> mojos ) | |
100 | { | |
101 | 2 | this.mojos = mojos; |
102 | 2 | } //-- void setMojos( java.util.List ) |
103 | ||
104 | } |