org.apache.abdera.factory
Interface Factory


public interface Factory

The Factory interface is the primary means by which Feed Object Model instances are built. Factories are specific to parser implementations. Users will generally not have to know anything about the Factory implementation, which will be automatically selected based on the Abdera configuration options.

Factory factory = Factory.INSTANCE;


Field Summary
static Factory INSTANCE
          The default Factory instance
 
Method Summary
 Person newAuthor()
           
 Person newAuthor(Element parent)
           
 Category newCategory()
           
 Category newCategory(Element parent)
           
 Collection newCollection()
           
 Collection newCollection(Element parent)
           
 Content newContent()
           
 Content newContent(Content.Type type)
           
 Content newContent(Content.Type type, Element parent)
           
 Content newContent(javax.activation.MimeType mediaType)
           
 Content newContent(javax.activation.MimeType mediaType, Element parent)
           
 Person newContributor()
           
 Person newContributor(Element parent)
           
 Control newControl()
           
 Control newControl(Element parent)
           
 DateTime newDateTime(javax.xml.namespace.QName qname, Element parent)
           
 Generator newDefaultGenerator()
           
 Generator newDefaultGenerator(Element parent)
           
 Div newDiv()
           
 Div newDiv(Base parent)
           
<T extends Element>
Document<T>
newDocument()
           
 Element newElement(javax.xml.namespace.QName qname)
           
 Element newElement(javax.xml.namespace.QName qname, Base parent)
           
 Element newEmail()
           
 Element newEmail(Element parent)
           
 Entry newEntry()
           
 Entry newEntry(Base parent)
           
 Element newExtensionElement(javax.xml.namespace.QName qname)
           
 Element newExtensionElement(javax.xml.namespace.QName qname, Base parent)
           
 Feed newFeed()
           
 Feed newFeed(Base parent)
           
 Generator newGenerator()
           
 Generator newGenerator(Element parent)
           
 IRI newIcon()
           
 IRI newIcon(Element parent)
           
 IRI newID()
           
 IRI newID(Element parent)
           
 IRI newIRIElement(javax.xml.namespace.QName qname, Element parent)
           
 Link newLink()
           
 Link newLink(Element parent)
           
 IRI newLogo()
           
 IRI newLogo(Element parent)
           
 Element newName()
           
 Element newName(Element parent)
           
 Parser newParser()
           
 Person newPerson(javax.xml.namespace.QName qname, Element parent)
           
 DateTime newPublished()
           
 DateTime newPublished(Element parent)
           
 Text newRights()
           
 Text newRights(Element parent)
           
 Text newRights(Text.Type type)
           
 Text newRights(Text.Type type, Element parent)
           
 Service newService()
           
 Service newService(Base parent)
           
 Source newSource()
           
 Source newSource(Element parent)
           
 Text newSubtitle()
           
 Text newSubtitle(Element parent)
           
 Text newSubtitle(Text.Type type)
           
 Text newSubtitle(Text.Type type, Element parent)
           
 Text newSummary()
           
 Text newSummary(Element parent)
           
 Text newSummary(Text.Type type)
           
 Text newSummary(Text.Type type, Element parent)
           
 Text newText(javax.xml.namespace.QName qname, Text.Type type)
           
 Text newText(javax.xml.namespace.QName qname, Text.Type type, Element parent)
           
 Text newTitle()
           
 Text newTitle(Element parent)
           
 Text newTitle(Text.Type type)
           
 Text newTitle(Text.Type type, Element parent)
           
 DateTime newUpdated()
           
 DateTime newUpdated(Element parent)
           
 IRI newUri()
           
 IRI newUri(Element parent)
           
 Workspace newWorkspace()
           
 Workspace newWorkspace(Element parent)
           
 void registerExtension(ExtensionFactory extensionFactory)
          Registers an extension factory for this Factory instance only
<T extends Base>
void
registerExtension(javax.xml.namespace.QName qname, java.lang.Class impl)
          Registers an extension implementation class for this Factory instance only
 

Field Detail

INSTANCE

static final Factory INSTANCE
The default Factory instance

Method Detail

