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