public class

Comments

extends Element
java.lang.Object
   ↳ com.google.gdata.model.Element
     ↳ com.google.gdata.model.gd.Comments

Class Overview

Describes a container of a feed link for comment entries.

Summary

Fields
public static final ElementKey<Void, Comments> KEY The key for this element.
[Expand]
Inherited Fields
From class com.google.gdata.model.Element
Public Constructors
Comments()
Constructs an instance using the default key.
Protected Constructors
Comments(ElementKey<?, ? extends Comments> key)
Subclass constructor, allows subclasses to supply their own element key.
Comments(ElementKey<?, ? extends Comments> key, Element source)
Constructs a new instance by doing a shallow copy of data from an existing Element instance.
Public Methods
FeedLink getFeedLink()
Returns the nested feed link.
boolean hasFeedLink()
Returns whether it has the nested feed link.
Comments lock()
Locks this element.
static void registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
Comments setFeedLink(FeedLink feedLink)
Sets the nested feed link.
[Expand]
Inherited Methods
From class com.google.gdata.model.Element
From class java.lang.Object

Fields

public static final ElementKey<Void, Comments> KEY

The key for this element.

Public Constructors

public Comments ()

Constructs an instance using the default key.

Protected Constructors

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

Subclass constructor, allows subclasses to supply their own element key.

Parameters
key

protected Comments (ElementKey<?, ? extends Comments> 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. This constructor is used when adapting from one element key to another. You cannot call this constructor directly, instead use createElement(ElementKey, Element).

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

Public Methods

public FeedLink getFeedLink ()

Returns the nested feed link.

Returns
  • nested feed link

public boolean hasFeedLink ()

Returns whether it has the nested feed link.

Returns
  • whether it has the nested feed link

public Comments lock ()

Locks this element. A locked element cannot have any changes made to its content or its attributes or child elements. This will also lock all attributes and child elements as well. Once this method has been called, this element can be safely published to other threads.

public static void registerMetadata (MetadataRegistry registry)

Registers the metadata for this element.

Parameters
registry

public Comments setFeedLink (FeedLink feedLink)

Sets the nested feed link.

Parameters
feedLink Nested feed link or null to reset
Returns
  • this to enable chaining setters