org.infoglue.cms.entities.management
Class CategoryAttribute

java.lang.Object
  extended by 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)

Constructor Summary
CategoryAttribute(java.lang.String value)
           
CategoryAttribute(java.lang.String value, java.lang.String categoryId)
           
CategoryAttribute(java.lang.String value, java.lang.String categoryId, java.lang.String title, java.lang.String desc)
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this object to another for order
 boolean equals(java.lang.Object o)
           
 java.lang.Integer getCategoryId()
           
 java.lang.String getCategoryName()
           
 java.lang.String getDescription()
           
 java.lang.String getTitle()
           
 java.lang.String getValue()
           
 int hashCode()
          Defines the hash code for this object, which is based on category ID.
 void setCategoryId(java.lang.String s)
           
 void setCategoryName(java.lang.String s)
           
 void setDescription(java.lang.String s)
           
 void setTitle(java.lang.String s)
           
 void setValue(java.lang.String s)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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


Copyright © 2005 InfoGlue.org All Rights Reserved.