public class

Worksheet

extends ValueConstruct
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ValueConstruct
       ↳ com.google.gdata.data.spreadsheet.Worksheet

Class Overview

Describes a worksheet where the table lives.

Summary

Constants
String NAME XML "name" attribute name
String XML_NAME XML element name
[Expand]
Inherited Fields
From class com.google.gdata.data.ValueConstruct
From class com.google.gdata.data.AbstractExtension
Public Constructors
Worksheet()
Default mutable constructor.
Worksheet(String name)
Constructor (mutable or immutable).
Public Methods
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.
String getName()
Returns the worksheet name.
boolean hasName()
Returns whether it has the worksheet name.
void setName(String name)
Sets the worksheet name.
String toString()
[Expand]
Inherited Methods
From class com.google.gdata.data.ValueConstruct
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Constants

private static final String NAME

XML "name" attribute name

Constant Value: "name"

static final String XML_NAME

XML element name

Constant Value: "worksheet"

Public Constructors

public Worksheet ()

Default mutable constructor.

public Worksheet (String name)

Constructor (mutable or immutable).

Parameters
name Immutable worksheet name or null for a mutable worksheet name

Public Methods

public static ExtensionDescription getDefaultDescription (boolean required, boolean repeatable)

Returns the extension description, specifying whether it is required, and whether it is repeatable.

Parameters
required Whether it is required
repeatable Whether it is repeatable
Returns
  • extension description

public String getName ()

Returns the worksheet name.

Returns
  • worksheet name

public boolean hasName ()

Returns whether it has the worksheet name.

Returns
  • whether it has the worksheet name

public void setName (String name)

Sets the worksheet name.

Parameters
name Worksheet name or null to reset

public String toString ()