|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.core.AbstractDateStamped
org.davesag.generica.core.AbstractContent
org.davesag.generica.core.AbstractExtensibleContent
org.davesag.generica.core.Category
This Category bean represents a basic Category
suitable as a content seperator for any content management system where
stories should be displayed on a website in various categories. The
categories are designed to be localizable.
| Field Summary | |
protected String |
theDescription
the description of this Category |
protected String |
theName
the name of this Category |
| Fields inherited from class org.davesag.generica.core.AbstractExtensibleContent |
theMetaData |
| Fields inherited from class org.davesag.generica.core.AbstractContent |
theCountryCode, theLanguageCode |
| Fields inherited from class org.davesag.generica.core.AbstractDateStamped |
theCreated, theId, theLastModified |
| Constructor Summary | |
Category()
null constructor required by hibernate. |
|
Category(String name,
Locale loc)
constructor takes a member and populates this summary object with the values required in common to all member displays. |
|
| Method Summary | |
boolean |
equals(Object o)
Tests if the supplied object is equal to this Category. |
String |
getDescription()
get the description of the category. |
String |
getName()
get the name of the category. |
int |
hashcode()
You must override the hashcode if you override the equals method. |
void |
setDescription(String desc)
Set a short description of this Category. |
void |
setName(String name)
Set the Category's name. |
String |
toString()
a short string identifying the category. |
| Methods inherited from class org.davesag.generica.core.AbstractExtensibleContent |
addMetaData, getMetaData, getMetaData, removeMetaData, setMetaData |
| Methods inherited from class org.davesag.generica.core.AbstractContent |
getCountryCode, getLanguageCode, getLocale, setCountryCode, setLanguageCode, setLocale |
| Methods inherited from class org.davesag.generica.core.AbstractDateStamped |
getCreated, getId, getLastModified, setCreated, setId, setLastModified, setTemplateId |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.davesag.generica.core.Extensible |
addMetaData, getMetaData, getMetaData, removeMetaData, setMetaData |
| Methods inherited from interface org.davesag.generica.core.DateStamped |
getCreated, getLastModified, setCreated, setLastModified |
| Field Detail |
protected String theName
protected String theDescription
| Constructor Detail |
public Category()
public Category(String name,
Locale loc)
name - The name of the Category.loc - The locale for this Category.| Method Detail |
public String getName()
public void setName(String name)
name - The name of this Category.public String getDescription()
public void setDescription(String desc)
desc - A description of this Category.public String toString()
toString in class AbstractContentpublic boolean equals(Object o)
equals in class AbstractExtensibleContento - The object to test against this Category. Must also be a
Category to make sense.
public int hashcode()
hashcode in class AbstractContent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||