1 | |
package org.apache.maven.plugin.descriptor; |
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | 0 | public class Parameter |
27 | |
{ |
28 | |
private String alias; |
29 | |
|
30 | |
private String name; |
31 | |
|
32 | |
private String type; |
33 | |
|
34 | |
private boolean required; |
35 | |
|
36 | 0 | private boolean editable = true; |
37 | |
|
38 | |
private String description; |
39 | |
|
40 | |
private String expression; |
41 | |
|
42 | |
private String deprecated; |
43 | |
|
44 | |
private String defaultValue; |
45 | |
|
46 | |
private String implementation; |
47 | |
|
48 | |
private Requirement requirement; |
49 | |
|
50 | |
private String since; |
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
public String getName() |
57 | |
{ |
58 | 0 | return name; |
59 | |
} |
60 | |
|
61 | |
public void setName( String name ) |
62 | |
{ |
63 | 0 | this.name = name; |
64 | 0 | } |
65 | |
|
66 | |
public String getType() |
67 | |
{ |
68 | 0 | return type; |
69 | |
} |
70 | |
|
71 | |
public void setType( String type ) |
72 | |
{ |
73 | 0 | this.type = type; |
74 | 0 | } |
75 | |
|
76 | |
public boolean isRequired() |
77 | |
{ |
78 | 0 | return required; |
79 | |
} |
80 | |
|
81 | |
public void setRequired( boolean required ) |
82 | |
{ |
83 | 0 | this.required = required; |
84 | 0 | } |
85 | |
|
86 | |
public String getDescription() |
87 | |
{ |
88 | 0 | return description; |
89 | |
} |
90 | |
|
91 | |
public void setDescription( String description ) |
92 | |
{ |
93 | 0 | this.description = description; |
94 | 0 | } |
95 | |
|
96 | |
public String getExpression() |
97 | |
{ |
98 | 0 | return expression; |
99 | |
} |
100 | |
|
101 | |
public void setExpression( String expression ) |
102 | |
{ |
103 | 0 | this.expression = expression; |
104 | 0 | } |
105 | |
|
106 | |
public String getDeprecated() |
107 | |
{ |
108 | 0 | return deprecated; |
109 | |
} |
110 | |
|
111 | |
public void setDeprecated( String deprecated ) |
112 | |
{ |
113 | 0 | this.deprecated = deprecated; |
114 | 0 | } |
115 | |
|
116 | |
public int hashCode() |
117 | |
{ |
118 | 0 | return name.hashCode(); |
119 | |
} |
120 | |
|
121 | |
public boolean equals( Object other ) |
122 | |
{ |
123 | 0 | return ( other instanceof Parameter ) && getName().equals( ( (Parameter) other ).getName() ); |
124 | |
} |
125 | |
|
126 | |
public String getAlias() |
127 | |
{ |
128 | 0 | return alias; |
129 | |
} |
130 | |
|
131 | |
public void setAlias( String alias ) |
132 | |
{ |
133 | 0 | this.alias = alias; |
134 | 0 | } |
135 | |
|
136 | |
public boolean isEditable() |
137 | |
{ |
138 | 0 | return editable; |
139 | |
} |
140 | |
|
141 | |
public void setEditable( boolean editable ) |
142 | |
{ |
143 | 0 | this.editable = editable; |
144 | 0 | } |
145 | |
|
146 | |
public void setDefaultValue( String defaultValue ) |
147 | |
{ |
148 | 0 | this.defaultValue = defaultValue; |
149 | 0 | } |
150 | |
|
151 | |
public String getDefaultValue() |
152 | |
{ |
153 | 0 | return defaultValue; |
154 | |
} |
155 | |
|
156 | |
public String toString() |
157 | |
{ |
158 | 0 | return "Mojo parameter [name: \'" + getName() + "\'; alias: \'" + getAlias() + "\']"; |
159 | |
} |
160 | |
|
161 | |
public Requirement getRequirement() |
162 | |
{ |
163 | 0 | return requirement; |
164 | |
} |
165 | |
|
166 | |
public void setRequirement( Requirement requirement ) |
167 | |
{ |
168 | 0 | this.requirement = requirement; |
169 | 0 | } |
170 | |
|
171 | |
public String getImplementation() |
172 | |
{ |
173 | 0 | return implementation; |
174 | |
} |
175 | |
|
176 | |
public void setImplementation( String implementation ) |
177 | |
{ |
178 | 0 | this.implementation = implementation; |
179 | 0 | } |
180 | |
|
181 | |
public String getSince() |
182 | |
{ |
183 | 0 | return since; |
184 | |
} |
185 | |
|
186 | |
public void setSince( String since ) |
187 | |
{ |
188 | 0 | this.since = since; |
189 | 0 | } |
190 | |
} |