public class

FeedLink

extends Link
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.Link
         ↳ com.google.gdata.data.extensions.FeedLink<F extends com.google.gdata.data.BaseFeed<?, ?>>
Known Direct Subclasses

Class Overview

The FeedLink class defines the object model for a link entity that refers to a GData feed. The feed content may be included inline via child elements of the feed link or only included by reference.

Summary

Fields
protected Integer countHint Count hint.
protected BaseFeed<?, ?> feed Nested feed (optional).
protected final Class<F extends BaseFeed<?, ?>> feedClass Nested feed class.
protected boolean readOnly Read only flag.
[Expand]
Inherited Fields
From class com.google.gdata.data.Link
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
FeedLink()
Constructs a feed link that points to a Feed.
FeedLink(Class<F> feedClass)
Constructs a feed link that points to the given feed type.
Public Methods
void generate(XmlWriter w, ExtensionProfile extProfile)
Generates an XML representation for the extension.
Integer getCountHint()
static ExtensionDescription getDefaultDescription()
Returns the suggested extension description.
F getFeed()
Class<F> getFeedClass()
XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)
The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.
boolean getReadOnly()
String getType()
Returns the mime type of the link.
void setCountHint(Integer v)
void setFeed(F v)
void setReadOnly(boolean v)
Protected Methods
void visitChildren(ExtensionVisitor ev)
Called to visit all children of this extension point.
[Expand]
Inherited Methods
From class com.google.gdata.data.Link
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.ILink
From interface com.google.gdata.data.Reference

Fields

protected Integer countHint

Count hint.

protected BaseFeed<?, ?> feed

Nested feed (optional).

protected final Class<F extends BaseFeed<?, ?>> feedClass

Nested feed class.

protected boolean readOnly

Read only flag.

Public Constructors

public FeedLink ()

Constructs a feed link that points to a Feed.

public FeedLink (Class<F> feedClass)

Constructs a feed link that points to the given feed type.

Parameters
feedClass Feed class.

Public Methods

public void generate (XmlWriter w, ExtensionProfile extProfile)

Generates an XML representation for the extension.

Parameters
w XML writer
extProfile Extension profile
Throws
IOException

public Integer getCountHint ()

public static ExtensionDescription getDefaultDescription ()

Returns the suggested extension description.

public F getFeed ()

public Class<F> getFeedClass ()

public XmlParser.ElementHandler getHandler (ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)

The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.

Parameters
extProfile Extension profile
namespace Extension namespace
localName Tag name, without the namespace prefix
attrs Tag attributes
Returns
  • an element handler

public boolean getReadOnly ()

public String getType ()

Returns the mime type of the link.

public void setCountHint (Integer v)

Parameters
v

public void setFeed (F v)

Parameters
v

public void setReadOnly (boolean v)

Parameters
v

Protected Methods

protected void visitChildren (ExtensionVisitor ev)

Called to visit all children of this extension point.

Parameters
ev The extension visitor.