KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hammurapi > InspectorDescriptorFilter


1 /*
2  * Hammurapi
3  * Automated Java code review system.
4  * Copyright (C) 2004 Hammurapi Group
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  * URL: http://www.hammurapi.org
21  * e-Mail: support@hammurapi.biz
22  */

23 package org.hammurapi;
24
25 import java.util.Collection JavaDoc;
26
27 import com.pavelvlasov.config.ConfigurationException;
28
29 /**
30  * @author Pavel Vlasov
31  * @version $Revision: 1.3 $
32  */

33 public class InspectorDescriptorFilter implements InspectorDescriptor {
34     private InspectorDescriptor master;
35
36     public InspectorDescriptorFilter(InspectorDescriptor master) {
37         this.master=master;
38     }
39
40     /**
41      * @return
42      */

43     public String JavaDoc getDescription() {
44         return master.getDescription();
45     }
46
47     /**
48      * @return
49      */

50     public String JavaDoc getFixSample() {
51         return master.getFixSample();
52     }
53
54     /**
55      * @return
56      * @throws ConfigurationException
57      */

58     public Inspector getInspector() throws ConfigurationException {
59         return master.getInspector();
60     }
61
62     /**
63      * @return
64      */

65     public String JavaDoc getMessage() {
66         return master.getMessage();
67     }
68
69     /**
70      * @param key
71      * @return
72      */

73     public String JavaDoc getMessage(String JavaDoc key) {
74         return master.getMessage(key);
75     }
76
77     /**
78      * @return
79      */

80     public String JavaDoc getName() {
81         return master.getName();
82     }
83
84     /**
85      * @return
86      */

87     public Integer JavaDoc getOrder() {
88         return master.getOrder();
89     }
90
91     /**
92      * @return
93      */

94     public Collection JavaDoc getParameters() {
95         return master.getParameters();
96     }
97
98     /**
99      * @return
100      */

101     public String JavaDoc getRationale() {
102         return master.getRationale();
103     }
104
105     /**
106      * @return
107      */

108     public String JavaDoc getResources() {
109         return master.getResources();
110     }
111
112     /**
113      * @return
114      */

115     public Integer JavaDoc getSeverity() {
116         return master.getSeverity();
117     }
118
119     /**
120      * @return
121      */

122     public String JavaDoc getViolationSample() {
123         return master.getViolationSample();
124     }
125
126     /**
127      * @return
128      */

129     public Collection JavaDoc getWaiveCases() {
130         return master.getWaiveCases();
131     }
132
133     /**
134      * @param inspectorKey
135      * @return
136      */

137     public String JavaDoc getWaivedInspectorName(String JavaDoc inspectorKey) {
138         return master.getWaivedInspectorName(inspectorKey);
139     }
140
141     /**
142      * @return
143      */

144     public Collection JavaDoc getWaivedInspectorNames() {
145         return master.getWaivedInspectorNames();
146     }
147
148     /**
149      * @param inspectorKey
150      * @return
151      */

152     public String JavaDoc getWaiveReason(String JavaDoc inspectorKey) {
153         return master.getWaiveReason(inspectorKey);
154     }
155
156     /**
157      * @return
158      */

159     public Boolean JavaDoc isEnabled() {
160         return master.isEnabled();
161     }
162
163     /**
164      * @return
165      */

166     public Boolean JavaDoc isWaivable() {
167         return master.isWaivable();
168     }
169
170     /**
171      * @return
172      */

173     public String JavaDoc getCategory() {
174         return master.getCategory();
175     }
176
177     public Collection JavaDoc getFilteredInspectorDesriptors(InspectorSet inspectorSet, Collection JavaDoc chain) {
178         return master.getFilteredInspectorDesriptors(inspectorSet, chain);
179     }
180
181     public Collection JavaDoc getAfterInspectorNames() {
182         return master.getAfterInspectorNames();
183     }
184 }
185
Popular Tags