1 package com.openedit.hittracker; 2 3 public class Term 4 { 5 protected String fieldId; 6 protected String fieldFriendly; 7 protected int fieldOperation; 8 protected String fieldValue; 9 public String getId() 10 { 11 return fieldId; 12 } 13 public void setId(String inId) 14 { 15 fieldId = inId; 16 } 17 public String getFriendly() 18 { 19 return fieldFriendly; 20 } 21 public void setFriendly(String 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 getValue() 34 { 35 return fieldValue; 36 } 37 public void setValue(String inValue) 38 { 39 fieldValue = inValue; 40 } 41 public String 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 |