org.intabulas.sandler.elements.impl
Class AbstractEntryElement

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

public class AbstractEntryElement
extends Object
implements SandlerEntry, AtomElement, ParseableEntity

AbstractEntryElement

Version:
$Id: AbstractEntryElement.java,v 1.8 2004/02/04 22:09:34 intabulas Exp $
Author:
Mark Lussier

Field Summary
protected  Person _author
           
protected  List _contributorList
           
protected  String _id
           
protected  List _linksList
           
protected  Date _modified
           
protected  Content _summary
           
protected  Content _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
AbstractEntryElement()
           
 
Method Summary
 void addContributor(int index, Person contributor)
           
 boolean addContributor(Person contributor)
           
 void addLink(int index, Link link)
           
 boolean addLink(Link link)
           
 Person getAuthor()
          Returns the Entries Author
 Person getContributor(int index)
           
 int getContributorCount()
           
 String getId()
          Returns the Entries ID
 Link getLink(int index)
           
 int getLinkCount()
           
 Date getModified()
          Returns the date the entry was last modified
 Content getSummary()
          Returns the Entries Summary
 Content getTitle()
          Returns the Entries Title
 void loadDocument(org.xmlpull.v1.XmlPullParser parser)
          Extract relevant content from the parser stream
 void removeContributor(int index)
           
 boolean removeContributor(Person contributor)
           
 void removeLink(int index)
           
 boolean removeLink(Link link)
           
 void setAuthor(Person author)
          Set's the entries Author
 void setId(String id)
          Set's the Entries ID
 void setModified(Date date)
          Set's the date the entry was last modified
 void setSummary(Content summary)
          Set's the Entries Summary
 void setSummary(String summary)
          Set's the Entries Summary
 void setTitle(Content title)
          Set's the Entries Title
 void setTitle(String title)
          Set's the Entries Title
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_title

protected Content _title

_summary

protected Content _summary

_modified

protected Date _modified

_id

protected String _id

_author

protected Person _author

_contributorList

protected List _contributorList

_linksList

protected List _linksList
Constructor Detail

AbstractEntryElement

public AbstractEntryElement()
Method Detail

getSummary

public Content getSummary()
Returns the Entries Summary

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

setSummary

public void setSummary(Content summary)
Set's the Entries Summary

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

setSummary

public void setSummary(String summary)
Set's the Entries Summary

Specified by:
setSummary in interface SandlerEntry
Parameters:
summary - a String representing the Summary

getTitle

public Content getTitle()
Returns the Entries Title

Specified by:
getTitle in interface SandlerEntry
Returns:
a String representing the Title

setTitle

public void setTitle(Content title)
Set's the Entries Title

Specified by:
setTitle in interface SandlerEntry
Parameters:
title - a String representing the Title

setTitle

public void setTitle(String title)
Set's the Entries Title

Specified by:
setTitle in interface SandlerEntry
Parameters:
title - a String representing the Title

getModified

public Date getModified()
Returns the date the entry was last modified

Specified by:
getModified in interface SandlerEntry
Returns:
a Date representing the last time the entry was modified

setModified

public void setModified(Date date)
Set's the date the entry was last modified

Specified by:
setModified in interface SandlerEntry
Parameters:
date - a Date representing the last time the entry was modified

getId

public String getId()
Returns the Entries ID

Specified by:
getId in interface SandlerEntry
Returns:
a String representing the Entry ID

setId

public void setId(String id)
Set's the Entries ID

Specified by:
setId in interface SandlerEntry
Parameters:
id - a String representing the Entry ID

getAuthor

public Person getAuthor()
Returns the Entries Author

Specified by:
getAuthor in interface SandlerEntry
Returns:
a Person representing the Entry Author

setAuthor

public void setAuthor(Person author)
Set's the entries Author

Specified by:
setAuthor in interface SandlerEntry
Parameters:
author - a Person representing the Entry Author

removeContributor

public boolean removeContributor(Person contributor)
Specified by:
removeContributor in interface SandlerEntry
Parameters:
contributor - a Person representing a Contributor to the Entry
Returns:
a boolean indicating the sucessful removel of a contributor

addContributor

public boolean addContributor(Person contributor)
Specified by:
addContributor in interface SandlerEntry
Parameters:
contributor - a Person representing a Contributor to the Entry

getContributorCount

public int getContributorCount()
Specified by:
getContributorCount in interface SandlerEntry
Returns:
an int representing the number of contributors to the entry

removeContributor

public void removeContributor(int index)
Specified by:
removeContributor in interface SandlerEntry
Parameters:
index - an int indicating which contributor in the list to remove

getContributor

public Person getContributor(int index)
Specified by:
getContributor in interface SandlerEntry
Parameters:
index -
Returns:

addContributor

public void addContributor(int index,
                           Person contributor)
Specified by:
addContributor in interface SandlerEntry
Parameters:
index -
contributor -

addLink

public boolean addLink(Link link)
Specified by:
addLink in interface SandlerEntry
Parameters:
link - a Link representing a Link to the Entry

addLink

public void addLink(int index,
                    Link link)
Specified by:
addLink in interface SandlerEntry
Parameters:
index - an int indiciating where in the contributor list to insert this contributor
link - a Link representing a Link to the Entry

getLink

public Link getLink(int index)
Specified by:
getLink in interface SandlerEntry
Parameters:
index -
Returns:
a Link representing a Link to the Entry

getLinkCount

public int getLinkCount()
Specified by:
getLinkCount in interface SandlerEntry
Returns:
an int representing the number of links to the entry

removeLink

public boolean removeLink(Link link)
Specified by:
removeLink in interface SandlerEntry
Parameters:
link - a Contributor representing a Link to the Entry
Returns:
a boolean indicating the sucessful removel of a link

removeLink

public void removeLink(int index)
Specified by:
removeLink in interface SandlerEntry
Parameters:
index - an int indicating which Link in the list to remove

loadDocument

public void loadDocument(org.xmlpull.v1.XmlPullParser parser)
                  throws org.xmlpull.v1.XmlPullParserException
Extract relevant content from the parser stream

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


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