org.intabulas.sandler.elements.impl
Class FeedImpl

java.lang.Object
  extended by org.intabulas.sandler.elements.impl.AbstractEntryElement
      extended by org.intabulas.sandler.elements.impl.FeedImpl
All Implemented Interfaces:
AtomElement, Feed, ParseableEntity, SandlerEntry

public class FeedImpl
extends AbstractEntryElement
implements Feed, AtomElement

FeedImpl

Version:
$Id: FeedImpl.java,v 1.11 2004/02/05 00:05:56 intabulas Exp $
Author:
Mark Lussier

Field Summary
 
Fields inherited from class org.intabulas.sandler.elements.impl.AbstractEntryElement
_author, _contributorList, _id, _linksList, _modified, _summary, _title
 
Fields inherited from interface org.intabulas.sandler.elements.AtomElement
ATOM_NAMESPACE, ATOM_VERSION, ATTRIBUTE_HREF, ATTRIBUTE_LANG, ATTRIBUTE_LANG_NP, ATTRIBUTE_MODE, ATTRIBUTE_NAME, ATTRIBUTE_REL, ATTRIBUTE_TITLE, ATTRIBUTE_TYPE, ATTRIBUTE_URL, ATTRIBUTE_VERSION, ATTRIBUTE_XMLNS, CDATA_END, CDATA_START, ELEMENT_AUTHOR, ELEMENT_CONTENT, ELEMENT_CONTRIBUTOR, ELEMENT_COPYRIGHT, ELEMENT_CREATED, ELEMENT_EMAIL, ELEMENT_ENTRY, ELEMENT_FEED, ELEMENT_GENERATOR, ELEMENT_HOMEPAGE, ELEMENT_ID, ELEMENT_INFO, ELEMENT_ISSUED, ELEMENT_LINK, ELEMENT_MODIFIED, ELEMENT_NAME, ELEMENT_SUMMARY, ELEMENT_TAGLINE, ELEMENT_TITLE, ELEMENT_URL, FORMAT_COMMENT, FORMAT_ENDELEMENT, FORMAT_FEEDATTRIBUTES, FORMAT_NAMEATTRIBUTE, FORMAT_STARTELEMENT, FORMAT_STRINGELEMENT, HTMLTAG_BEGIN, HTMLTAG_CLOSE, HTMLTAG_END, HTMLTAG_START, SPACE, XML_STARTDOC
 
Constructor Summary
FeedImpl()
           
 
Method Summary
 boolean addEntry(Entry entry)
           
 void addEntry(int index, Entry entry)
           
 void clear()
           
 Content getCopyright()
           
 Entry getEntry(int index)
           
 int getEntryCount()
           
 Generator getGenerator()
           
 Content getInfo()
           
 String getLanguage()
          xml:lang attribute
 Content getTagline()
           
 String getVersion()
           
 void loadDocument(org.xmlpull.v1.XmlPullParser parser)
          Extract relevant content from the parser stream
 boolean removeEntry(Entry entry)
           
 void removeEntry(int index)
           
 void setCopyright(Content copyright)
           
 void setGenerator(Generator generator)
           
 void setInfo(Content info)
           
 void setInfo(String info)
           
 void setLanguage(String language)
          xml:lang attribute
 void setTagline(Content tagline)
           
 void setTagline(String tagline)
           
 void setVersion(String version)
           
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class org.intabulas.sandler.elements.impl.AbstractEntryElement
addContributor, addContributor, addLink, addLink, getAuthor, getContributor, getContributorCount, getId, getLink, getLinkCount, getModified, getSummary, getTitle, removeContributor, removeContributor, removeLink, removeLink, setAuthor, setId, setModified, setSummary, setSummary, setTitle, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.intabulas.sandler.elements.SandlerEntry
addContributor, addContributor, addLink, addLink, getAuthor, getContributor, getContributorCount, getId, getLink, getLinkCount, getModified, getSummary, getTitle, removeContributor, removeContributor, removeLink, removeLink, setAuthor, setId, setModified, setSummary, setSummary, setTitle, setTitle
 

Constructor Detail

FeedImpl

public FeedImpl()
Method Detail

clear

public void clear()

addEntry

public void addEntry(int index,
                     Entry entry)
Specified by:
addEntry in interface Feed
Parameters:
index -
entry -

addEntry

public boolean addEntry(Entry entry)
Specified by:
addEntry in interface Feed
Parameters:
entry -

getEntryCount

public int getEntryCount()
Specified by:
getEntryCount in interface Feed
Returns:

removeEntry

public void removeEntry(int index)
Specified by:
removeEntry in interface Feed
Parameters:
index -

removeEntry

public boolean removeEntry(Entry entry)
Specified by:
removeEntry in interface Feed
Parameters:
entry -
Returns:

getEntry

public Entry getEntry(int index)
Specified by:
getEntry in interface Feed
Parameters:
index -
Returns:

setVersion

public void setVersion(String version)
Specified by:
setVersion in interface Feed
Parameters:
version -

getVersion

public String getVersion()
Specified by:
getVersion in interface Feed
Returns:

setLanguage

public void setLanguage(String language)
Description copied from interface: Feed
xml:lang attribute

Specified by:
setLanguage in interface Feed
Parameters:
language -

getLanguage

public String getLanguage()
Description copied from interface: Feed
xml:lang attribute

Specified by:
getLanguage in interface Feed
Returns:

setInfo

public void setInfo(Content info)
Specified by:
setInfo in interface Feed
Parameters:
info -

setInfo

public void setInfo(String info)
Specified by:
setInfo in interface Feed
Parameters:
info -

getInfo

public Content getInfo()
Specified by:
getInfo in interface Feed
Returns:

getTagline

public Content getTagline()
Specified by:
getTagline in interface Feed
Returns:

setTagline

public void setTagline(Content tagline)
Specified by:
setTagline in interface Feed
Parameters:
tagline -

setTagline

public void setTagline(String tagline)
Specified by:
setTagline in interface Feed

getCopyright

public Content getCopyright()
Specified by:
getCopyright in interface Feed
Returns:

setCopyright

public void setCopyright(Content copyright)
Specified by:
setCopyright in interface Feed
Parameters:
copyright -

setGenerator

public void setGenerator(Generator generator)
Specified by:
setGenerator in interface Feed
Parameters:
generator -

getGenerator

public Generator getGenerator()
Specified by:
getGenerator in interface Feed
Returns:

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
a String representation of the object.

loadDocument

public void loadDocument(org.xmlpull.v1.XmlPullParser parser)
                  throws org.xmlpull.v1.XmlPullParserException
Description copied from class: AbstractEntryElement
Extract relevant content from the parser stream

Specified by:
loadDocument in interface ParseableEntity
Overrides:
loadDocument in class AbstractEntryElement
Parameters:
parser - the XML Pull Parser instabce
Throws:
org.xmlpull.v1.XmlPullParserException


Copyright © 2003-2004 Mark Lussier. All Rights Reserved.