|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ecf.provider.rss.channel.RSSParserBase
public class RSSParserBase
The base class for RSS parsers.
Constructor Summary | |
---|---|
RSSParserBase()
|
Method Summary | |
---|---|
protected static RssFeed |
createFeed(org.w3c.dom.Element channel)
Creates a RssFeed object from the Element representation. |
protected static SseHistory |
createHistory(org.w3c.dom.Element historyElement)
Creates a SseHistory object from the Element representation. |
static RssItem |
createItem(RssFeed feed,
java.lang.String title,
java.lang.String description,
java.lang.String link)
Creates an item with the specified owner feed, title, link and description. |
protected static SseSharing |
createSharing(org.w3c.dom.Element sharingElement)
Creates a SseSharing object from the Element representation. |
protected static SseSync |
createSync(org.w3c.dom.Element syncElement)
Creates a SseSync object from the Element representation. |
protected static org.w3c.dom.Node |
getFirstChild(org.w3c.dom.Element parent,
java.lang.String childName)
Returns a first Node of all descendant Elements with a given tag name. |
protected static org.w3c.dom.Node |
getFirstChildNS(org.w3c.dom.Element parent,
java.lang.String namespaceURI,
java.lang.String childName)
Returns a first Node of all descendant Elements with a given tag name and namespace URI. |
protected static java.lang.String |
getFirstChildValue(org.w3c.dom.Element parent,
java.lang.String childName)
The string value of specified node. |
protected static java.lang.String |
getFirstChildValue(org.w3c.dom.Element parent,
java.lang.String childName,
java.lang.String defaultValue)
The string value of specified node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RSSParserBase()
Method Detail |
---|
protected static RssFeed createFeed(org.w3c.dom.Element channel)
channel
- - the Element object containing the attributes to be copied.
public static RssItem createItem(RssFeed feed, java.lang.String title, java.lang.String description, java.lang.String link)
feed
- - the owner feed object.title
- - the title to use.description
- - the descriptionlink
- - the link
protected static SseSharing createSharing(org.w3c.dom.Element sharingElement)
sharingElement
- - the Element object containing the attributes to be copied.
protected static SseSync createSync(org.w3c.dom.Element syncElement) throws ParseException
syncElement
- - the Element object containing the attributes to be copied.
ParseException
- - If any parse errors occur during processing.protected static SseHistory createHistory(org.w3c.dom.Element historyElement)
historyElement
- - the Element object containing the attributes to be copied.
protected static org.w3c.dom.Node getFirstChild(org.w3c.dom.Element parent, java.lang.String childName)
parent
- - The specified node to search in.childName
- - The name of the tag to match on. The special value "*" matches all tags.
protected static org.w3c.dom.Node getFirstChildNS(org.w3c.dom.Element parent, java.lang.String namespaceURI, java.lang.String childName)
parent
- - The specified node to search in.namespaceURI
- - The namespace URI of the elements to match on. The special value "*" matches all namespaces.childName
- - The name of the tag to match on. The special value "*" matches all tags.
protected static java.lang.String getFirstChildValue(org.w3c.dom.Element parent, java.lang.String childName)
parent
- - The specified node to search in.childName
- - The name of the tag to match on. The special value "*" matches all tags.
protected static java.lang.String getFirstChildValue(org.w3c.dom.Element parent, java.lang.String childName, java.lang.String defaultValue)
parent
- - The specified node to search in.childName
- - The name of the tag to match on. The special value "*" matches all tags.defaultValue
- - a default value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |