com.sun.syndication.io.impl
クラス RSS091UserlandParser

java.lang.Object
  上位を拡張 com.sun.syndication.io.impl.BaseWireFeedParser
      上位を拡張 com.sun.syndication.io.impl.RSS090Parser
          上位を拡張 com.sun.syndication.io.impl.RSS091UserlandParser
すべての実装されたインタフェース:
WireFeedParser
直系の既知のサブクラス:
RSS091NetscapeParser, RSS092Parser

public class RSS091UserlandParser
extends RSS090Parser


コンストラクタの概要
  RSS091UserlandParser()
           
protected RSS091UserlandParser(java.lang.String type)
           
 
メソッドの概要
protected  Element getImage(Element rssRoot)
          It looks for the 'image' elements under the 'channel' elemment.
protected  java.util.List getItems(Element rssRoot)
          It looks for the 'item' elements under the 'channel' elemment.
protected  Namespace getRSSNamespace()
          Returns the namespace used by RSS elements in document of the RSS version the parser supports.
protected  java.lang.String getRSSVersion()
           
protected  Element getTextInput(Element rssRoot)
          It looks for the 'textinput' elements under the 'channel' elemment.
protected  java.lang.String getTextInputLabel()
          To be overriden by RSS 0.91 Netscape parser
protected  boolean isHourFormat24(Element rssRoot)
          To be overriden by RSS 0.91 Netscape and RSS 0.94
 boolean isMyType(Document document)
          Inspects an XML Document (JDOM) to check if it can parse it.
protected  WireFeed parseChannel(Element rssRoot)
          Parses the root element of an RSS document into a Channel bean.
protected  Image parseImage(Element rssRoot)
          Parses the root element of an RSS document looking for image information.
protected  Item parseItem(Element rssRoot, Element eItem)
          Parses an item element of an RSS document looking for item information.
protected  Description parseItemDescription(Element rssRoot, Element eDesc)
           
 
クラス com.sun.syndication.io.impl.RSS090Parser から継承されたメソッド
getContentNamespace, getRDFNamespace, parse, parseItems, parseTextInput, validateFeed
 
クラス com.sun.syndication.io.impl.BaseWireFeedParser から継承されたメソッド
extractForeignMarkup, getAttribute, getAttributeValue, getType, parseFeedModules, parseItemModules
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

RSS091UserlandParser

public RSS091UserlandParser()

RSS091UserlandParser

protected RSS091UserlandParser(java.lang.String type)
メソッドの詳細

isMyType

public boolean isMyType(Document document)
インタフェース WireFeedParser の記述:
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.

定義:
インタフェース WireFeedParser 内の isMyType
オーバーライド:
クラス RSS090Parser 内の isMyType
パラメータ:
document - XML Document (JDOM) to check if it can be parsed by this parser.
戻り値:
true if the parser know how to parser this feed, false otherwise.

getRSSVersion

protected java.lang.String getRSSVersion()

getRSSNamespace

protected Namespace getRSSNamespace()
クラス RSS090Parser の記述:
Returns the namespace used by RSS elements in document of the RSS version the parser supports.

This implementation returns the EMTPY namespace.

オーバーライド:
クラス RSS090Parser 内の getRSSNamespace
戻り値:
returns the EMPTY namespace.

isHourFormat24

protected boolean isHourFormat24(Element rssRoot)
To be overriden by RSS 0.91 Netscape and RSS 0.94


parseChannel

protected WireFeed parseChannel(Element rssRoot)
Parses the root element of an RSS document into a Channel bean.

It first invokes super.parseChannel and then parses and injects the following properties if present: language, pubDate, rating and copyright.

オーバーライド:
クラス RSS090Parser 内の parseChannel
パラメータ:
rssRoot - the root element of the RSS document to parse.
戻り値:
the parsed Channel bean.

parseImage

protected Image parseImage(Element rssRoot)
Parses the root element of an RSS document looking for image information.

It first invokes super.parseImage and then parses and injects the following properties if present: url, link, width, height and description.

オーバーライド:
クラス RSS090Parser 内の parseImage
パラメータ:
rssRoot - the root element of the RSS document to parse for image information.
戻り値:
the parsed RSSImage bean.

getItems

protected java.util.List getItems(Element rssRoot)
It looks for the 'item' elements under the 'channel' elemment.

オーバーライド:
クラス RSS090Parser 内の getItems

getImage

protected Element getImage(Element rssRoot)
It looks for the 'image' elements under the 'channel' elemment.

オーバーライド:
クラス RSS090Parser 内の getImage

getTextInputLabel

protected java.lang.String getTextInputLabel()
To be overriden by RSS 0.91 Netscape parser


getTextInput

protected Element getTextInput(Element rssRoot)
It looks for the 'textinput' elements under the 'channel' elemment.

オーバーライド:
クラス RSS090Parser 内の getTextInput

parseItem

protected Item parseItem(Element rssRoot,
                         Element eItem)
Parses an item element of an RSS document looking for item information.

It first invokes super.parseItem and then parses and injects the description property if present.

オーバーライド:
クラス RSS090Parser 内の parseItem
パラメータ:
rssRoot - the root element of the RSS document in case it's needed for context.
eItem - the item element to parse.
戻り値:
the parsed RSSItem bean.

parseItemDescription

protected Description parseItemDescription(Element rssRoot,
                                           Element eDesc)