SageTV Platform
V9.0

sage.media.rss
Class RSSObject

java.lang.Object
  extended by sage.media.rss.RSSObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RSSChannel, RSSEnclosure, RSSImage, RSSItem, RSSMediaGroup, RSSTextInput

public abstract class RSSObject
extends java.lang.Object
implements java.io.Serializable

Handler for all common informations about rss elements.

This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY.

Since:
RSSLIB4J 0.1
See Also:
Serialized Form

Field Summary
protected  java.lang.String about
           
protected  RSSDoublinCoreModule dc
           
protected  java.util.Hashtable dc_container
           
protected  java.lang.String description
           
protected  java.lang.String link
           
protected  java.lang.String pdate
           
protected  java.lang.String title
           
 
Constructor Summary
RSSObject()
           
 
Method Summary
 void addDoublinCoreElement(java.lang.String tag, java.lang.String data)
          Add a doublin core element to the object
 java.lang.String getAboutAttribute()
          Get about attribute of element
 java.lang.String getDescription()
          Get the element's description
 java.util.Hashtable getDoublinCoreElements()
          Get DC element by hashtable
 java.lang.String getLink()
          Get the element's link
 java.lang.String getPubDate()
          Get the publication date of the channel or of an item
 RSSDoublinCoreModule getRSSDoublinCoreModule()
          Get the Roubin Core object from the RSS object
 java.lang.String getTitle()
          Get the element's title
 void setAboutAttribute(java.lang.String ab)
          Set about attribute of the element (if have)
 void setDescription(java.lang.String des)
          Set the descriprion of the element
 void setLink(java.lang.String l)
          Set the link of the resource
 void setPubDate(java.lang.String pubDate)
          The publication date for the content in the channel or in the items
 void setRSSDoublinCoreModule(RSSDoublinCoreModule m)
          Set the doublin core information if exist
 void setTitle(java.lang.String t)
          Set the element title
abstract  java.lang.String toDebugString()
          Each class have to implement this information method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

about

protected java.lang.String about

title

protected java.lang.String title

link

protected java.lang.String link

description

protected java.lang.String description

pdate

protected java.lang.String pdate

dc

protected RSSDoublinCoreModule dc

dc_container

protected java.util.Hashtable dc_container
Constructor Detail

RSSObject

public RSSObject()
Method Detail

setTitle

public void setTitle(java.lang.String t)
Set the element title

Parameters:
t - The title

setAboutAttribute

public void setAboutAttribute(java.lang.String ab)
Set about attribute of the element (if have)

Parameters:
ab - The about content

setLink

public void setLink(java.lang.String l)
Set the link of the resource

Parameters:
l - The link

setDescription

public void setDescription(java.lang.String des)
Set the descriprion of the element

Parameters:
des - The description

setPubDate

public void setPubDate(java.lang.String pubDate)
The publication date for the content in the channel or in the items

Parameters:
pubDate - The date

setRSSDoublinCoreModule

public void setRSSDoublinCoreModule(RSSDoublinCoreModule m)
Set the doublin core information if exist

Parameters:
m - The Doublun Core object

getAboutAttribute

public java.lang.String getAboutAttribute()
Get about attribute of element

Returns:
The attribute value

getTitle

public java.lang.String getTitle()
Get the element's title

Returns:
the title

getPubDate

public java.lang.String getPubDate()
Get the publication date of the channel or of an item

Returns:
The publication date for the content in the channel

getLink

public java.lang.String getLink()
Get the element's link

Returns:
the link

getDescription

public java.lang.String getDescription()
Get the element's description

Returns:
the descricption

getRSSDoublinCoreModule

public RSSDoublinCoreModule getRSSDoublinCoreModule()
Get the Roubin Core object from the RSS object

Returns:
The object or null

addDoublinCoreElement

public void addDoublinCoreElement(java.lang.String tag,
                                  java.lang.String data)
Add a doublin core element to the object

Parameters:
tag - The dc tag
data - the dc value

getDoublinCoreElements

public java.util.Hashtable getDoublinCoreElements()
Get DC element by hashtable

Returns:
the hashtable with key as tag and value as tag's value

toDebugString

public abstract java.lang.String toDebugString()
Each class have to implement this information method

Returns:
An information about element

SageTV Platform
V9.0

SageTV is a trademark or registered trademark of Google, Inc. in the US and other countries.
Copyright 2000-2015 The SageTV Authors. All Rights Reserved.