Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Taglet |
|
| 1.4444444444444444;1,444 |
1 | /* | |
2 | =================== DO NOT EDIT THIS FILE ==================== | |
3 | Generated by Modello 1.1 on 2009-10-23 09:16:44, | |
4 | any modifications will be overwritten. | |
5 | ============================================================== | |
6 | */ | |
7 | ||
8 | package org.apache.maven.plugin.javadoc.options; | |
9 | ||
10 | /** | |
11 | * A Taglet parameter. | |
12 | * | |
13 | * @version $Revision$ $Date$ | |
14 | */ | |
15 | 0 | public class Taglet |
16 | implements java.io.Serializable | |
17 | { | |
18 | ||
19 | //--------------------------/ | |
20 | //- Class/Member Variables -/ | |
21 | //--------------------------/ | |
22 | ||
23 | /** | |
24 | * tagletClass is the fully-qualified name for the taglet class. | |
25 | */ | |
26 | private String tagletClass; | |
27 | ||
28 | /** | |
29 | * Specifies the search paths for finding taglet class files | |
30 | * (.class). | |
31 | */ | |
32 | private String tagletpath; | |
33 | ||
34 | /** | |
35 | * Specifies the taglet artifact to be included in the | |
36 | * tagletpath option for finding taglet class files (.class). | |
37 | */ | |
38 | private TagletArtifact tagletArtifact; | |
39 | ||
40 | ||
41 | //-----------/ | |
42 | //- Methods -/ | |
43 | //-----------/ | |
44 | ||
45 | /** | |
46 | * Method equals. | |
47 | * | |
48 | * @param other | |
49 | * @return boolean | |
50 | */ | |
51 | public boolean equals( Object other ) | |
52 | { | |
53 | 0 | if ( this == other ) |
54 | { | |
55 | 0 | return true; |
56 | } | |
57 | ||
58 | 0 | if ( !( other instanceof Taglet ) ) |
59 | { | |
60 | 0 | return false; |
61 | } | |
62 | ||
63 | 0 | Taglet that = (Taglet) other; |
64 | 0 | boolean result = true; |
65 | ||
66 | 0 | result = result && ( getTagletClass() == null ? that.getTagletClass() == null : getTagletClass().equals( that.getTagletClass() ) ); |
67 | 0 | result = result && ( getTagletpath() == null ? that.getTagletpath() == null : getTagletpath().equals( that.getTagletpath() ) ); |
68 | ||
69 | 0 | return result; |
70 | } //-- boolean equals( Object ) | |
71 | ||
72 | /** | |
73 | * Get specifies the taglet artifact to be included in the | |
74 | * tagletpath option for finding taglet class files (.class). | |
75 | * | |
76 | * @return TagletArtifact | |
77 | */ | |
78 | public TagletArtifact getTagletArtifact() | |
79 | { | |
80 | 0 | return this.tagletArtifact; |
81 | } //-- TagletArtifact getTagletArtifact() | |
82 | ||
83 | /** | |
84 | * Get tagletClass is the fully-qualified name for the taglet | |
85 | * class. | |
86 | * | |
87 | * @return String | |
88 | */ | |
89 | public String getTagletClass() | |
90 | { | |
91 | 0 | return this.tagletClass; |
92 | } //-- String getTagletClass() | |
93 | ||
94 | /** | |
95 | * Get specifies the search paths for finding taglet class | |
96 | * files (.class). | |
97 | * | |
98 | * @return String | |
99 | */ | |
100 | public String getTagletpath() | |
101 | { | |
102 | 0 | return this.tagletpath; |
103 | } //-- String getTagletpath() | |
104 | ||
105 | /** | |
106 | * Method hashCode. | |
107 | * | |
108 | * @return int | |
109 | */ | |
110 | public int hashCode() | |
111 | { | |
112 | 0 | int result = 17; |
113 | ||
114 | 0 | result = 37 * result + ( tagletClass != null ? tagletClass.hashCode() : 0 ); |
115 | 0 | result = 37 * result + ( tagletpath != null ? tagletpath.hashCode() : 0 ); |
116 | ||
117 | 0 | return result; |
118 | } //-- int hashCode() | |
119 | ||
120 | /** | |
121 | * Set specifies the taglet artifact to be included in the | |
122 | * tagletpath option for finding taglet class files (.class). | |
123 | * | |
124 | * @param tagletArtifact | |
125 | */ | |
126 | public void setTagletArtifact( TagletArtifact tagletArtifact ) | |
127 | { | |
128 | 0 | this.tagletArtifact = tagletArtifact; |
129 | 0 | } //-- void setTagletArtifact( TagletArtifact ) |
130 | ||
131 | /** | |
132 | * Set tagletClass is the fully-qualified name for the taglet | |
133 | * class. | |
134 | * | |
135 | * @param tagletClass | |
136 | */ | |
137 | public void setTagletClass( String tagletClass ) | |
138 | { | |
139 | 0 | this.tagletClass = tagletClass; |
140 | 0 | } //-- void setTagletClass( String ) |
141 | ||
142 | /** | |
143 | * Set specifies the search paths for finding taglet class | |
144 | * files (.class). | |
145 | * | |
146 | * @param tagletpath | |
147 | */ | |
148 | public void setTagletpath( String tagletpath ) | |
149 | { | |
150 | 0 | this.tagletpath = tagletpath; |
151 | 0 | } //-- void setTagletpath( String ) |
152 | ||
153 | /** | |
154 | * Method toString. | |
155 | * | |
156 | * @return String | |
157 | */ | |
158 | public java.lang.String toString() | |
159 | { | |
160 | 0 | StringBuffer buf = new StringBuffer( 128 ); |
161 | ||
162 | 0 | buf.append( "tagletClass = '" ); |
163 | 0 | buf.append( getTagletClass() ); |
164 | 0 | buf.append( "'" ); |
165 | 0 | buf.append( "\n" ); |
166 | 0 | buf.append( "tagletpath = '" ); |
167 | 0 | buf.append( getTagletpath() ); |
168 | 0 | buf.append( "'" ); |
169 | ||
170 | 0 | return buf.toString(); |
171 | } //-- java.lang.String toString() | |
172 | ||
173 | } |