Methods Summary |
---|
protected com.google.wireless.gdata.data.Entry | createEntry()
return new WorksheetEntry();
|
protected com.google.wireless.gdata.data.Feed | createFeed()
return new WorksheetFeed();
|
protected void | handleExtraElementInEntry(com.google.wireless.gdata.data.Entry entry)
XmlPullParser parser = getParser();
if (!(entry instanceof WorksheetEntry)) {
throw new IllegalArgumentException("Expected WorksheetEntry!");
}
WorksheetEntry worksheet = (WorksheetEntry) entry;
// the only custom elements are rowCount and colCount
String name = parser.getName();
if ("rowCount".equals(name)) {
worksheet.setRowCount(StringUtils.parseInt(XmlUtils
.extractChildText(parser), 0));
} else if ("colCount".equals(name)) {
worksheet.setColCount(StringUtils.parseInt(XmlUtils
.extractChildText(parser), 0));
}
|
protected void | handleExtraLinkInEntry(java.lang.String rel, java.lang.String type, java.lang.String href, com.google.wireless.gdata.data.Entry entry)
if (LIST_FEED_REL.equals(rel) && "application/atom+xml".equals(type)) {
WorksheetEntry sheet = (WorksheetEntry) entry;
sheet.setListFeedUri(href);
} else if (CELLS_FEED_REL.equals(rel)
&& "application/atom+xml".equals(type)) {
WorksheetEntry sheet = (WorksheetEntry) entry;
sheet.setCellFeedUri(href);
}
|