| Modifier and Type | Field and Description |
|---|---|
| private static final Namespace | |
| private static final String | |
| private static final Namespace | |
| private static final String | |
| private static final Namespace | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected Namespace | Returns: returns the EMPTY namespace.Returns the namespace used by Content Module elements in document. |
| protected Element | |
| protected List | |
| protected Namespace | Returns: returns the EMPTY namespace.Returns the namespace used by RDF elements in document of the RSS version the parser supports. |
| protected Namespace | Returns: returns the EMPTY namespace.Returns the namespace used by RSS elements in document of the RSS version the parser supports. |
| protected Element | getTextInput(final Element rssRoot)
This method exists because RSS0.90 and RSS1.0 have the 'textinput' element under the root elemment. |
| public boolean | isMyType(final Document
XML Document (JDOM) to check if it can be parsed by this parser. document)Implements com. |
| public WireFeed | parse(final Document
XML document (JDOM) to parse. document, final boolean indicates if the feed should be strictly validated (NOT YET IMPLEMENTED). validate, final Locale locale)Implements com. |
| protected WireFeed | Returns: the parsed Channel bean.the root element of the RSS document to parse. rssRoot, final Locale locale)Parses the root element of an RSS document into a Channel bean. |
| protected Image | Returns: the parsed image bean.the root element of the RSS document to parse for image information. rssRoot)Parses the root element of an RSS document looking for image information. |
| protected Item | |
| protected List | Returns: a list with all the parsed RSSItem beans.the root element of the RSS document to parse for all items information. rssRoot, final Locale locale)Parses the root element of an RSS document looking for all items information. |
| protected TextInput | Returns: the parsed RSSTextInput bean.the root element of the RSS document to parse for text-input information. rssRoot)Parses the root element of an RSS document looking for text-input information. |
| protected void |
| CONTENT_NS | back to summary |
|---|---|
| private static final Namespace CONTENT_NS | |
| CONTENT_URI | back to summary |
|---|---|
| private static final String CONTENT_URI | |
| RDF_NS | back to summary |
|---|---|
| private static final Namespace RDF_NS | |
| RDF_URI | back to summary |
|---|---|
| private static final String RDF_URI | |
| RSS_NS | back to summary |
|---|---|
| private static final Namespace RSS_NS | |
| RSS_URI | back to summary |
|---|---|
| private static final String RSS_URI | |
| RSS090Parser | back to summary |
|---|---|
| public RSS090Parser() | |
| RSS090Parser | back to summary |
|---|---|
| protected RSS090Parser(final String type, final Namespace ns) | |
| getContentNamespace | back to summary |
|---|---|
| protected Namespace getContentNamespace() Returns the namespace used by Content Module elements in document. This implementation returns the EMTPY namespace.
| |
| getImage | back to summary |
|---|---|
| protected Element getImage(final Element rssRoot) This method exists because RSS0.90 and RSS1.0 have the 'image' element under the root elemment. And RSS0.91, RSS0.02, RSS0.93, RSS0.94 and RSS2.0 have it under the 'channel' element.
| |
| getItems | back to summary |
|---|---|
| protected List This method exists because RSS0.90 and RSS1.0 have the 'item' elements under the root elemment. And RSS0.91, RSS0.02, RSS0.93, RSS0.94 and RSS2.0 have the item elements under the 'channel' element.
| |
| getRDFNamespace | back to summary |
|---|---|
| protected Namespace getRDFNamespace() Returns the namespace used by RDF elements in document of the RSS version the parser supports. This implementation returns the EMTPY namespace.
| |
| getRSSNamespace | back to summary |
|---|---|
| protected Namespace getRSSNamespace() Returns the namespace used by RSS elements in document of the RSS version the parser supports. This implementation returns the EMTPY namespace.
| |
| getTextInput | back to summary |
|---|---|
| protected Element getTextInput(final Element rssRoot) This method exists because RSS0.90 and RSS1.0 have the 'textinput' element under the root elemment. And RSS0.91, RSS0.02, RSS0.93, RSS0.94 and RSS2.0 have it under the 'channel' element.
| |
| isMyType | back to summary |
|---|---|
| public boolean isMyType(final Document document) Implements com. Doc from com. Inspects an XML Document (JDOM) to check if it can parse it. It checks if the given document if the type of feeds the parser understands.
| |
| parse | back to summary |
|---|---|
| public WireFeed parse(final Document document, final boolean validate, final Locale locale) throws IllegalArgumentException, FeedException Implements com. Doc from com. Parses an XML document (JDOM Document) into a feed bean.
| |
| parseChannel | back to summary |
|---|---|
| protected WireFeed parseChannel(final Element rssRoot, final Locale locale) Parses the root element of an RSS document into a Channel bean. It reads title, link and description and delegates to parseImage, parseItems and parseTextInput. This delegation always passes the root element of the RSS document as different RSS version may have this information in different parts of the XML tree (no assumptions made thanks to the specs variaty)
| |
| parseImage | back to summary |
|---|---|
| protected Image parseImage(final Element rssRoot) Parses the root element of an RSS document looking for image information. It reads title and url out of the 'image' element.
| |
| parseItem | back to summary |
|---|---|
| protected Item parseItem(final Element rssRoot, final Element eItem, final Locale locale) Parses an item element of an RSS document looking for item information. It reads title and link out of the 'item' element.
| |
| parseItems | back to summary |
|---|---|
| protected List Parses the root element of an RSS document looking for all items information. It iterates through the item elements list, obtained from the getItems() method, and invoke parseItem() for each item element. The resulting RSSItem of each item element is stored in a list.
| |
| parseTextInput | back to summary |
|---|---|
| protected TextInput parseTextInput(final Element rssRoot) Parses the root element of an RSS document looking for text-input information. It reads title, description, name and link out of the 'textinput' or 'textInput' element.
| |
| validateFeed | back to summary |
|---|---|
| protected void validateFeed(final Document document) throws FeedException | |