- Timestamp:
- 06/21/11 19:30:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/model/Query.java
r1085 r1429 83 83 public Query(String squeryString,String queryString, String type, String collection, String columns) { 84 84 this.type =type; 85 if (squeryString == null)squeryString =""; 86 if (queryString == null)queryString =""; 85 87 setFullQueryString(squeryString, queryString); 86 88 setCollection(collection); … … 96 98 97 99 public Query(String squeryString, String queryString, String type, String collection) { 98 this.type =type; 99 setFullQueryString(squeryString, queryString); 100 setCollection(collection); 100 //this.type =type; 101 //setFullQueryString(squeryString, queryString); 102 //setCollection(collection); 103 this(squeryString, queryString, type, collection, "Id,name"); 101 104 } 102 105 … … 109 112 110 113 public Query(String squeryString, String queryString, String type) { 111 this.type =type; 112 if (squeryString == null)squeryString =""; 113 setFullQueryString(squeryString, queryString); 114 //this.type =type; 115 //if (squeryString == null)squeryString =""; 116 //setFullQueryString(squeryString, queryString); 117 this(squeryString, queryString, type, ""); 114 118 } 115 119 … … 225 229 public void setStartItem(String startItem) { 226 230 if (startItem!=null) { 227 this.startItem = startItem; 231 if (startItem.equals("")){ 232 // sets default startItem 233 this.startItem = "1"; 234 }else { 235 this.startItem = startItem; 236 } 228 237 } 229 238 } … … 235 244 public void setMaximumItems(String maximumItems) { 236 245 if (maximumItems!=null) { 237 this.maximumItems = maximumItems; 246 if (maximumItems.equals("")){ 247 this.maximumItems = "50"; 248 } else { 249 this.maximumItems = maximumItems; 250 } 238 251 } 239 252 } … … 433 446 * applying a stylesheet on the XCQL-version 434 447 * @return XPath-query 448 * @throws IOException 435 449 */ 436 450 public String toXPath() {
Note: See TracChangeset
for help on using the changeset viewer.