summaryrefslogtreecommitdiff
path: root/src/com/google/wireless/gdata2/data/Feed.java
blob: 76c9e8a4105d17b2c5583f4e06cc230fb13a886f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
// Copyright 2007 The Android Open Source Project

package com.google.wireless.gdata2.data;

/**
 * Class containing information about a GData feed.  Note that this feed does
 * not contain any of the entries in that feed -- the entries are yielded
 * separately from this Feed.
 */
public class Feed {
    private int totalResults;
    private int startIndex;
    private int itemsPerPage;
    private String title;
    private String id;
    private String lastUpdated;
    private String category;
    private String categoryScheme;
    private String eTagValue;

    /**
     * Creates a new, empty feed.
     */
    public Feed() {
    }

    /** 
     * The approximate number of total results in the feed 
	 * @return totalResults
	 */
    public int getTotalResults() {
        return totalResults;
    }

    /** 
    *  The number of toal results in the feed Only used during
    *  parsing of the feed
	 * @param totalResults 
	 */
    public void setTotalResults(int totalResults) {
        this.totalResults = totalResults;
    }

    /** 
     * The starting Index of the current result set 
	 * @return startIndex
	 */
    public int getStartIndex() {
        return startIndex;
    }

    /** 
    *  The starting index of the current result set Only used during
    *  parsing of the feed
	 * @param startIndex 
	 */
    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    /** 
     * The number of items per Page in this result set 
	 * @return itemsPerPage
	 */
    public int getItemsPerPage() {
        return itemsPerPage;
    }

    /** 
    *  The number of items per page in this result set
    *  Only used during parsing of the feed
	 * @param itemsPerPage 
	 */
    public void setItemsPerPage(int itemsPerPage) {
        this.itemsPerPage = itemsPerPage;
    }

    /**
     * @return the category
     */
    public String getCategory() {
        return category;
    }

    /** 
     * The category to set 
     * Only used during parsing of the feed 
     * @param category 
     */
    public void setCategory(String category) {
        this.category = category;
    }

    /**
     * @return the categoryScheme
     */
    public String getCategoryScheme() {
        return categoryScheme;
    }

    /** 
     * The categoryScheme to set 
     * Only used during parsing of the feed
     * @param categoryScheme 
     */
    public void setCategoryScheme(String categoryScheme) {
        this.categoryScheme = categoryScheme;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /** 
     * the id to set 
     * Only used during parsing of the feed 
     * @param id 
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the lastUpdated
     */
    public String getLastUpdated() {
        return lastUpdated;
    }

    /** 
     * The lastUpdated to set 
     * Only used during parsing of the feed 
     * @param lastUpdated 
     */
    public void setLastUpdated(String lastUpdated) {
        this.lastUpdated = lastUpdated;
    }

    /**
     * @return the title
     */
    public String getTitle() {
        return title;
    }

    /** 
     * the title to set 
     * Only used during parsing of the feed 
     * @param title 
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
    * @return the value of the parsed eTag attribute 
    */
    public String getETag() {
        return eTagValue;
    }

    /**
     * @param sets the eTag on the entry, used during 
     *           parsing
     */
    public void setETag(String eTag) {
        eTagValue = eTag;
    }
 
}