1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.tools.plugin;
20
21 import java.util.Objects;
22
23 import org.apache.maven.plugin.descriptor.MojoDescriptor;
24 import org.apache.maven.plugin.descriptor.Parameter;
25
26
27
28
29
30
31 public class ExtendedMojoDescriptor extends MojoDescriptor {
32 private final boolean containsXhtmlTextValues;
33 private boolean v4Api;
34
35 public ExtendedMojoDescriptor() {
36 this(false);
37 }
38
39
40
41
42
43 public ExtendedMojoDescriptor(boolean containsXhtmlTextValues) {
44 this.containsXhtmlTextValues = containsXhtmlTextValues;
45 }
46
47
48
49
50
51
52
53
54 public boolean containsXhtmlTextValues() {
55 return containsXhtmlTextValues;
56 }
57
58 public boolean isV4Api() {
59 return v4Api;
60 }
61
62 public void setV4Api(boolean v4Api) {
63 this.v4Api = v4Api;
64 }
65
66 @Override
67 public int hashCode() {
68 final int prime = 31;
69 int result = super.hashCode();
70 result = prime * result + Objects.hash(containsXhtmlTextValues);
71 return result;
72 }
73
74 @Override
75 public boolean equals(Object obj) {
76 if (this == obj) {
77 return true;
78 }
79 if (!super.equals(obj)) {
80 return false;
81 }
82 if (getClass() != obj.getClass()) {
83 return false;
84 }
85 ExtendedMojoDescriptor other = (ExtendedMojoDescriptor) obj;
86 return containsXhtmlTextValues == other.containsXhtmlTextValues;
87 }
88 }