org.apache.velocity.site.news.model
Class Item

java.lang.Object
  extended by org.apache.velocity.site.news.model.Item
All Implemented Interfaces:
java.io.Serializable

public class Item
extends java.lang.Object
implements java.io.Serializable

A single news item

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Item()
           
 
Method Summary
 void addCategory(java.lang.String string)
          Method addCategory
 boolean equals(java.lang.Object other)
          Method equals
 java.util.List getCategories()
          Method getCategories
 java.lang.String getDate()
          Get Posting date of this entry.
 java.lang.String getHeadline()
          Get Headline of this entry.
 java.lang.String getId()
          Get Id of this entry.
 java.lang.String getModelEncoding()
           
 java.lang.String getText()
          Get Content of this item in apt format.
 int hashCode()
          Method hashCode
 void removeCategory(java.lang.String string)
          Method removeCategory
 void setCategories(java.util.List categories)
          Set These are the categories under which the item will be filed.
 void setDate(java.lang.String date)
          Set Posting date of this entry.
 void setHeadline(java.lang.String headline)
          Set Headline of this entry.
 void setId(java.lang.String id)
          Set Id of this entry.
 void setModelEncoding(java.lang.String modelEncoding)
           
 void setText(java.lang.String text)
          Set Content of this item in apt format.
 java.lang.String toString()
          Method toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Item

public Item()
Method Detail

addCategory

public void addCategory(java.lang.String string)
Method addCategory

Parameters:
string -

equals

public boolean equals(java.lang.Object other)
Method equals

Overrides:
equals in class java.lang.Object
Parameters:
other -

getCategories

public java.util.List getCategories()
Method getCategories


getDate

public java.lang.String getDate()
Get Posting date of this entry.


getHeadline

public java.lang.String getHeadline()
Get Headline of this entry.


getId

public java.lang.String getId()
Get Id of this entry.


getText

public java.lang.String getText()
Get Content of this item in apt format.


hashCode

public int hashCode()
Method hashCode

Overrides:
hashCode in class java.lang.Object

removeCategory

public void removeCategory(java.lang.String string)
Method removeCategory

Parameters:
string -

setCategories

public void setCategories(java.util.List categories)
Set These are the categories under which the item will be filed.

Parameters:
categories -

setDate

public void setDate(java.lang.String date)
Set Posting date of this entry.

Parameters:
date -

setHeadline

public void setHeadline(java.lang.String headline)
Set Headline of this entry.

Parameters:
headline -

setId

public void setId(java.lang.String id)
Set Id of this entry.

Parameters:
id -

setText

public void setText(java.lang.String text)
Set Content of this item in apt format.

Parameters:
text -

toString

public java.lang.String toString()
Method toString

Overrides:
toString in class java.lang.Object

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)

getModelEncoding

public java.lang.String getModelEncoding()


Copyright © 2006-2007 The Apache Software Foundation. All Rights Reserved.