public class

GmItemType

extends AbstractExtension
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.api.gbase.client.GmItemType

Class Overview

Java representation for the gm:item_type tag found in the item type feed.

Summary

Fields
private String itemType
[Expand]
Inherited Fields
From class com.google.gdata.data.AbstractExtension
Public Constructors
GmItemType()
Creates an unset item type object.
GmItemType(String itemType)
Creates and initializez an item type object.
Public Methods
String getItemType()
Gets the item type value.
void setItemType(String itemType)
Sets the item type value.
Protected Methods
void consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
void putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
void validate()
Makes sure the item type is not null.
[Expand]
Inherited Methods
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Fields

private String itemType

Public Constructors

public GmItemType ()

Creates an unset item type object.

public GmItemType (String itemType)

Creates and initializez an item type object.

Parameters
itemType ItemType value

Public Methods

public String getItemType ()

Gets the item type value.

public void setItemType (String itemType)

Sets the item type value.

Parameters
itemType

Protected Methods

protected void consumeAttributes (AttributeHelper helper)

Consumes attributes from the attribute helper. May also use consumeContent(boolean) to consume the element's text content. Called from getHandler(ExtensionProfile, String, String, Attributes). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
helper Attribute helper

protected void putAttributes (AttributeGenerator generator)

Puts attributes into the attribute generator. Called from generate(XmlWriter, ExtensionProfile). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
generator Attribute generator

protected void validate ()

Makes sure the item type is not null. 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.