newParser

Parser newParser()

newDocument

<T extends Element> Document<T> newDocument()

newService

Service newService()

newService

Service newService(Base parent)

newWorkspace

Workspace newWorkspace()

newWorkspace

Workspace newWorkspace(Element parent)

newCollection

Collection newCollection()

newCollection

Collection newCollection(Element parent)

newFeed

Feed newFeed()

newFeed

Feed newFeed(Base parent)

newEntry

Entry newEntry()

newEntry

Entry newEntry(Base parent)

newCategory

Category newCategory()

newCategory

Category newCategory(Element parent)

newContent

Content newContent()

newContent

Content newContent(Content.Type type)

newContent

Content newContent(Content.Type type,
                   Element parent)

newContent

Content newContent(javax.activation.MimeType mediaType)

newContent

Content newContent(javax.activation.MimeType mediaType,
                   Element parent)

newPublished

DateTime newPublished()

newPublished

DateTime newPublished(Element parent)

newUpdated

DateTime newUpdated()

newUpdated

DateTime newUpdated(Element parent)

newDateTime

DateTime newDateTime(javax.xml.namespace.QName qname,
                     Element parent)

newDefaultGenerator

Generator newDefaultGenerator()

newDefaultGenerator

Generator newDefaultGenerator(Element parent)

newGenerator

Generator newGenerator()

newGenerator

Generator newGenerator(Element parent)

newID

IRI newID()

newID

IRI newID(Element parent)

newIcon

IRI newIcon()

newIcon

IRI newIcon(Element parent)

newLogo

IRI newLogo()

newLogo

IRI newLogo(Element parent)

newUri

IRI newUri()

newUri

IRI newUri(Element parent)

newIRIElement

IRI newIRIElement(javax.xml.namespace.QName qname,
                  Element parent)

newLink

Link newLink()

newLink

Link newLink(Element parent)

newAuthor

Person newAuthor()

newAuthor

Person newAuthor(Element parent)

newContributor

Person newContributor()

newContributor

Person newContributor(Element parent)

newPerson

Person newPerson(javax.xml.namespace.QName qname,
                 Element parent)

newSource

Source newSource()

newSource

Source newSource(Element parent)

newText

Text newText(javax.xml.namespace.QName qname,
             Text.Type type)

newText

Text newText(javax.xml.namespace.QName qname,
             Text.Type type,
             Element parent)

newTitle

Text newTitle()

newTitle

Text newTitle(Element parent)

newTitle

Text newTitle(Text.Type type)

newTitle

Text newTitle(Text.Type type,
              Element parent)

newSubtitle

Text newSubtitle()

newSubtitle

Text newSubtitle(Element parent)

newSubtitle

Text newSubtitle(Text.Type type)

newSubtitle

Text newSubtitle(Text.Type type,
                 Element parent)

newSummary

Text newSummary()

newSummary

Text newSummary(Element parent)

newSummary

Text newSummary(Text.Type type)

newSummary

Text newSummary(Text.Type type,
                Element parent)

newRights

Text newRights()

newRights

Text newRights(Element parent)

newRights

Text newRights(Text.Type type)

newRights

Text newRights(Text.Type type,
               Element parent)

newName

Element newName()

newName

Element newName(Element parent)

newEmail

Element newEmail()

newEmail

Element newEmail(Element parent)

newElement

Element newElement(javax.xml.namespace.QName qname)

newElement

Element newElement(javax.xml.namespace.QName qname,
                   Base parent)

newExtensionElement

Element newExtensionElement(javax.xml.namespace.QName qname)

newExtensionElement

Element newExtensionElement(javax.xml.namespace.QName qname,
                            Base parent)

newControl

Control newControl()

newControl

Control newControl(Element parent)

newDiv

Div newDiv()

newDiv

Div newDiv(Base parent)

registerExtension

<T extends Base> void registerExtension(javax.xml.namespace.QName qname,
                                        java.lang.Class impl)
Registers an extension implementation class for this Factory instance only


registerExtension

void registerExtension(ExtensionFactory extensionFactory)
Registers an extension factory for this Factory instance only