public class

GoogleBaseEntry

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.api.gbase.client.GoogleBaseEntry

Class Overview

An object corresponding to one entry in a Google Base Atom XML file. This kind of entries supports tags in the g: namespace. GoogleBaseEntries are usually returned by getEntries(), getEntry(java.net.URL), but they can also be created independently. Depending on the feed or URL you got the Entry from, it can contain:

  • g: namespace tags (getGoogleBaseAttributes(), if it is an item feed or a URL specifying an item.
  • gm: namespace tags (getGoogleBaseMetadata(), if it is a histogram or an item type.
  • locale feeds will contain no g: or gm: namespaces whatsoever. You'll find the locale name in the title of the entry.
Items usually contain only g: tags (attributes) or only gm: tags (metadata) depending on their types, never both.

Summary

Fields
private final GoogleBaseAttributesExtension googleBaseAttributesExtension
private final MetadataEntryExtension metadata
[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
GoogleBaseEntry()
Creates a new entry.
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares extensions for the g: and gm: namespaces to an extension profile.
GoogleBaseAttributesExtension getGoogleBaseAttributes()
Accesses tags in the g: namespace.
MetadataEntryExtension getGoogleBaseMetadata()
Accesses tags in the gm: namespace (attribute histogram and item type descriptions).
FeedLink<GoogleBaseMediaFeed> getMediaFeedLink()
Returns the FeedLink object pointing to the media feed, or null if the media feed link is not provided (e.g.
[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

Fields

private final GoogleBaseAttributesExtension googleBaseAttributesExtension

private final MetadataEntryExtension metadata

Public Constructors

public GoogleBaseEntry ()

Creates a new entry.

Public Methods

public void declareExtensions (ExtensionProfile extProfile)

Declares extensions for the g: and gm: namespaces to an extension profile.

Parameters
extProfile Extension profile where the extensions will be declared

public GoogleBaseAttributesExtension getGoogleBaseAttributes ()

Accesses tags in the g: namespace.

Returns
  • extension corresponding to tags in the g: namespace, never null but might be empty.

public MetadataEntryExtension getGoogleBaseMetadata ()

Accesses tags in the gm: namespace (attribute histogram and item type descriptions). The gm: tags are read-only.

Returns
  • extension corresponding to tags in the gm: namespace, never null but might be empty

public FeedLink<GoogleBaseMediaFeed> getMediaFeedLink ()

Returns the FeedLink object pointing to the media feed, or null if the media feed link is not provided (e.g. the entry is obtained from the /snippets feed).

Returns
  • the feed link pointing to the media feed, or null if link is not provided