org.rometools.feed.synd.impl
Class ConverterForOPML10

java.lang.Object
  extended by org.rometools.feed.synd.impl.ConverterForOPML10
All Implemented Interfaces:
com.sun.syndication.feed.synd.Converter
Direct Known Subclasses:
ConverterForOPML20

public class ConverterForOPML10
extends Object
implements com.sun.syndication.feed.synd.Converter

Author:
cooper

Field Summary
static String URI_ATTRIBUTE
           
static String URI_TREE
           
 
Constructor Summary
ConverterForOPML10()
          Creates a new instance of ConverterForOPML10
 
Method Summary
protected  void addOwner(Opml opml, com.sun.syndication.feed.synd.SyndFeed syndFeed)
           
 void copyInto(com.sun.syndication.feed.WireFeed feed, com.sun.syndication.feed.synd.SyndFeed syndFeed)
          Makes a deep copy/conversion of the values of a real feed into a SyndFeedImpl.
protected  void createEntries(org.rometools.feed.synd.impl.ConverterForOPML10.TreeContext context, List allEntries, List outlines)
           
protected  com.sun.syndication.feed.synd.SyndEntry createEntry(org.rometools.feed.synd.impl.ConverterForOPML10.TreeContext context, List allEntries, Outline outline)
           
 com.sun.syndication.feed.WireFeed createRealFeed(com.sun.syndication.feed.synd.SyndFeed syndFeed)
          Creates real feed with a deep copy/conversion of the values of a SyndFeedImpl.
 String getType()
          Returns the type (version) of the real feed this converter handles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URI_TREE

public static final String URI_TREE
See Also:
Constant Field Values

URI_ATTRIBUTE

public static final String URI_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

ConverterForOPML10

public ConverterForOPML10()
Creates a new instance of ConverterForOPML10

Method Detail

addOwner

protected void addOwner(Opml opml,
                        com.sun.syndication.feed.synd.SyndFeed syndFeed)

copyInto

public void copyInto(com.sun.syndication.feed.WireFeed feed,
                     com.sun.syndication.feed.synd.SyndFeed syndFeed)
Makes a deep copy/conversion of the values of a real feed into a SyndFeedImpl.

It assumes the given SyndFeedImpl has no properties set.

Specified by:
copyInto in interface com.sun.syndication.feed.synd.Converter
Parameters:
feed - real feed to copy/convert.
syndFeed - the SyndFeedImpl that will contain the copied/converted values of the real feed.

createEntries

protected void createEntries(org.rometools.feed.synd.impl.ConverterForOPML10.TreeContext context,
                             List allEntries,
                             List outlines)

createEntry

protected com.sun.syndication.feed.synd.SyndEntry createEntry(org.rometools.feed.synd.impl.ConverterForOPML10.TreeContext context,
                                                              List allEntries,
                                                              Outline outline)

createRealFeed

public com.sun.syndication.feed.WireFeed createRealFeed(com.sun.syndication.feed.synd.SyndFeed syndFeed)
Creates real feed with a deep copy/conversion of the values of a SyndFeedImpl.

Specified by:
createRealFeed in interface com.sun.syndication.feed.synd.Converter
Parameters:
syndFeed - SyndFeedImpl to copy/convert value from.
Returns:
a real feed with copied/converted values of the SyndFeedImpl.

getType

public String getType()
Returns the type (version) of the real feed this converter handles.

Specified by:
getType in interface com.sun.syndication.feed.synd.Converter
Returns:
the real feed type.
See Also:
for details on the format of this string.



Copyright © 2013 ROME Project. All Rights Reserved.