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

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

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

The <news> element is the root of the news items. The following table lists all of the possible child elements.

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

Constructor Summary
NewsModel()
           
 
Method Summary
 void addItem(Item item)
          Method addItem
 boolean equals(java.lang.Object other)
          Method equals
 java.util.List getItems()
          Method getItems
 java.lang.String getModelEncoding()
           
 int hashCode()
          Method hashCode
 void removeItem(Item item)
          Method removeItem
 void setItems(java.util.List items)
          Set These are the news items to display.
 void setModelEncoding(java.lang.String modelEncoding)
           
 java.lang.String toString()
          Method toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewsModel

public NewsModel()
Method Detail

addItem

public void addItem(Item item)
Method addItem

Parameters:
item -

equals

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

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

getItems

public java.util.List getItems()
Method getItems


hashCode

public int hashCode()
Method hashCode

Overrides:
hashCode in class java.lang.Object

removeItem

public void removeItem(Item item)
Method removeItem

Parameters:
item -

setItems

public void setItems(java.util.List items)
Set These are the news items to display.

Parameters:
items -

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.