KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > tasklist > bugs > scarab > ScarabBugQuery


1 /*
2  * ScarabBugQuery.java
3  *
4  * Created on November 29, 2005, 5:11 AM
5  *
6  * To change this template, choose Tools | Template Manager
7  * and open the template in the editor.
8  */

9
10 package org.netbeans.modules.tasklist.bugs.scarab;
11
12 import java.util.HashMap JavaDoc;
13 import java.util.Map JavaDoc;
14 import org.netbeans.modules.tasklist.bugs.BugQuery;
15
16 /**
17  *
18  * @author mick
19  * @version $Id: ScarabBugQuery.java,v 1.1 2005/12/03 00:39:00 hair Exp $
20  */

21 public final class ScarabBugQuery extends BugQuery
22 {
23     private final Map JavaDoc attributes = new HashMap JavaDoc();
24     private final BugQuery bugQuery;
25     
26     /** Creates a new instance of ScarabBugQuery */
27     public ScarabBugQuery(final BugQuery query)
28     {
29         bugQuery = query;
30     }
31     
32     public String JavaDoc getAttributeName(final String JavaDoc attribute)
33     {
34         return (String JavaDoc)attributes.get(attribute);
35     }
36     
37     public void setAttributeName(final String JavaDoc tasklistAttribute,
38             final String JavaDoc scarabAttribute)
39     {
40         attributes.put(tasklistAttribute, scarabAttribute);
41     }
42     
43     public String JavaDoc getSummary() {
44         return bugQuery.getSummary();
45     }
46     
47     public Integer JavaDoc getBugId() {
48         return bugQuery.getBugId();
49     }
50     
51     /** Getter for property mBugEngine.
52      * @return Value of property mBugEngine.
53      *
54      */

55     public java.lang.String JavaDoc getBugEngine() {
56         return bugQuery.getBugEngine();
57     }
58     
59     /** Setter for property mBugEngine.
60      * @param mBugEngine New value of property mBugEngine.
61      *
62      */

63     public void setBugEngine(java.lang.String JavaDoc mBugEngine) {
64         bugQuery.setBugEngine(mBugEngine);
65     }
66     
67     /** Getter for property mQueryString.
68      * @return Value of property mQueryString.
69      *
70      */

71     public java.lang.String JavaDoc getQueryString() {
72         return bugQuery.getQueryString();
73     }
74     
75     /** Setter for property mQueryString.
76      * @param mQueryString New value of property mQueryString.
77      *
78      */

79     public void setQueryString(java.lang.String JavaDoc mQueryString) {
80         bugQuery.setQueryString(mQueryString);
81     }
82     
83     /** Getter for property mBaseUrl.
84      * @return Value of property mBaseUrl.
85      *
86      */

87     public java.lang.String JavaDoc getBaseUrl() {
88         return bugQuery.getBaseUrl();
89     }
90     
91     /** Setter for property mBaseUrl.
92      * @param mBaseUrl New value of property mBaseUrl.
93      *
94      */

95     public void setBaseUrl(java.lang.String JavaDoc mBaseUrl) {
96         bugQuery.setBaseUrl(mBaseUrl);
97     }
98 }
99
Popular Tags