JAL-1668 added filtering and sorting capabilites
[jalview.git] / src / jalview / ws / uimodel / PDBSearchRequest.java
1 package jalview.ws.uimodel;
2
3
4 import jalview.ws.dbsources.PDBRestClient.PDBDocField;
5
6 import java.util.ArrayList;
7 import java.util.List;
8
9 public class PDBSearchRequest
10 {
11   private String fieldToSearchBy;
12
13   private String searchTerm;
14
15   private String fieldToSortBy;
16
17   private String associatedSequence;
18
19   private boolean allowEmptySeq;
20
21   private int responseSize;
22
23   private boolean isAscending;
24
25   private List<PDBDocField> wantedFields = new ArrayList<PDBDocField>();
26
27   public String getFieldToSearchBy()
28   {
29     return fieldToSearchBy;
30   }
31
32   public void setFieldToSearchBy(String fieldToSearchBy)
33   {
34     this.fieldToSearchBy = fieldToSearchBy;
35   }
36
37   public String getSearchTerm()
38   {
39     return searchTerm;
40   }
41
42   public void setSearchTerm(String searchTerm)
43   {
44     this.searchTerm = searchTerm;
45   }
46
47   public boolean isAllowEmptySeq()
48   {
49     return allowEmptySeq;
50   }
51
52   public void setAllowEmptySeq(boolean allowEmptySeq)
53   {
54     this.allowEmptySeq = allowEmptySeq;
55   }
56
57   public int getResponseSize()
58   {
59     return responseSize;
60   }
61
62   public void setResponseSize(int responseSize)
63   {
64     this.responseSize = responseSize;
65   }
66
67   public List<PDBDocField> getWantedFields()
68   {
69     return wantedFields;
70   }
71
72   public void setWantedFields(List<PDBDocField> wantedFields)
73   {
74     this.wantedFields = wantedFields;
75   }
76
77   public String getFieldToSortBy()
78   {
79     return fieldToSortBy;
80   }
81
82   public void setFieldToSortBy(String fieldToSortBy, boolean isAscending)
83   {
84     this.fieldToSortBy = fieldToSortBy;
85     this.isAscending = isAscending;
86   }
87
88   public boolean isAscending()
89   {
90     return isAscending;
91   }
92
93   public String getAssociatedSequence()
94   {
95     return associatedSequence;
96   }
97
98   public void setAssociatedSequence(String associatedSequence)
99   {
100     this.associatedSequence = associatedSequence;
101   }
102
103
104
105 }