org.intabulas.sandler.elements.impl
Class EntryImpl

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

public class EntryImpl
extends AbstractEntryElement
implements Entry, AtomElement

EntryImpl

Version:
$Id: EntryImpl.java,v 1.10 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
EntryImpl()
           
 
Method Summary
 boolean addContent(Content content)
           
 void addContent(int index, Content content)
           
 Content getContent(int index)
           
 int getContentCount()
           
 Date getCreated()
           
 Date getIssued()
           
 Content getSummary()
          Returns the Entries Summary
 void loadDocument(org.xmlpull.v1.XmlPullParser parser)
          Extract relevant content from the parser stream
 boolean removeContent(Content content)
           
 void removeContent(int index)
           
 void setCreated(Date date)
           
 void setIssued(Date date)
           
 void setSummary(Content summary)
          Set's the Entries Summary
 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, getTitle, removeContributor, removeContributor, removeLink, removeLink, setAuthor, setId, setModified, 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, getTitle, removeContributor, removeContributor, removeLink, removeLink, setAuthor, setId, setModified, setSummary, setTitle, setTitle
 

Constructor Detail

EntryImpl

public EntryImpl()
Method Detail

getSummary

public Content getSummary()
Description copied from class: AbstractEntryElement
Returns the Entries Summary

Specified by:
getSummary in interface SandlerEntry
Overrides:
getSummary in class AbstractEntryElement
Returns:
a Content representing the Summary

setSummary

public void setSummary(Content summary)
Description copied from class: AbstractEntryElement
Set's the Entries Summary

Specified by:
setSummary in interface SandlerEntry
Overrides:
setSummary in class AbstractEntryElement
Parameters:
summary - a Content representing the Summary

getCreated

public Date getCreated()
Specified by:
getCreated in interface Entry
Returns:

setIssued

public void setIssued(Date date)
Specified by:
setIssued in interface Entry
Parameters:
date -

setCreated

public void setCreated(Date date)
Specified by:
setCreated in interface Entry
Parameters:
date -

getIssued

public Date getIssued()
Specified by:
getIssued in interface Entry
Returns:

addContent

public boolean addContent(Content content)
Specified by:
addContent in interface Entry
Parameters:
content -

getContentCount

public int getContentCount()
Specified by:
getContentCount in interface Entry
Returns:

getContent

public Content getContent(int index)
Specified by:
getContent in interface Entry
Parameters:
index -
Returns:

removeContent

public boolean removeContent(Content content)
Specified by:
removeContent in interface Entry
Parameters:
content -
Returns:

removeContent

public void removeContent(int index)
Specified by:
removeContent in interface Entry
Parameters:
index -

addContent

public void addContent(int index,
                       Content content)
Specified by:
addContent in interface Entry
Parameters:
index -
content -

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.