edu.northwestern.at.wordhoard.model.annotations
Class AnnotationCategory

java.lang.Object
  extended by edu.northwestern.at.wordhoard.model.annotations.AnnotationCategory
All Implemented Interfaces:
PersistentObject

public class AnnotationCategory
extends java.lang.Object
implements PersistentObject

An annotation category.

An annotation category has the following attribute:


Constructor Summary
AnnotationCategory()
          Creates a new annotation category.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if some other object is equal to this one.
 java.lang.Long getId()
          Gets the unique id.
 java.lang.String getName()
          Gets the name.
 int hashCode()
          Returns a hash code for the object.
 void setName(java.lang.String name)
          Sets the name.
 java.lang.String toString()
          Gets a string representation of the category.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationCategory

public AnnotationCategory()
Creates a new annotation category.

Method Detail

getId

public java.lang.Long getId()
Gets the unique id.

Specified by:
getId in interface PersistentObject
Returns:
The unique id.

getName

public java.lang.String getName()
Gets the name.

Returns:
The name.

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - The name.

toString

public java.lang.String toString()
Gets a string representation of the category.

Overrides:
toString in class java.lang.Object
Returns:
The name.

equals

public boolean equals(java.lang.Object obj)
Returns true if some other object is equal to this one.

The two categories are equal if their names are equal.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The other object.
Returns:
True if this object equals the other object.

hashCode

public int hashCode()
Returns a hash code for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code.