jp.ne.dti.lares.foozy.sasax.rss
Class ItemNotification
java.lang.Object
|
+--jp.ne.dti.lares.foozy.sasax.rss.ItemNotification
- All Implemented Interfaces:
- jp.ne.dti.lares.foozy.sasax.Notification
- public class ItemNotification
- extends java.lang.Object
- implements jp.ne.dti.lares.foozy.sasax.Notification
Listener to set information up from parse result of "item" element.
This expects to be added to ItemElement
.
- Author:
- FUJIWARA Katsunori <foozy@lares.dti.ne.jp>(code/doc)
Method Summary |
void |
elementEnded(jp.ne.dti.lares.foozy.sasax.Element element,
jp.ne.dti.lares.foozy.sasax.ParseContext context)
Invoked when target element is "ended". |
void |
elementStarted(jp.ne.dti.lares.foozy.sasax.Element element,
jp.ne.dti.lares.foozy.sasax.ParseContext context,
org.xml.sax.Attributes attributes)
Invoked when target element is "started". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ItemNotification
public ItemNotification(Channel channel)
- Constructor.
- Parameters:
channel
- into which information is stored
elementStarted
public void elementStarted(jp.ne.dti.lares.foozy.sasax.Element element,
jp.ne.dti.lares.foozy.sasax.ParseContext context,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
- Invoked when target element is "started".
This tries to get Item
by invocation of Channel.getItem(String)
on channel,
which specified at construction time,
with "rdf:about" attribute of "item" element.
- Specified by:
elementStarted
in interface jp.ne.dti.lares.foozy.sasax.Notification
- Parameters:
element
- which is startedcontext
- of SAX document parsing.attrs
- given by "startElement" SAX event.
elementEnded
public void elementEnded(jp.ne.dti.lares.foozy.sasax.Element element,
jp.ne.dti.lares.foozy.sasax.ParseContext context)
throws org.xml.sax.SAXException
- Invoked when target element is "ended".
This store value(s) shown below into item,
which is gotten at
elementStarted(Element, ParseContext, Attributes)
.
- Specified by:
elementEnded
in interface jp.ne.dti.lares.foozy.sasax.Notification
- Parameters:
element
- which is endedcontext
- of SAX document parsing.