org.apache.wink.common.model.synd
Class SyndBase

java.lang.Object
  extended by org.apache.wink.common.model.synd.SyndCommonAttributes
      extended by org.apache.wink.common.model.synd.SyndBase
Direct Known Subclasses:
SyndEntry, SyndFeed

public abstract class SyndBase
extends SyndCommonAttributes


Constructor Summary
SyndBase()
           
SyndBase(String id, SyndText title, Date updated)
           
SyndBase(SyndBase other)
           
 
Method Summary
 void addAuthor(SyndPerson author)
          Add an author to the list of authors.
 void addCategory(SyndCategory category)
          Add a category to the list of categories.
 void addLink(SyndLink link)
          Add a link to the list of links.
 boolean equals(Object obj)
           
 List<SyndPerson> getAuthors()
           
 List<SyndCategory> getCategories()
           
 String getId()
           
 SyndLink getLink(String rel)
           
 List<SyndLink> getLinks()
           
 SyndText getTitle()
           
 Date getUpdated()
           
 int hashCode()
           
 void setId(String id)
           
 void setTitle(SyndText title)
           
 void setUpdated(Date updated)
           
 
Methods inherited from class org.apache.wink.common.model.synd.SyndCommonAttributes
getBase, getLang, setBase, setLang
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyndBase

public SyndBase()

SyndBase

public SyndBase(String id,
                SyndText title,
                Date updated)

SyndBase

public SyndBase(SyndBase other)
Method Detail

getId

public String getId()

setId

public void setId(String id)

addLink

public void addLink(SyndLink link)
Add a link to the list of links. This is a shortcut for getLinks().add(link).


getLinks

public List<SyndLink> getLinks()

getLink

public SyndLink getLink(String rel)

addAuthor

public void addAuthor(SyndPerson author)
Add an author to the list of authors. This is a shortcut for getAuthors().add(author).


getAuthors

public List<SyndPerson> getAuthors()

addCategory

public void addCategory(SyndCategory category)
Add a category to the list of categories. This is a shortcut for getCategories().add(category).


getCategories

public List<SyndCategory> getCategories()

getTitle

public SyndText getTitle()

setTitle

public void setTitle(SyndText title)

getUpdated

public Date getUpdated()

setUpdated

public void setUpdated(Date updated)

hashCode

public int hashCode()
Overrides:
hashCode in class SyndCommonAttributes

equals

public boolean equals(Object obj)
Overrides:
equals in class SyndCommonAttributes


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.