org.apache.abdera
Class Abdera

java.lang.Object
  extended by org.apache.abdera.Abdera

public final class Abdera
extends java.lang.Object

A top level entry point for Abdera that provides access to various subcomponents. Upon creation, this class will attempt to create singleton instances of each of the various subcomponents components. These instances may be retrieved using the appropriate get___ methods. Alternatively, new instances may be created using the appropriate new___ methods.


Constructor Summary
Abdera()
          Initialize using the default Abdera Configuration
Abdera(org.apache.abdera.util.AbderaConfiguration config)
          Initialize using the specified Abdera Configuration
 
Method Summary
 org.apache.abdera.util.AbderaConfiguration getConfiguration()
          Return the Abdera Configuration used to initialize this instance
 Factory getFactory()
          Return the singleton instance of org.apache.abdera.factory.Factory
static Factory getNewFactory()
          Return a new Factory instance using a non-shared Abdera object
static Parser getNewParser()
          Return a new Parser instance using a non-shared Abdera object
static ParserFactory getNewParserFactory()
          Return a new ParserFactory instance using a non-shared Abdera object
static Writer getNewWriter()
          Return a new instance of the default Writer using a non-shared Abdera object
static WriterFactory getNewWriterFactory()
          Return a new WriterFactory instance using a non-shared Abdera object
static XPath getNewXPath()
          Return a new XPath instance using a non-shared Abdera object
 Parser getParser()
          Return the singleton instance of org.apache.abdera.parser.Parser
 ParserFactory getParserFactory()
          Return the singleton instance of org.apache.abdera.parser.ParserFactory
 Writer getWriter()
          Return the singleton instance of org.apache.abdera.writer.Writer
 WriterFactory getWriterFactory()
          Return the singleton instance of org.apache.abdera.writer.WriterFactory
 XPath getXPath()
          Return the singleton instance of org.apache.abdera.xpath.XPath
 Categories newCategories()
          Create a new Categories instance.
 Entry newEntry()
          Create a new Entry instance.
 Feed newFeed()
          Create a new Feed instance.
 Service newService()
          Create a new Service instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Abdera

public Abdera()
Initialize using the default Abdera Configuration


Abdera

public Abdera(org.apache.abdera.util.AbderaConfiguration config)
Initialize using the specified Abdera Configuration

Parameters:
config - The Abdera Configuration to use
Method Detail

newFeed

public Feed newFeed()
Create a new Feed instance. This is a convenience shortcut for abdera.getFactory().newFeed()

Returns:
A newly created feed element

newEntry

public Entry newEntry()
Create a new Entry instance. This is a convenience shortcut for abdera.getFactory().newEntry()


newService

public Service newService()
Create a new Service instance. This is a convenience shortcut for abdera.getFactory().newService()


newCategories

public Categories newCategories()
Create a new Categories instance. This is a convenience shortcut for abdera.getFactory().newCategories()


getConfiguration

public org.apache.abdera.util.AbderaConfiguration getConfiguration()
Return the Abdera Configuration used to initialize this instance


getFactory

public Factory getFactory()
Return the singleton instance of org.apache.abdera.factory.Factory


getParser

public Parser getParser()
Return the singleton instance of org.apache.abdera.parser.Parser


getXPath

public XPath getXPath()
Return the singleton instance of org.apache.abdera.xpath.XPath


getParserFactory

public ParserFactory getParserFactory()
Return the singleton instance of org.apache.abdera.parser.ParserFactory


getWriterFactory

public WriterFactory getWriterFactory()
Return the singleton instance of org.apache.abdera.writer.WriterFactory


getWriter

public Writer getWriter()
Return the singleton instance of org.apache.abdera.writer.Writer


getNewFactory

public static Factory getNewFactory()
Return a new Factory instance using a non-shared Abdera object


getNewParser

public static Parser getNewParser()
Return a new Parser instance using a non-shared Abdera object


getNewXPath

public static XPath getNewXPath()
Return a new XPath instance using a non-shared Abdera object


getNewParserFactory

public static ParserFactory getNewParserFactory()
Return a new ParserFactory instance using a non-shared Abdera object


getNewWriterFactory

public static WriterFactory getNewWriterFactory()
Return a new WriterFactory instance using a non-shared Abdera object


getNewWriter

public static Writer getNewWriter()
Return a new instance of the default Writer using a non-shared Abdera object