KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > raptus > owxv3 > modules > searcher > SearchProperty


1 /*
2  * eAdmin/OWX
3  * Copyright (C) 1996-2003 OWX-Project Team <owx-team@gmx.net>
4  */

5
6 package com.raptus.owxv3.modules.searcher;
7
8
9
10 /**
11  * Contains
12  *
13  * <hr>
14  * <table width="100%" border="0">
15  * <tr>
16  * <td width="24%"><b>Filename</b></td><td width="76%">SearchProperty</td>
17  * </tr>
18  * <tr>
19  * <td width="24%"><b>Author</b></td><td width="76%">REEA</td>
20  * </tr>
21  * <tr>
22  * <td width="24%"><b>Date</b></td><td width="76%">15th of October</td>
23  * </tr>
24  * </table>
25  * <hr>
26  * <table width="100%" border="0">
27  * <tr>
28  * <td width="24%"><b>Date / Author</b></td><td width="76%"><b>Changes</b></td>
29  * </tr>
30  * </table>
31  * <hr>
32  *This class is holds search properties of a certain table specified in the config file.
33  */

34 public class SearchProperty extends Object JavaDoc
35 {
36     /**
37      *The vmodules' id to wich this property reffers
38      */

39     protected String JavaDoc vmoduleid=null;
40
41     /**
42      *The table to wich this property reffers
43      */

44     protected String JavaDoc table=null;
45
46     /**
47      *The tablefields that will be used to search from this table
48      */

49     protected String JavaDoc[] tablefields=null;
50
51     /**
52      *The tablefields that will be used to search from this table
53      */

54     protected String JavaDoc tablekey=null;
55
56     /**
57      *An aditional conditions that will be added to the search query.
58      */

59     protected String JavaDoc[] condition=null;
60
61     /**
62      *The name of the locale field in this table
63      */

64     protected String JavaDoc localekey=null;
65
66     /**
67      *The url to wich the user should be redirected if he/she clicks on a search result.<br>
68      *It may contain the $key word that will be replaced.
69      */

70
71     protected String JavaDoc url=null;
72     
73     /**
74      *The input field to use as value fpr this search
75      */

76     protected String JavaDoc input=null;
77     
78     /**
79      *The group that this search definition belongs too
80      */

81     protected String JavaDoc group=null;
82     
83     /**
84      * true if empty filter conditions returns all results
85      */

86     protected boolean emptyisall = false;
87     
88     /**
89      *The comparation to use
90      */

91     protected String JavaDoc compare=null;
92
93     public SearchProperty(){
94
95     }
96
97     public String JavaDoc getVModule() { return vmoduleid; }
98     public void setVModule(String JavaDoc vmid) { vmoduleid=vmid; }
99
100     public String JavaDoc getTable() { return table; }
101     public void setTable(String JavaDoc t) { table=t; }
102
103     public String JavaDoc[] getTableFields() { return tablefields; }
104     public void setTableFields(String JavaDoc[] t){ tablefields=t; }
105
106     public String JavaDoc getTableKey() { return tablekey; }
107     public void setTableKey(String JavaDoc tk) { tablekey=tk; }
108
109     public String JavaDoc getLocaleKey() { return localekey; }
110     public void setLocaleKey(String JavaDoc l) { localekey=l; }
111
112
113     public String JavaDoc getURL() { return url; }
114     public void setURL(String JavaDoc u) { url=u; }
115
116
117     public String JavaDoc[] getCondition() { return condition; }
118     public void setCondition(String JavaDoc[] c)
119     {
120         if(c==null) condition=new String JavaDoc[]{""};
121         else condition=c;
122     }
123
124     public String JavaDoc getInput() { return input; }
125     public void setInput(String JavaDoc i) { input=i; }
126
127     public String JavaDoc getGroup() { return group; }
128     public void setGroup(String JavaDoc g) { group=g; }
129     
130     public String JavaDoc getCompare() { return compare; }
131     public void setCompare(String JavaDoc s) { compare=s; }
132     
133     public boolean isEmptyAllResults() { return emptyisall; }
134     public void setEmptyIsAll(boolean b) { this.emptyisall = b; }
135 }
136
Popular Tags