KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > openedit > hittracker > Term


1 package com.openedit.hittracker;
2
3 public class Term
4 {
5     protected String JavaDoc fieldId;
6     protected String JavaDoc fieldFriendly;
7     protected int fieldOperation;
8     protected String JavaDoc fieldValue;
9     public String JavaDoc getId()
10     {
11         return fieldId;
12     }
13     public void setId(String JavaDoc inId)
14     {
15         fieldId = inId;
16     }
17     public String JavaDoc getFriendly()
18     {
19         return fieldFriendly;
20     }
21     public void setFriendly(String JavaDoc inFriendly)
22     {
23         fieldFriendly = inFriendly;
24     }
25     public int getOperation()
26     {
27         return fieldOperation;
28     }
29     public void setOperation(int inOperation)
30     {
31         fieldOperation = inOperation;
32     }
33     public String JavaDoc getValue()
34     {
35         return fieldValue;
36     }
37     public void setValue(String JavaDoc inValue)
38     {
39         fieldValue = inValue;
40     }
41     public String JavaDoc toQuery()
42     {
43         if( getId() != null )
44         {
45             return getId() +":" + getValue();
46         }
47         else
48         {
49             return getValue();
50         }
51     }
52     
53 }
54
Popular Tags