SASAX-RSS parser

jp.ne.dti.lares.foozy.sasax.rss
Class RSSRootElement

java.lang.Object
  |
  +--jp.ne.dti.lares.foozy.sasax.AbstractElement
        |
        +--jp.ne.dti.lares.foozy.sasax.CompositeElement
              |
              +--jp.ne.dti.lares.foozy.sasax.rss.RSSRootElement
All Implemented Interfaces:
jp.ne.dti.lares.foozy.sasax.Element

public class RSSRootElement
extends jp.ne.dti.lares.foozy.sasax.CompositeElement

Class to parse XML document as RSS.

This has "MUST ITEM"s as shown below:

This has "OPTIONAL ITEM"s as shown below:

This does:

Author:
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>(code/doc)

Field Summary
 ChannelElement channel
          "channel" sub element.
 ImageElement image
          "image" sub element.
 ItemElement item
          Repeated "item" element.
 jp.ne.dti.lares.foozy.sasax.ElementRepetition repetition
          Repetition of "item" element.
 TextinputElement textinput
          "textinput" sub element.
 
Constructor Summary
RSSRootElement(jp.ne.dti.lares.foozy.sasax.Element parent)
          Constructor.
 
Method Summary
static void main(java.lang.String[] args)
          Bootstrap RSS parser.
 
Methods inherited from class jp.ne.dti.lares.foozy.sasax.CompositeElement
accepts, addComponent, addComponent, addMustItem, addMustItem, addOptionalItem, addOptionalItem, characters, endElement, examine, getComponent, getLName, getURI, isEmpty, startElement
 
Methods inherited from class jp.ne.dti.lares.foozy.sasax.AbstractElement
addCleanup, addNotification, clear, ensureDetermined, fireElementStarted, getParent, ignorableWhitespace, isDetermined, notifyDetermined, notifyDetermined, processingInstruction, setDetermined, skippedEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

channel

public final ChannelElement channel
"channel" sub element.

image

public final ImageElement image
"image" sub element.

repetition

public final jp.ne.dti.lares.foozy.sasax.ElementRepetition repetition
Repetition of "item" element.

item

public final ItemElement item
Repeated "item" element.

textinput

public final TextinputElement textinput
"textinput" sub element.
Constructor Detail

RSSRootElement

public RSSRootElement(jp.ne.dti.lares.foozy.sasax.Element parent)
Constructor.
Parameters:
parent - of this element
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Bootstrap RSS parser.

This tries to read file, whose name is specified as first argument, and parse it by RSSRoot on SASAX framework.

This makes empty output when success to parse XML document.


SASAX-RSS parser