public class Atom03Parser extends BaseWireFeedParser
Modifier | Constructor and Description |
---|---|
|
Atom03Parser() |
protected |
Atom03Parser(String type,
org.jdom2.Namespace ns) |
Modifier and Type | Method and Description |
---|---|
protected org.jdom2.Namespace |
getAtomNamespace() |
boolean |
isMyType(org.jdom2.Document document)
Inspects an XML Document (JDOM) to check if it can parse it.
|
WireFeed |
parse(org.jdom2.Document document,
boolean validate,
Locale locale)
Parses an XML document (JDOM Document) into a feed bean.
|
protected WireFeed |
parseFeed(org.jdom2.Element eFeed,
Locale locale) |
protected void |
validateFeed(org.jdom2.Document document) |
extractForeignMarkup, getAttribute, getAttributeValue, getStyleSheet, getType, parseFeedModules, parseItemModules, parsePersonModules
public Atom03Parser()
protected Atom03Parser(String type, org.jdom2.Namespace ns)
protected org.jdom2.Namespace getAtomNamespace()
public boolean isMyType(org.jdom2.Document document)
WireFeedParser
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.public WireFeed parse(org.jdom2.Document document, boolean validate, Locale locale) throws IllegalArgumentException, FeedException
WireFeedParser
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).protected void validateFeed(org.jdom2.Document document) throws FeedException
FeedException
Copyright © 2022. All rights reserved.