public class

SpreadsheetEntry

extends DocumentListEntry
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.BaseEntry<E extends com.google.gdata.data.BaseEntry>
         ↳ com.google.gdata.data.media.MediaEntry<E extends com.google.gdata.data.BaseEntry<E>>
           ↳ com.google.gdata.data.docs.DocumentListEntry
             ↳ com.google.gdata.data.docs.SpreadsheetEntry

Class Overview

An entry representing a single spreadsheet within a DocumentListFeed.

Summary

Constants
String KIND Kind category term used to label the entries which are of document type.
String LABEL Label for category.
[Expand]
Inherited Constants
From class com.google.gdata.data.docs.DocumentListEntry
Fields
public static final Category CATEGORY Category used to label entries that contain spreadsheet data.
[Expand]
Inherited Fields
From class com.google.gdata.data.docs.DocumentListEntry
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
SpreadsheetEntry()
Constructs a new uninitialized entry, to be populated by the GData parsers.
SpreadsheetEntry(BaseEntry sourceEntry)
Constructs a new entry by doing a shallow copy from another BaseEntry instance.
Public Methods
WorksheetEntry getDefaultWorksheet()
Gets the first worksheet in the spreadsheet.
URL getWorksheetFeedUrl()
Gets the URL for this spreadsheet's worksheets feed.
List<WorksheetEntry> getWorksheets()
Gets all worksheet entries that are part of this spreadsheet.
[Expand]
Inherited Methods
From class com.google.gdata.data.docs.DocumentListEntry
From class com.google.gdata.data.media.MediaEntry
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension
From interface com.google.gdata.data.IAtom
From interface com.google.gdata.data.IEntry
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor
From interface com.google.gdata.data.media.IMediaEntry

Constants

public static final String KIND

Kind category term used to label the entries which are of document type.

Constant Value: "http://schemas.google.com/docs/2007#spreadsheet"

public static final String LABEL

Label for category.

Constant Value: "spreadsheet"

Fields

public static final Category CATEGORY

Category used to label entries that contain spreadsheet data.

Public Constructors

public SpreadsheetEntry ()

Constructs a new uninitialized entry, to be populated by the GData parsers.

public SpreadsheetEntry (BaseEntry sourceEntry)

Constructs a new entry by doing a shallow copy from another BaseEntry instance.

Parameters
sourceEntry

Public Methods

public WorksheetEntry getDefaultWorksheet ()

Gets the first worksheet in the spreadsheet. This is very useful if your spreadsheet only has one worksheet.

Returns
  • the first worksheet
Throws
IOException
ServiceException

public URL getWorksheetFeedUrl ()

Gets the URL for this spreadsheet's worksheets feed. You can then create a query using this URL to query this worksheet's sheets.

Returns
  • a URL to get a feed of worksheets

public List<WorksheetEntry> getWorksheets ()

Gets all worksheet entries that are part of this spreadsheet. You must be online for this to work.

Returns
  • the list of worksheet entries
Throws
IOException
ServiceException