public class

SidewikiEntry

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.sidewiki.SidewikiEntry

Class Overview

Describes a Sidewiki entry in the feed of Sidewiki entries.

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
SidewikiEntry()
Default mutable constructor.
SidewikiEntry(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.
Source getEntrySource()
Returns the Sidewiki entry source.
Rating getRating()
Returns the Entry ratings given by all users and by the user issued the request.
ResourceId getResourceId()
Returns the Sidewiki author id.
Usefulness getUsefulness()
Returns the usefulness of entry.
boolean hasEntrySource()
Returns whether it has the Sidewiki entry source.
boolean hasRating()
Returns whether it has the Entry ratings given by all users and by the user issued the request.
boolean hasResourceId()
Returns whether it has the Sidewiki author id.
boolean hasUsefulness()
Returns whether it has the usefulness of entry.
void setEntrySource(Source entrySource)
Sets the Sidewiki entry source.
void setRating(Rating rating)
Sets the Entry ratings given by all users and by the user issued the request.
void setResourceId(ResourceId resourceId)
Sets the Sidewiki author id.
void setUsefulness(Usefulness usefulness)
Sets the usefulness of entry.
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 SidewikiEntry ()

Default mutable constructor.

public SidewikiEntry (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 Source getEntrySource ()

Returns the Sidewiki entry source.

Returns
  • Sidewiki entry source

public Rating getRating ()

Returns the Entry ratings given by all users and by the user issued the request.

Returns
  • Entry ratings given by all users and by the user issued the request

public ResourceId getResourceId ()

Returns the Sidewiki author id.

Returns
  • Sidewiki author id

public Usefulness getUsefulness ()

Returns the usefulness of entry.

Returns
  • usefulness of entry

public boolean hasEntrySource ()

Returns whether it has the Sidewiki entry source.

Returns
  • whether it has the Sidewiki entry source

public boolean hasRating ()

Returns whether it has the Entry ratings given by all users and by the user issued the request.

Returns
  • whether it has the Entry ratings given by all users and by the user issued the request

public boolean hasResourceId ()

Returns whether it has the Sidewiki author id.

Returns
  • whether it has the Sidewiki author id

public boolean hasUsefulness ()

Returns whether it has the usefulness of entry.

Returns
  • whether it has the usefulness of entry

public void setEntrySource (Source entrySource)

Sets the Sidewiki entry source.

Parameters
entrySource Sidewiki entry source or null to reset

public void setRating (Rating rating)

Sets the Entry ratings given by all users and by the user issued the request.

Parameters
rating Entry ratings given by all users and by the user issued the request or null to reset

public void setResourceId (ResourceId resourceId)

Sets the Sidewiki author id.

Parameters
resourceId Sidewiki author id or null to reset

public void setUsefulness (Usefulness usefulness)

Sets the usefulness of entry.

Parameters
usefulness Usefulness of entry 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.