|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.blackledge.david.tivo.gadgets.RSSItem
public class RSSItem
Simple bean to hold the elements of a RSS XML item, designed fr use with
RSSListScreen
Constructor Summary | |
---|---|
RSSItem(Element element)
|
Method Summary | |
---|---|
protected List |
getChildElementsByTagName(Element parentElement,
String name)
Often we want to work with all the subtags of a given name (or just all subtags) - this gets them for us. |
String |
getDescription()
|
int |
getEnclosureLength()
|
String |
getEnclosureType()
|
String |
getEnclosureUrl()
|
protected String |
getNodeValue(Node element)
Typically we want the text value contained within a tag... |
Date |
getPubDate()
|
protected Element |
getSingleChildElementByTagName(Element parentElement,
String name)
Often we know we want one subtag and it won't appear more than once, this gets it for us. |
String |
getTitle()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RSSItem(Element element)
element
- the XML "item" element in the rss feed.Method Detail |
---|
public String toString()
toString
in class Object
public String getTitle()
public String getDescription()
public Date getPubDate()
public String getEnclosureUrl()
public int getEnclosureLength()
public String getEnclosureType()
protected Element getSingleChildElementByTagName(Element parentElement, String name)
parentElement
- name
- may not be null.
protected List getChildElementsByTagName(Element parentElement, String name)
parentElement
- name
- - null means accept all tag names into the list.
protected String getNodeValue(Node element)
element
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |