Top Fields Constructors Methods
com.rometools.rome.io.impl

public Class Atom03Parser

extends BaseWireFeedParser
Class Inheritance
Imports
java.util.ArrayList, .List, .Locale, org.jdom2.Document, .Element, .Namespace, org.jdom2.output.XMLOutputter, com.rometools.rome.feed.WireFeed, com.rometools.rome.feed.atom.Content, .Entry, .Feed, .Generator, .Link, .Person, com.rometools.rome.feed.synd.SyndPerson, com.rometools.rome.io.FeedException, com.rometools.utils.Lists

Field Summary

Modifier and TypeField and Description
private static final Namespace
private static final String

Constructor Summary

AccessConstructor and Description
public
protected
Atom03Parser(final String type, final Namespace ns)

Method Summary

Modifier and TypeMethod and Description
protected Namespace
public boolean
isMyType(final Document
XML Document (JDOM) to check if it can be parsed by this parser.
document
)

Implements com.rometools.rome.io.WireFeedParser.isMyType.

Inspects an XML Document (JDOM) to check if it can parse it.
public WireFeed
parse(final Document
XML document (JDOM) to parse.
document
,
final boolean
indicates if the feed should be strictly validated (NOT YET IMPLEMENTED).
validate
,
final Locale locale)

Implements com.rometools.rome.io.WireFeedParser.parse.

Parses an XML document (JDOM Document) into a feed bean.
private Content
private List<Entry>
parseEntries(final List<Element> eEntries, final Locale locale)

private Entry
parseEntry(final Element eEntry, final Locale locale)

protected WireFeed
parseFeed(final Element eFeed, final Locale locale)

private Person
parsePerson(final Element ePerson)

private List<SyndPerson>
parsePersons(final List<Element> ePersons)

protected void
validateFeed(final Document document)

Inherited from com.rometools.rome.io.impl.BaseWireFeedParser:
extractForeignMarkupgetAttributegetAttributeValuegetStyleSheetgetTypeparseFeedModulesparseItemModulesparsePersonModules

Field Detail

ATOM_03_NSback to summary
private static final Namespace ATOM_03_NS
ATOM_03_URIback to summary
private static final String ATOM_03_URI

Constructor Detail

Atom03Parserback to summary
public Atom03Parser()
Atom03Parserback to summary
protected Atom03Parser(final String type, final Namespace ns)

Method Detail

getAtomNamespaceback to summary
protected Namespace getAtomNamespace()
isMyTypeback to summary
public boolean isMyType(final Document document)

Implements com.rometools.rome.io.WireFeedParser.isMyType.

Doc from com.rometools.rome.io.WireFeedParser.isMyType.

Inspects an XML Document (JDOM) to check if it can parse it.

It checks if the given document if the type of feeds the parser understands.

Parameters
document:Document

XML Document (JDOM) to check if it can be parsed by this parser.

Returns:boolean

true if the parser know how to parser this feed, false otherwise.

Annotations
@Override
parseback to summary
public WireFeed parse(final Document document, final boolean validate, final Locale locale) throws IllegalArgumentException, FeedException

Implements com.rometools.rome.io.WireFeedParser.parse.

Doc from com.rometools.rome.io.WireFeedParser.parse.

Parses an XML document (JDOM Document) into a feed bean.

Parameters
document:Document

XML document (JDOM) to parse.

validate:boolean

indicates if the feed should be strictly validated (NOT YET IMPLEMENTED).

Returns:WireFeed

the resulting feed bean.

Annotations
@Override
Exceptions
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).
parseContentback to summary
private Content parseContent(final Element e)
parseEntriesback to summary
private List<Entry> parseEntries(final List<Element> eEntries, final Locale locale)
parseEntryback to summary
private Entry parseEntry(final Element eEntry, final Locale locale)
parseFeedback to summary
protected WireFeed parseFeed(final Element eFeed, final Locale locale)
parsePersonback to summary
private Person parsePerson(final Element ePerson)
parsePersonsback to summary
private List<SyndPerson> parsePersons(final List<Element> ePersons)
validateFeedback to summary
protected void validateFeed(final Document document) throws FeedException