public class

KeywordsFeed

extends BaseFeed<F extends BaseFeed, E extends BaseEntry>
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.Source
         ↳ com.google.gdata.data.BaseFeed<F extends com.google.gdata.data.BaseFeed, E extends com.google.gdata.data.BaseEntry>
           ↳ com.google.gdata.data.webmastertools.KeywordsFeed

Class Overview

Feed of keywords for a particular site.

Summary

[Expand]
Inherited Fields
From class com.google.gdata.data.BaseFeed
From class com.google.gdata.data.Source
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
KeywordsFeed()
Default mutable constructor.
KeywordsFeed(BaseFeed<?, ?> sourceFeed)
Constructs a new instance by doing a shallow copy of data from an existing BaseFeed instance.
Public Methods
void addKeyword(Keyword keyword)
Adds a new keyword.
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.

The implementation of this method for BaseFeed will declare any extensions associated with the contained entry type.

List<Keyword> getKeywords()
Returns the keywords.
boolean hasKeywords()
Returns whether it has the keywords.
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.BaseFeed
From class com.google.gdata.data.Source
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.IFeed
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor

Public Constructors

public KeywordsFeed ()

Default mutable constructor.

public KeywordsFeed (BaseFeed<?, ?> sourceFeed)

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

Parameters
sourceFeed Source feed

Public Methods

public void addKeyword (Keyword keyword)

Adds a new keyword.

Parameters
keyword Keyword

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.

The implementation of this method for BaseFeed will declare any extensions associated with the contained entry type.

Parameters
extProfile The ExtensionProfile to initialize.

public List<Keyword> getKeywords ()

Returns the keywords.

Returns
  • keywords

public boolean hasKeywords ()

Returns whether it has the keywords.

Returns
  • whether it has the keywords

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.