1 11 package org.eclipse.help.internal.search; 12 13 import java.util.ArrayList ; 14 import java.util.Collection ; 15 16 import org.eclipse.core.runtime.*; 17 18 21 public class SearchQuery implements ISearchQuery { 22 Collection fieldNames; 23 boolean fieldSearch; 24 String locale; 25 String searchWord; 26 public SearchQuery() { 27 this("", false, new ArrayList (), Platform.getNL()); } 29 public SearchQuery(String searchWord, boolean fieldSearch, 30 Collection fieldNames, String locale) { 31 this.searchWord = searchWord; 32 this.fieldSearch = fieldSearch; 33 this.fieldNames = fieldNames; 34 this.locale = locale; 35 } 36 41 public Collection getFieldNames() { 42 return fieldNames; 43 } 44 45 50 public boolean isFieldSearch() { 51 return fieldSearch; 52 } 53 54 59 public String getLocale() { 60 return locale; 61 } 62 63 68 public String getSearchWord() { 69 return searchWord; 70 } 71 72 78 public void setFieldNames(Collection fieldNames) { 79 this.fieldNames = fieldNames; 80 } 81 82 88 public void setFieldSearch(boolean fieldSearch) { 89 this.fieldSearch = fieldSearch; 90 } 91 92 98 public void setLocale(String locale) { 99 this.locale = locale; 100 } 101 102 108 public void setSearchWord(String searchWord) { 109 this.searchWord = searchWord; 110 } 111 112 } 113 | Popular Tags |