1 | |
package org.apache.maven.tools.plugin.annotations.datamodel; |
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
import org.apache.maven.plugins.annotations.Execute; |
23 | |
import org.apache.maven.plugins.annotations.LifecyclePhase; |
24 | |
|
25 | |
import java.lang.annotation.Annotation; |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | 2 | public class ExecuteAnnotationContent |
32 | |
implements Execute |
33 | |
{ |
34 | |
private String goal; |
35 | |
|
36 | |
private String lifecycle; |
37 | |
|
38 | |
private LifecyclePhase phase; |
39 | |
|
40 | |
public LifecyclePhase phase() |
41 | |
{ |
42 | 2 | return this.phase; |
43 | |
} |
44 | |
|
45 | |
public String goal() |
46 | |
{ |
47 | 2 | return this.goal; |
48 | |
} |
49 | |
|
50 | |
public String lifecycle() |
51 | |
{ |
52 | 2 | return this.lifecycle; |
53 | |
} |
54 | |
|
55 | |
|
56 | |
public void phase( String phase ) |
57 | |
{ |
58 | 2 | this.phase = LifecyclePhase.valueOf( phase ); |
59 | 2 | } |
60 | |
|
61 | |
public void goal( String goal ) |
62 | |
{ |
63 | 2 | this.goal = goal; |
64 | 2 | } |
65 | |
|
66 | |
public void lifecycle( String lifecycle ) |
67 | |
{ |
68 | 2 | this.lifecycle = lifecycle; |
69 | 2 | } |
70 | |
|
71 | |
|
72 | |
public Class<? extends Annotation> annotationType() |
73 | |
{ |
74 | 0 | return null; |
75 | |
} |
76 | |
|
77 | |
@Override |
78 | |
public String toString() |
79 | |
{ |
80 | 4 | final StringBuilder sb = new StringBuilder(); |
81 | 4 | sb.append( "ExecuteAnnotationContent" ); |
82 | 4 | sb.append( "{goal='" ).append( goal ).append( '\'' ); |
83 | 4 | sb.append( ", lifecycle='" ).append( lifecycle ).append( '\'' ); |
84 | 4 | sb.append( ", phase=" ).append( phase ); |
85 | 4 | sb.append( '}' ); |
86 | 4 | return sb.toString(); |
87 | |
} |
88 | |
} |