net.sf.tacos.services.impl
Class CategoryInfoImpl

java.lang.Object
  extended by net.sf.tacos.services.impl.CategoryInfoImpl
All Implemented Interfaces:
CategoryInfo

public class CategoryInfoImpl
extends Object
implements CategoryInfo

This class describes a site map category containing page names.

Author:
Gabriel Handford

Constructor Summary
CategoryInfoImpl(String name, List pageNames)
          Construct named category with list of pages.
CategoryInfoImpl(String name, List pageNames, String image, String inactiveImage)
          Construct named category with list of pages, active and inactive image.
 
Method Summary
 boolean equals(Object object)
           
 String getDefaultPage()
          Get the default page.
 String getImage()
          Returns active image for category.
 String getInactiveImage()
          Returns the inactive image for category.
 String getName()
          Get category name.
 List getPageNames()
          Get list of pages in category.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CategoryInfoImpl

public CategoryInfoImpl(String name,
                        List pageNames)
Construct named category with list of pages.

Parameters:
name - The category name
pageNames - List of the page names in this category

CategoryInfoImpl

public CategoryInfoImpl(String name,
                        List pageNames,
                        String image,
                        String inactiveImage)
Construct named category with list of pages, active and inactive image.

Parameters:
name - The category name
pageNames - List of the page names in this category
Method Detail

getName

public String getName()
Get category name.

Specified by:
getName in interface CategoryInfo
Returns:
name The category name

getDefaultPage

public String getDefaultPage()
Get the default page.

Specified by:
getDefaultPage in interface CategoryInfo
Returns:
The default page, or the first page, or null.

getPageNames

public List getPageNames()
Get list of pages in category.

Specified by:
getPageNames in interface CategoryInfo
Returns:
pageNames The page names in this category

getImage

public String getImage()
Returns active image for category.

Specified by:
getImage in interface CategoryInfo
Returns:

getInactiveImage

public String getInactiveImage()
Returns the inactive image for category.

Specified by:
getInactiveImage in interface CategoryInfo
Returns:

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

equals

public boolean equals(Object object)
Overrides:
equals in class Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()


Copyright © 2005-2008 SourceForge.net. All Rights Reserved.