KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jdon > model > query > block > Block


1 /*
2  * Copyright 2003-2006 the original author or authors.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  *
15  */

16 package com.jdon.model.query.block;
17
18 import java.util.List JavaDoc;
19
20 /**
21  * @author <a HREF="mailto:banqiao@jdon.com">banq</a>
22  *
23  */

24 public class Block {
25     
26     private int start;
27     private int count;
28     
29     private List JavaDoc list;
30
31    
32     /**
33      * @param start
34      * @param count
35      */

36     public Block(int start, int count) {
37         super();
38         this.start = start;
39         this.count = count;
40     }
41     /**
42      * @return Returns the count.
43      */

44     public int getCount() {
45         return count;
46     }
47     /**
48      * @param count The count to set.
49      */

50     public void setCount(int count) {
51         this.count = count;
52     }
53     /**
54      * @return Returns the start.
55      */

56     public int getStart() {
57         return start;
58     }
59     /**
60      * @param start The start to set.
61      */

62     public void setStart(int start) {
63         this.start = start;
64     }
65     
66     
67    
68     
69     /**
70      * @return Returns the list.
71      */

72     public List JavaDoc getList() {
73         return list;
74     }
75     /**
76      * @param list The list to set.
77      */

78     public void setList(List JavaDoc list) {
79         this.list = list;
80     }
81     
82     public String JavaDoc toString(){
83         StringBuffer JavaDoc sb = new StringBuffer JavaDoc();
84         sb.append("block start=");
85         sb.append(start);
86         sb.append(" and count=");
87         sb.append(count);
88         return sb.toString();
89     }
90
91   
92 }
93
Popular Tags