public class RssParser
extends java.lang.Object
implements org.ai_heuristic.def.ParserDef
Feed model type.| Constructor and Description |
|---|
RssParser()
Create a new instance of RssParser
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
parse(org.licas_xml.abs.Element toParse)
Parse an XML-based description into a
Feed object. |
FeedChannel |
parseChannel(org.licas_xml.abs.Element toParse)
Parse an XML-based description into a
Feed object. |
protected FeedMessage |
parseMessage(org.licas_xml.abs.Element rootElem)
Parse an XML-based description into a
FeedMessage object. |
org.licas_xml.abs.Element |
serialize(java.lang.Object toSerialize)
Serialize a
Feed object into XML. |
public org.licas_xml.abs.Element serialize(java.lang.Object toSerialize)
throws java.lang.Exception
Feed object into XML.serialize in interface org.ai_heuristic.def.ParserDeftoSerialize - the feed object to serialize.java.lang.Exception - any error.public java.lang.Object parse(org.licas_xml.abs.Element toParse)
throws java.lang.Exception
Feed object.parse in interface org.ai_heuristic.def.ParserDeftoParse - the description to parse.java.lang.Exception - any error.public FeedChannel parseChannel(org.licas_xml.abs.Element toParse)
Feed object.toParse - the description to parse.protected FeedMessage parseMessage(org.licas_xml.abs.Element rootElem)
FeedMessage object.rootElem - the description to parse.