public class

SiteEntry

extends BaseEntry<E extends BaseEntry>
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.BaseEntry<E extends com.google.gdata.data.BaseEntry>
         ↳ com.google.gdata.data.sites.SiteEntry

Class Overview

An entry representing a site.

Summary

[Expand]
Inherited Fields
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
SiteEntry()
Default mutable constructor.
SiteEntry(BaseEntry<?> sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
Link getEntryPostLink()
Returns the link that provides the URI that can be used to post new entries to the feed.
SiteName getSiteName()
Returns the site name.
Link getSourceLink()
Returns the source sites link.
Theme getTheme()
Returns the theme.
List<Link> getWebAddressMappingLinks()
Returns the webAddressMapping sites link.
boolean hasSiteName()
Returns whether it has the site name.
boolean hasTheme()
Returns whether it has the theme.
void setSiteName(SiteName siteName)
Sets the site name.
void setTheme(Theme theme)
Sets the theme.
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.BaseEntry
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.IEntry
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor

Public Constructors

public SiteEntry ()

Default mutable constructor.

public SiteEntry (BaseEntry<?> sourceEntry)

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

Parameters
sourceEntry Source entry

Public Methods

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.

Parameters
extProfile The ExtensionProfile to initialize.

public Link getEntryPostLink ()

Returns the link that provides the URI that can be used to post new entries to the feed.

Returns
  • Link that provides the URI that can be used to post new entries to the feed or null for none.

public SiteName getSiteName ()

Returns the site name.

Returns
  • site name

public Link getSourceLink ()

Returns the source sites link.

Returns
  • Source sites link or null for none.

public Theme getTheme ()

Returns the theme.

Returns
  • theme

public List<Link> getWebAddressMappingLinks ()

Returns the webAddressMapping sites link.

Returns
  • WebAddressMapping sites link.

public boolean hasSiteName ()

Returns whether it has the site name.

Returns
  • whether it has the site name

public boolean hasTheme ()

Returns whether it has the theme.

Returns
  • whether it has the theme

public void setSiteName (SiteName siteName)

Sets the site name.

Parameters
siteName Site name or null to reset

public void setTheme (Theme theme)

Sets the theme.

Parameters
theme Theme or null to reset

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.