|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WireFeedParser
Parses an XML document (JDOM) into a feed bean.
WireFeedParser instances must thread safe.
TODO: explain how developers can plugin their own implementations.
Method Summary | |
---|---|
String |
getType()
Returns the type of feed the parser handles. |
boolean |
isMyType(org.jdom.Document document)
Inspects an XML Document (JDOM) to check if it can parse it. |
WireFeed |
parse(org.jdom.Document document,
boolean validate)
Parses an XML document (JDOM Document) into a feed bean. |
Method Detail |
---|
String getType()
for details on the format of this string.
boolean isMyType(org.jdom.Document document)
It checks if the given document if the type of feeds the parser understands.
document
- XML Document (JDOM) to check if it can be parsed by this parser.
WireFeed parse(org.jdom.Document document, boolean validate) throws IllegalArgumentException, FeedException
document
- XML document (JDOM) to parse.validate
- indicates if the feed should be strictly validated (NOT YET IMPLEMENTED).
IllegalArgumentException
- thrown if the parser cannot handle the given feed type.
FeedException
- thrown if a feed bean cannot be created out of the XML document (JDOM).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |