Class Atom03Parser

    • Constructor Detail

      • Atom03Parser

        public Atom03Parser()
      • Atom03Parser

        protected Atom03Parser​(String type,
                               org.jdom2.Namespace ns)
    • Method Detail

      • getAtomNamespace

        protected org.jdom2.Namespace getAtomNamespace()
      • isMyType

        public boolean isMyType​(org.jdom2.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​(org.jdom2.Document document,
                              boolean validate,
                              Locale locale)
                       throws 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:
        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).
      • parseFeed

        protected WireFeed parseFeed​(org.jdom2.Element eFeed,
                                     Locale locale)