public class

TableEntry

extends BaseEntry<E extends BaseEntry>
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.spreadsheet.TableEntry

Class Overview

Describes a table entry in the feed of a spreadsheet's tables.

Summary

Constants
String KIND Table table category kind term value.
Fields
public static final Category CATEGORY Table table category kind category.
[Expand]
Inherited Fields
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
TableEntry()
Default mutable constructor.
TableEntry(BaseEntry<?> sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
Data getData()
Returns the data region of a table.
Header getHeader()
Returns the header row.
Link getRecordsFeedLink()
Returns the link for the feed of a table's records.
Worksheet getWorksheet()
Returns the worksheet where the table lives.
boolean hasData()
Returns whether it has the data region of a table.
boolean hasHeader()
Returns whether it has the header row.
boolean hasWorksheet()
Returns whether it has the worksheet where the table lives.
void setData(Data data)
Sets the data region of a table.
void setHeader(Header header)
Sets the header row.
void setWorksheet(Worksheet worksheet)
Sets the worksheet where the table lives.
String toString()
Protected Methods
void validate()
Checks the attributes to see if there are any problems.
[Expand]
Inherited Methods
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

Constants

public static final String KIND

Table table category kind term value.

Constant Value: "http://schemas.google.com/spreadsheets/2006#table"

Fields

public static final Category CATEGORY

Table table category kind category.

Public Constructors

public TableEntry ()

Default mutable constructor.

public TableEntry (BaseEntry<?> sourceEntry)

Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.

Parameters
sourceEntry Source entry

Public Methods

public void declareExtensions (ExtensionProfile extProfile)

Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. The base implementation does not declare any extensions, but can be overridden by specific types of ExtensionPoints that always contain a well-defined set of extensions.

Parameters
extProfile The ExtensionProfile to initialize.

public Data getData ()

Returns the data region of a table.

Returns
  • data region of a table

public Header getHeader ()

Returns the header row.

Returns
  • header row

public Link getRecordsFeedLink ()

Returns the link for the feed of a table's records.

Returns
  • Link for the feed of a table's records or null for none.

public Worksheet getWorksheet ()

Returns the worksheet where the table lives.

Returns
  • worksheet where the table lives

public boolean hasData ()

Returns whether it has the data region of a table.

Returns
  • whether it has the data region of a table

public boolean hasHeader ()

Returns whether it has the header row.

Returns
  • whether it has the header row

public boolean hasWorksheet ()

Returns whether it has the worksheet where the table lives.

Returns
  • whether it has the worksheet where the table lives

public void setData (Data data)

Sets the data region of a table.

Parameters
data Data region of a table or null to reset

public void setHeader (Header header)

Sets the header row.

Parameters
header Header row or null to reset

public void setWorksheet (Worksheet worksheet)

Sets the worksheet where the table lives.

Parameters
worksheet Worksheet where the table lives or null to reset

public String toString ()

Protected Methods

protected void validate ()

Checks the attributes to see if there are any problems. Default implementation does nothing, though generally this is discouraged unless there really are no restrictions.