net.spy.digg.parsers
Class StoryImpl

java.lang.Object
  extended by net.spy.digg.parsers.StoryImpl
All Implemented Interfaces:
java.io.Serializable, Story

public class StoryImpl
extends java.lang.Object
implements Story, java.io.Serializable

A Digg story.

See Also:
Serialized Form

Method Summary
 int getComments()
          Get the number of comments on this story.
 TopicContainer getContainer()
          Get the topic container of this story.
 java.lang.String getDescription()
          Get the description of this story.
 java.lang.String getDiggLink()
          Get the link to this story within digg.
 int getDiggs()
          Get the number of diggs on this story.
 int getId()
          Get the ID of this story.
 java.lang.String getLink()
          Get the link to this story.
 java.lang.String getMedia()
          Add the media type of this story.
 long getPromoteTimestamp()
          Get the timestamp this story was promoted.
 java.lang.String getStatus()
          Get the status of this story.
 long getSubmittedTimestamp()
          Get the timestamp this story was submitted.
 Thumbnail getThumbnail()
          If this story has a thumbnail, return it here.
 java.lang.String getTitle()
          Get the title of this story.
 Topic getTopic()
          Get the topic of this story.
 User getUser()
          Get the user who submitted this story.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getComments

public int getComments()
Description copied from interface: Story
Get the number of comments on this story.

Specified by:
getComments in interface Story

getContainer

public TopicContainer getContainer()
Description copied from interface: Story
Get the topic container of this story. Note that this container will not contain all of the topics.

Specified by:
getContainer in interface Story

getDescription

public java.lang.String getDescription()
Description copied from interface: Story
Get the description of this story.

Specified by:
getDescription in interface Story

getDiggLink

public java.lang.String getDiggLink()
Description copied from interface: Story
Get the link to this story within digg.

Specified by:
getDiggLink in interface Story

getDiggs

public int getDiggs()
Description copied from interface: Story
Get the number of diggs on this story.

Specified by:
getDiggs in interface Story

getId

public int getId()
Description copied from interface: Story
Get the ID of this story.

Specified by:
getId in interface Story

getLink

public java.lang.String getLink()
Description copied from interface: Story
Get the link to this story.

Specified by:
getLink in interface Story

getStatus

public java.lang.String getStatus()
Description copied from interface: Story
Get the status of this story.

Specified by:
getStatus in interface Story

getSubmittedTimestamp

public long getSubmittedTimestamp()
Description copied from interface: Story
Get the timestamp this story was submitted.

Specified by:
getSubmittedTimestamp in interface Story

getTitle

public java.lang.String getTitle()
Description copied from interface: Story
Get the title of this story.

Specified by:
getTitle in interface Story

getTopic

public Topic getTopic()
Description copied from interface: Story
Get the topic of this story.

Specified by:
getTopic in interface Story

getUser

public User getUser()
Description copied from interface: Story
Get the user who submitted this story.

Specified by:
getUser in interface Story

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getThumbnail

public Thumbnail getThumbnail()
Description copied from interface: Story
If this story has a thumbnail, return it here. Otherwise return null.

Specified by:
getThumbnail in interface Story

getMedia

public java.lang.String getMedia()
Description copied from interface: Story
Add the media type of this story.

Specified by:
getMedia in interface Story

getPromoteTimestamp

public long getPromoteTimestamp()
Description copied from interface: Story
Get the timestamp this story was promoted.

Specified by:
getPromoteTimestamp in interface Story
Returns:
the number of milliseconds, or -1 if this story has no promote date.