1 package org.apache.maven.tools.plugin.extractor.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 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 return this.phase;
43 }
44
45 public String goal()
46 {
47 return this.goal;
48 }
49
50 public String lifecycle()
51 {
52 return this.lifecycle;
53 }
54
55
56 public void phase( String phase )
57 {
58 this.phase = LifecyclePhase.valueOf( phase );
59 }
60
61 public void goal( String goal )
62 {
63 this.goal = goal;
64 }
65
66 public void lifecycle( String lifecycle )
67 {
68 this.lifecycle = lifecycle;
69 }
70
71
72 public Class<? extends Annotation> annotationType()
73 {
74 return null;
75 }
76
77 @Override
78 public String toString()
79 {
80 final StringBuilder sb = new StringBuilder();
81 sb.append( "ExecuteAnnotationContent" );
82 sb.append( "{goal='" ).append( goal ).append( '\'' );
83 sb.append( ", lifecycle='" ).append( lifecycle ).append( '\'' );
84 sb.append( ", phase=" ).append( phase );
85 sb.append( '}' );
86 return sb.toString();
87 }
88 }