com.myjavatools.xml
Class Rss.Item

java.lang.Object
  extended by com.myjavatools.xml.BasicXmlData
      extended by com.myjavatools.xml.Rss.Member
          extended by com.myjavatools.xml.Rss.Item
All Implemented Interfaces:
XmlData
Enclosing class:
Rss

public static class Rss.Item
extends Rss.Member

Item, Rss member class

Contains item data


Nested Class Summary
 
Nested classes/interfaces inherited from class com.myjavatools.xml.BasicXmlData
BasicXmlData.Expression, BasicXmlData.Function<X,Y>, BasicXmlData.Policy
 
Nested classes/interfaces inherited from interface com.myjavatools.xml.XmlData
XmlData.Condition
 
Field Summary
 
Fields inherited from class com.myjavatools.xml.BasicXmlData
XmlDataClass
 
Constructor Summary
Rss.Item(java.lang.String description)
          creates an instance of Item containing description only
Rss.Item(java.lang.String title, java.lang.String link)
          creates an instance of Item without description
Rss.Item(java.lang.String title, java.lang.String link, java.lang.String description)
          creates an instance of Item
Rss.Item(java.lang.String title, java.lang.String link, java.lang.String description, java.lang.String author, java.lang.String pubDate)
          creates an instance of Item
Rss.Item(java.lang.String title, java.lang.String link, java.lang.String description, java.lang.String author, java.lang.String pubDate, java.lang.String category, java.lang.String comments)
          creates an instance of Item
Rss.Item(XmlData data)
          creates an instance of Item Converts all pre-2.0 formats to 2.0
 
Method Summary
 java.lang.String getAuthor()
          gets item author
 java.lang.String getCategory()
          gets item category
 java.lang.String getComments()
          gets item comments
 java.lang.String getEnclosureLength()
          gets item enclosure length
 java.lang.String getEnclosureType()
          gets item item enclosure type
 java.lang.String getEnclosureUrl()
          gets item enclosure url
 java.lang.String getExpirationDate()
           
 java.lang.String getGuid()
          gets item guid
 java.lang.String getPubDate()
          gets item publication date
 java.lang.String getSourceName()
          gets item source name
 java.lang.String getSourceUrl()
          gets item source url
 void setCategory(java.lang.String category)
          sets item category
 void setEnclosure(java.lang.String url, java.lang.String length, java.lang.String type)
          sets item enclosure
 void setExpirationDate(java.lang.String date)
           
 void setSource(java.lang.String url, java.lang.String name)
          sets item source
 void setup()
           
 java.lang.String toString()
           
 
Methods inherited from class com.myjavatools.xml.Rss.Member
addElement, getDescription, getLink, getName, getTitle, getUrl, setDescription, setElement, setLink, setUrl
 
Methods inherited from class com.myjavatools.xml.BasicXmlData
addKid, addKids, addKids, cast, cast, castKids, castToPackage, castToPackage, cleanAttributes, clone, debug, deepCopy, equal, equals, getAllKids, getAttribute, getAttribute, getAttributes, getId, getInputStream, getKid, getKid, getKid, getKid, getKidAttribute, getKidCount, getKids, getKidTypes, getKidValue, getType, getValue, getXmlContent, hashCode, indexOf, insertKid, insertKid, removeKid, removeKids, replaceKid, satisfies, satisfies, save, save, save, selectTree, selectTree, setAttribute, setAttributes, setAttributes, setAttributes, setKidAttribute, setKids, setKidValue, setType, setValue, setXmlContent, trim
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rss.Item

public Rss.Item(java.lang.String description)
creates an instance of Item containing description only

Parameters:
description - String

Rss.Item

public Rss.Item(java.lang.String title,
                java.lang.String link)
creates an instance of Item without description

Parameters:
title - String item title
link - String item link

Rss.Item

public Rss.Item(java.lang.String title,
                java.lang.String link,
                java.lang.String description)
creates an instance of Item

Parameters:
title - String item title
link - String item link
description - String item description

Rss.Item

public Rss.Item(java.lang.String title,
                java.lang.String link,
                java.lang.String description,
                java.lang.String author,
                java.lang.String pubDate)
creates an instance of Item

Parameters:
title - String item title
link - String item link
description - String item description
author - String item author
pubDate - String item publication date

Rss.Item

public Rss.Item(java.lang.String title,
                java.lang.String link,
                java.lang.String description,
                java.lang.String author,
                java.lang.String pubDate,
                java.lang.String category,
                java.lang.String comments)
creates an instance of Item

Parameters:
title - String item title
link - String item link
description - String item description
author - String item author
pubDate - String item publication date
category - String item category
comments - String item comments

Rss.Item

public Rss.Item(XmlData data)
creates an instance of Item Converts all pre-2.0 formats to 2.0

Parameters:
data - XmlData data source
Method Detail

getGuid

public java.lang.String getGuid()
gets item guid

Returns:
String item guid

getAuthor

public java.lang.String getAuthor()
gets item author

Returns:
String item author

getPubDate

public java.lang.String getPubDate()
gets item publication date

Returns:
String item publication date

getCategory

public java.lang.String getCategory()
gets item category

Returns:
String item category

getComments

public java.lang.String getComments()
gets item comments

Returns:
String item comments

getSourceName

public java.lang.String getSourceName()
gets item source name

Returns:
String item source name

getSourceUrl

public java.lang.String getSourceUrl()
gets item source url

Returns:
String item source url

getEnclosureUrl

public java.lang.String getEnclosureUrl()
gets item enclosure url

Returns:
String item enclosure url

getEnclosureLength

public java.lang.String getEnclosureLength()
gets item enclosure length

Returns:
String item enclosure length

getEnclosureType

public java.lang.String getEnclosureType()
gets item item enclosure type

Returns:
String item enclosure type

setSource

public void setSource(java.lang.String url,
                      java.lang.String name)
sets item source

Parameters:
url - String source url
name - String source name

setCategory

public void setCategory(java.lang.String category)
sets item category

Parameters:
category - String source category

setEnclosure

public void setEnclosure(java.lang.String url,
                         java.lang.String length,
                         java.lang.String type)
sets item enclosure

Parameters:
url - String enclosure url
length - String enclosure length
type - String enclosure type

setExpirationDate

public void setExpirationDate(java.lang.String date)

getExpirationDate

public java.lang.String getExpirationDate()

setup

public void setup()

toString

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