public class

SitesLink

extends Link
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.Link
         ↳ com.google.gdata.data.sites.SitesLink

Class Overview

Describes a sites link.

Summary

Nested Classes
class SitesLink.Rel Link relation type. 
class SitesLink.Type MIME type of link target. 
Constants
String COUNT XML "thr:count" attribute name
String UPDATED XML "thr:updated" attribute name
String XML_NAME XML element name
Fields
private Integer count Provides a hint to clients as to the total number of replies contained by the linked resource
private DateTime updated Provides a hint to clients as to the date and time of the most recently updated reply contained by the linked resource
[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
SitesLink()
Default mutable constructor.
SitesLink(Integer count, String href, String hrefLang, Long length, String rel, String title, String titleLang, String type, DateTime updated)
Immutable constructor.
Public Methods
boolean equals(Object obj)
Integer getCount()
Returns the provides a hint to clients as to the total number of replies contained by the linked resource.
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.
DateTime getUpdated()
Returns the provides a hint to clients as to the date and time of the most recently updated reply contained by the linked resource.
boolean hasCount()
Returns whether it has the provides a hint to clients as to the total number of replies contained by the linked resource.
boolean hasUpdated()
Returns whether it has the provides a hint to clients as to the date and time of the most recently updated reply contained by the linked resource.
int hashCode()
void setCount(Integer count)
Sets the provides a hint to clients as to the total number of replies contained by the linked resource.
void setUpdated(DateTime updated)
Sets the provides a hint to clients as to the date and time of the most recently updated reply contained by the linked resource.
String toString()
Protected Methods
void consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
void putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
void validate()
Checks the attributes to see if there are any problems.
[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

Constants

private static final String COUNT

XML "thr:count" attribute name

Constant Value: "thr:count"

private static final String UPDATED

XML "thr:updated" attribute name

Constant Value: "thr:updated"

static final String XML_NAME

XML element name

Constant Value: "link"

Fields

private Integer count

Provides a hint to clients as to the total number of replies contained by the linked resource

private DateTime updated

Provides a hint to clients as to the date and time of the most recently updated reply contained by the linked resource

Public Constructors

public SitesLink ()

Default mutable constructor.

public SitesLink (Integer count, String href, String hrefLang, Long length, String rel, String title, String titleLang, String type, DateTime updated)

Immutable constructor.

Parameters
count Provides a hint to clients as to the total number of replies contained by the linked resource.
href
hrefLang
length
rel
title
titleLang
type
updated Provides a hint to clients as to the date and time of the most recently updated reply contained by the linked resource.

Public Methods

public boolean equals (Object obj)

Parameters
obj

public Integer getCount ()

Returns the provides a hint to clients as to the total number of replies contained by the linked resource.

Returns
  • provides a hint to clients as to the total number of replies contained by the linked resource

public static ExtensionDescription getDefaultDescription (boolean required, boolean repeatable)

Returns the extension description, specifying whether it is required, and whether it is repeatable.

Parameters
required Whether it is required
repeatable Whether it is repeatable
Returns
  • extension description

public DateTime getUpdated ()

Returns the provides a hint to clients as to the date and time of the most recently updated reply contained by the linked resource.

Returns
  • provides a hint to clients as to the date and time of the most recently updated reply contained by the linked resource

public boolean hasCount ()

Returns whether it has the provides a hint to clients as to the total number of replies contained by the linked resource.

Returns
  • whether it has the provides a hint to clients as to the total number of replies contained by the linked resource

public boolean hasUpdated ()

Returns whether it has the provides a hint to clients as to the date and time of the most recently updated reply contained by the linked resource.

Returns
  • whether it has the provides a hint to clients as to the date and time of the most recently updated reply contained by the linked resource

public int hashCode ()

public void setCount (Integer count)

Sets the provides a hint to clients as to the total number of replies contained by the linked resource.

Parameters
count Provides a hint to clients as to the total number of replies contained by the linked resource or null to reset

public void setUpdated (DateTime updated)

Sets the provides a hint to clients as to the date and time of the most recently updated reply contained by the linked resource.

Parameters
updated Provides a hint to clients as to the date and time of the most recently updated reply contained by the linked resource or null to reset

public String toString ()

Protected Methods

protected void consumeAttributes (AttributeHelper helper)

Consumes attributes from the attribute helper. May also use consumeContent(boolean) to consume the element's text content. Called from getHandler(ExtensionProfile, String, String, Attributes). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
helper Attribute helper

protected void putAttributes (AttributeGenerator generator)

Puts attributes into the attribute generator. Called from generate(XmlWriter, ExtensionProfile). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
generator Attribute generator

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.