com.sun.syndication.io.impl
public class Atom03Parser extends BaseWireFeedParser
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ATOM_03_URI |
Modifier | Constructor and Description |
---|---|
|
Atom03Parser() |
protected |
Atom03Parser(java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
protected org.jdom.Namespace |
getAtomNamespace() |
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.
|
private java.util.List |
parseAlternateLinks(java.util.List eLinks) |
private Content |
parseContent(org.jdom.Element e) |
private java.util.List |
parseEntries(java.util.List eEntries) |
private Entry |
parseEntry(org.jdom.Element eEntry) |
protected WireFeed |
parseFeed(org.jdom.Element eFeed) |
private Link |
parseLink(org.jdom.Element eLink) |
private java.util.List |
parseLinks(java.util.List eLinks,
boolean alternate) |
private java.util.List |
parseOtherLinks(java.util.List eLinks) |
private Person |
parsePerson(org.jdom.Element ePerson) |
private java.util.List |
parsePersons(java.util.List ePersons) |
protected void |
validateFeed(org.jdom.Document document) |
extractForeignMarkup, getType, parseFeedModules, parseItemModules
private static final java.lang.String ATOM_03_URI
public Atom03Parser()
protected Atom03Parser(java.lang.String type)
protected org.jdom.Namespace getAtomNamespace()
public boolean isMyType(org.jdom.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.jdom.Document document, boolean validate) throws java.lang.IllegalArgumentException, FeedException
WireFeedParser
document
- XML document (JDOM) to parse.validate
- indicates if the feed should be strictly validated (NOT YET IMPLEMENTED).java.lang.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.jdom.Document document) throws FeedException
FeedException
protected WireFeed parseFeed(org.jdom.Element eFeed)
private Link parseLink(org.jdom.Element eLink)
private java.util.List parseLinks(java.util.List eLinks, boolean alternate)
private java.util.List parseAlternateLinks(java.util.List eLinks)
private java.util.List parseOtherLinks(java.util.List eLinks)
private Person parsePerson(org.jdom.Element ePerson)
private java.util.List parsePersons(java.util.List ePersons)
private Content parseContent(org.jdom.Element e)
private java.util.List parseEntries(java.util.List eEntries)
private Entry parseEntry(org.jdom.Element eEntry)
Copyright © Sun Microsystems. All Rights Reserved.