public class

FeedLink

extends Element
implements ILink
java.lang.Object
   ↳ com.google.gdata.model.Element
     ↳ com.google.gdata.model.gd.FeedLink

Class Overview

Describes a nested feed link.

Summary

Fields
public static final AttributeKey<Integer> COUNT_HINT Qualified name of hint at the number of entries in the feed attribute.
public static final AttributeKey<String> HREF Qualified name of feed URI attribute.
public static final ElementKey<Void, FeedLink> KEY The key for this element.
public static final AttributeKey<Boolean> READ_ONLY Qualified name of whether the contained feed is read-only attribute.
public static final AttributeKey<String> REL Qualified name of feed relation type attribute.
[Expand]
Inherited Fields
From class com.google.gdata.model.Element
Public Constructors
FeedLink()
Default mutable constructor.
Protected Constructors
FeedLink(ElementKey<?, ? extends FeedLink> key)
Lets subclasses create an instance using a custom key.
FeedLink(ElementKey<?, ? extends FeedLink> key, Element source)
Constructs a new instance by doing a shallow copy of data from an existing Element instance.
Public Methods
Integer getCountHint()
Returns the hint at the number of entries in the feed.
Feed getFeed()
Returns the nested feed.
String getHref()
Returns the feed URI.
Boolean getReadOnly()
Returns the whether the contained feed is read-only.
String getRel()
Returns the feed relation type.
String getType()
Returns the mime type of the link.
boolean hasCountHint()
Returns whether it has the hint at the number of entries in the feed.
boolean hasFeed()
Returns whether it has the nested feed.
boolean hasHref()
Returns whether it has the feed URI.
boolean hasReadOnly()
Returns whether it has the whether the contained feed is read-only.
boolean hasRel()
Returns whether it has the feed relation type.
static void registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
void setCountHint(Integer countHint)
Sets the hint at the number of entries in the feed.
void setFeed(Feed feed)
Sets the nested feed.
void setHref(String href)
Sets the feed URI.
void setReadOnly(Boolean readOnly)
Sets the whether the contained feed is read-only.
void setRel(String rel)
Sets the feed relation type.
void setType(String type)
Sets the mime type of the link.
String toString()
[Expand]
Inherited Methods
From class com.google.gdata.model.Element
From class java.lang.Object
From interface com.google.gdata.data.ILink
From interface com.google.gdata.data.Reference

Fields

public static final AttributeKey<Integer> COUNT_HINT

Qualified name of hint at the number of entries in the feed attribute.

public static final AttributeKey<String> HREF

Qualified name of feed URI attribute.

public static final ElementKey<Void, FeedLink> KEY

The key for this element.

public static final AttributeKey<Boolean> READ_ONLY

Qualified name of whether the contained feed is read-only attribute.

public static final AttributeKey<String> REL

Qualified name of feed relation type attribute.

Public Constructors

public FeedLink ()

Default mutable constructor.

Protected Constructors

protected FeedLink (ElementKey<?, ? extends FeedLink> key)

Lets subclasses create an instance using a custom key.

Parameters
key

protected FeedLink (ElementKey<?, ? extends FeedLink> key, Element source)

Constructs a new instance by doing a shallow copy of data from an existing Element instance. Will use the given ElementKey as the key for the element.

Parameters
key Element key to use for this element.
source Source element

Public Methods

public Integer getCountHint ()

Returns the hint at the number of entries in the feed.

Returns
  • hint at the number of entries in the feed

public Feed getFeed ()

Returns the nested feed.

Returns
  • nested feed

public String getHref ()

Returns the feed URI.

Returns
  • feed URI

public Boolean getReadOnly ()

Returns the whether the contained feed is read-only.

Returns
  • whether the contained feed is read-only

public String getRel ()

Returns the feed relation type.

Returns
  • feed relation type

public String getType ()

Returns the mime type of the link.

public boolean hasCountHint ()

Returns whether it has the hint at the number of entries in the feed.

Returns
  • whether it has the hint at the number of entries in the feed

public boolean hasFeed ()

Returns whether it has the nested feed.

Returns
  • whether it has the nested feed

public boolean hasHref ()

Returns whether it has the feed URI.

Returns
  • whether it has the feed URI

public boolean hasReadOnly ()

Returns whether it has the whether the contained feed is read-only.

Returns
  • whether it has the whether the contained feed is read-only

public boolean hasRel ()

Returns whether it has the feed relation type.

Returns
  • whether it has the feed relation type

public static void registerMetadata (MetadataRegistry registry)

Registers the metadata for this element.

Parameters
registry

public void setCountHint (Integer countHint)

Sets the hint at the number of entries in the feed.

Parameters
countHint Hint at the number of entries in the feed or null to reset

public void setFeed (Feed feed)

Sets the nested feed.

Parameters
feed Nested feed or null to reset

public void setHref (String href)

Sets the feed URI.

Parameters
href Feed URI or null to reset

public void setReadOnly (Boolean readOnly)

Sets the whether the contained feed is read-only.

Parameters
readOnly Whether the contained feed is read-only or null to reset

public void setRel (String rel)

Sets the feed relation type.

Parameters
rel Feed relation type or null to reset

public void setType (String type)

Sets the mime type of the link.

Parameters
type

public String toString ()