1
2
3
4
5
6
7
8 package org.apache.maven.plugin.javadoc.options;
9
10
11
12
13
14
15 @SuppressWarnings( "all" )
16 public class Taglet
17 implements java.io.Serializable
18 {
19
20
21
22
23
24
25
26
27 private String tagletClass;
28
29
30
31
32
33 private String tagletpath;
34
35
36
37
38
39 private TagletArtifact tagletArtifact;
40
41
42
43
44
45
46
47
48
49
50
51
52 public boolean equals( Object other )
53 {
54 if ( this == other )
55 {
56 return true;
57 }
58
59 if ( !( other instanceof Taglet ) )
60 {
61 return false;
62 }
63
64 Taglet that = (Taglet) other;
65 boolean result = true;
66
67 result = result && ( getTagletClass() == null ? that.getTagletClass() == null : getTagletClass().equals( that.getTagletClass() ) );
68 result = result && ( getTagletpath() == null ? that.getTagletpath() == null : getTagletpath().equals( that.getTagletpath() ) );
69
70 return result;
71 }
72
73
74
75
76
77
78
79 public TagletArtifact getTagletArtifact()
80 {
81 return this.tagletArtifact;
82 }
83
84
85
86
87
88
89
90 public String getTagletClass()
91 {
92 return this.tagletClass;
93 }
94
95
96
97
98
99
100
101 public String getTagletpath()
102 {
103 return this.tagletpath;
104 }
105
106
107
108
109
110
111 public int hashCode()
112 {
113 int result = 17;
114
115 result = 37 * result + ( tagletClass != null ? tagletClass.hashCode() : 0 );
116 result = 37 * result + ( tagletpath != null ? tagletpath.hashCode() : 0 );
117
118 return result;
119 }
120
121
122
123
124
125
126
127 public void setTagletArtifact( TagletArtifact tagletArtifact )
128 {
129 this.tagletArtifact = tagletArtifact;
130 }
131
132
133
134
135
136
137
138 public void setTagletClass( String tagletClass )
139 {
140 this.tagletClass = tagletClass;
141 }
142
143
144
145
146
147
148
149 public void setTagletpath( String tagletpath )
150 {
151 this.tagletpath = tagletpath;
152 }
153
154
155
156
157
158
159 public java.lang.String toString()
160 {
161 StringBuilder buf = new StringBuilder( 128 );
162
163 buf.append( "tagletClass = '" );
164 buf.append( getTagletClass() );
165 buf.append( "'" );
166 buf.append( "\n" );
167 buf.append( "tagletpath = '" );
168 buf.append( getTagletpath() );
169 buf.append( "'" );
170
171 return buf.toString();
172 }
173
174 }