|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.io.impl.RSS090Parser
Constructor Summary | |
|
RSS090Parser()
|
protected |
RSS090Parser(java.lang.String type)
|
Method Summary | |
protected org.jdom.Element |
getImage(org.jdom.Element rssRoot)
This method exists because RSS0.90 and RSS1.0 have the 'image' element under the root elemment. |
protected java.util.List |
getItems(org.jdom.Element rssRoot)
This method exists because RSS0.90 and RSS1.0 have the 'item' elements under the root elemment. |
protected org.jdom.Namespace |
getRSSNamespace()
Returns the namespace used by RSS elements in document of the RSS version the parser supports. |
protected org.jdom.Element |
getTextInput(org.jdom.Element rssRoot)
This method exists because RSS0.90 and RSS1.0 have the 'textinput' element under the root elemment. |
java.lang.String |
getType()
Returns the type of feed the parser handles. |
boolean |
isMyType(org.jdom.Document document)
Inspects an XML Document (JDOM) to check if it can parse it. |
AbstractFeed |
parse(org.jdom.Document document,
boolean validate)
Parses an XML document (JDOM Document) into a feed bean. |
protected AbstractFeed |
parseChannel(org.jdom.Element rssRoot)
Parses the root element of an RSS document into a Channel bean. |
protected Image |
parseImage(org.jdom.Element rssRoot)
Parses the root element of an RSS document looking for image information. |
protected Item |
parseItem(org.jdom.Element rssRoot,
org.jdom.Element eItem)
Parses an item element of an RSS document looking for item information. |
protected java.util.List |
parseItems(org.jdom.Element rssRoot)
Parses the root element of an RSS document looking for all items information. |
protected TextInput |
parseTextInput(org.jdom.Element rssRoot)
Parses the root element of an RSS document looking for text-input information. |
protected void |
validateFeed(org.jdom.Document document)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RSS090Parser()
protected RSS090Parser(java.lang.String type)
Method Detail |
public boolean isMyType(org.jdom.Document document)
FeedParser
It checks if the given document if the type of feeds the parser understands.
isMyType
in interface FeedParser
document
- XML Document (JDOM) to check if it can be parsed by this parser.
public AbstractFeed parse(org.jdom.Document document, boolean validate) throws java.lang.IllegalArgumentException, FeedException
FeedParser
parse
in interface FeedParser
document
- XML document (JDOM) to parse.validate
- indicates if the feed should be strictly validated (NOT YET IMPLEMENTED).
java.lang.IllegalArgumentException
- thrown if the parser cannot handle the given feed type.
FeedException
- thrown if a feed bean cannot be created out of the XML document (JDOM).protected void validateFeed(org.jdom.Document document) throws FeedException
FeedException
protected org.jdom.Namespace getRSSNamespace()
This implementation returns the EMTPY namespace.
public java.lang.String getType()
FeedParser
getType
in interface FeedParser
for details on the format of this string.
protected AbstractFeed parseChannel(org.jdom.Element rssRoot)
rssRoot
- the root element of the RSS document to parse.
protected java.util.List getItems(org.jdom.Element rssRoot)
protected org.jdom.Element getImage(org.jdom.Element rssRoot)
protected org.jdom.Element getTextInput(org.jdom.Element rssRoot)
protected Image parseImage(org.jdom.Element rssRoot)
rssRoot
- the root element of the RSS document to parse for image information.
protected java.util.List parseItems(org.jdom.Element rssRoot)
rssRoot
- the root element of the RSS document to parse for all items information.
protected Item parseItem(org.jdom.Element rssRoot, org.jdom.Element eItem)
rssRoot
- the root element of the RSS document in case it's needed for context.eItem
- the item element to parse.
protected TextInput parseTextInput(org.jdom.Element rssRoot)
rssRoot
- the root element of the RSS document to parse for text-input information.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |