org.infoglue.cms.entities.management
Class CategoryAttribute
java.lang.Object
|
+--org.infoglue.cms.entities.management.CategoryAttribute
- All Implemented Interfaces:
- java.lang.Comparable
- public class CategoryAttribute
- extends java.lang.Object
- implements java.lang.Comparable
This is used to represent the XMLSchema values assocaited with a CategoryAttribute
- Author:
- Frank Febbraro (frank@phase2technology.com)
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
CategoryAttribute
public CategoryAttribute(java.lang.String value)
CategoryAttribute
public CategoryAttribute(java.lang.String value,
java.lang.String categoryId)
CategoryAttribute
public CategoryAttribute(java.lang.String value,
java.lang.String categoryId,
java.lang.String title,
java.lang.String desc)
getValue
public java.lang.String getValue()
setValue
public void setValue(java.lang.String s)
getTitle
public java.lang.String getTitle()
setTitle
public void setTitle(java.lang.String s)
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String s)
getCategoryId
public java.lang.Integer getCategoryId()
setCategoryId
public void setCategoryId(java.lang.String s)
getCategoryName
public java.lang.String getCategoryName()
setCategoryName
public void setCategoryName(java.lang.String s)
compareTo
public int compareTo(java.lang.Object o)
- Compares this object to another for order
- Specified by:
compareTo in interface java.lang.Comparable
- Parameters:
o - an object
- Returns:
- a value less then 0, 0, or greater than 0 as this object is less than, equal to, or greater than o
- Throws:
java.lang.ClassCastException - if o is not an instance of CategoryAttribute
hashCode
public int hashCode()
- Defines the hash code for this object, which is based on category ID.
- Overrides:
hashCode in class java.lang.Object
- Returns:
- the hash code associated with the category ID
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object