com.sun.syndication.io.impl
Class Atom03Parser

java.lang.Object
  extended by com.sun.syndication.io.impl.BaseWireFeedParser
      extended by com.sun.syndication.io.impl.Atom03Parser
All Implemented Interfaces:
WireFeedParser

public class Atom03Parser
extends BaseWireFeedParser


Field Summary
private static java.lang.String ATOM_03_URI
           
 
Constructor Summary
  Atom03Parser()
           
protected Atom03Parser(java.lang.String type)
           
 
Method Summary
protected  Namespace getAtomNamespace()
           
 boolean isMyType(Document document)
          Inspects an XML Document (JDOM) to check if it can parse it.
 WireFeed parse(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(Element e)
           
private  java.util.List parseEntries(java.util.List eEntries)
           
private  Entry parseEntry(Element eEntry)
           
protected  WireFeed parseFeed(Element eFeed)
           
private  Link parseLink(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(Element ePerson)
           
private  java.util.List parsePersons(java.util.List ePersons)
           
protected  void validateFeed(Document document)
           
 
Methods inherited from class com.sun.syndication.io.impl.BaseWireFeedParser
extractForeignMarkup, getType, parseFeedModules, parseItemModules
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATOM_03_URI

private static final java.lang.String ATOM_03_URI
See Also:
Constant Field Values
Constructor Detail

Atom03Parser

public Atom03Parser()

Atom03Parser

protected Atom03Parser(java.lang.String type)
Method Detail

getAtomNamespace

protected Namespace getAtomNamespace()

isMyType

public boolean isMyType(Document document)
Description copied from interface: WireFeedParser
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 - XML Document (JDOM) to check if it can be parsed by this parser.
Returns:
true if the parser know how to parser this feed, false otherwise.

parse

public WireFeed parse(Document document,
                      boolean validate)
               throws java.lang.IllegalArgumentException,
                      FeedException
Description copied from interface: WireFeedParser
Parses an XML document (JDOM Document) into a feed bean.

Parameters:
document - XML document (JDOM) to parse.
validate - indicates if the feed should be strictly validated (NOT YET IMPLEMENTED).
Returns:
the resulting feed bean.
Throws:
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).

validateFeed

protected void validateFeed(Document document)
                     throws FeedException
Throws:
FeedException

parseFeed

protected WireFeed parseFeed(Element eFeed)

parseLink

private Link parseLink(Element eLink)

parseLinks

private java.util.List parseLinks(java.util.List eLinks,
                                  boolean alternate)

parseAlternateLinks

private java.util.List parseAlternateLinks(java.util.List eLinks)

parseOtherLinks

private java.util.List parseOtherLinks(java.util.List eLinks)

parsePerson

private Person parsePerson(Element ePerson)

parsePersons

private java.util.List parsePersons(java.util.List ePersons)

parseContent

private Content parseContent(Element e)

parseEntries

private java.util.List parseEntries(java.util.List eEntries)

parseEntry

private Entry parseEntry(Element eEntry)


Copyright © Sun Microsystems. All Rights Reserved.