Ignore:
Timestamp:
06/21/11 19:30:01 (13 years ago)
Author:
gaba
Message:

logging <xsl:message> solution
options withSummary - changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/model/Query.java

    r1085 r1429  
    8383        public Query(String squeryString,String queryString, String type, String collection, String columns) {
    8484                this.type =type;
     85                if (squeryString == null)squeryString ="";
     86                if (queryString == null)queryString ="";
    8587                setFullQueryString(squeryString, queryString);
    8688                setCollection(collection);
     
    9698
    9799        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");
    101104        }
    102105
     
    109112
    110113        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, "");
    114118        }
    115119
     
    225229        public void setStartItem(String startItem) {
    226230                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                        }
    228237                }
    229238        }
     
    235244        public void setMaximumItems(String maximumItems) {
    236245                if (maximumItems!=null) {
    237                         this.maximumItems = maximumItems;
     246                        if (maximumItems.equals("")){
     247                                this.maximumItems = "50";
     248                        } else {
     249                                this.maximumItems = maximumItems;       
     250                        }
    238251                }
    239252        }
     
    433446         * applying a stylesheet on the XCQL-version 
    434447         * @return XPath-query
     448         * @throws IOException
    435449         */
    436450        public String toXPath() {       
Note: See TracChangeset for help on using the changeset viewer.