edu.northwestern.at.wordhoard.model.morphology
Class BensonPos

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

public class BensonPos
extends java.lang.Object
implements PersistentObject

A Benson part of speech.

Benson parts of speech have the following attributes:


Constructor Summary
BensonPos()
          Creates a new Benson part of speech.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if some other object is equal to this one.
 void export(TableExporterImporter exporterImporter)
          Exports the object to a MySQL table exporter/importer.
 java.lang.String getDescription()
          Gets the description.
 java.lang.Long getId()
          Gets the unique id.
 java.lang.String getTag()
          Gets the tag.
 java.lang.String getTagWithDescription()
          Gets the tag with the description (if available).
 int hashCode()
          Returns a hash code for the object.
 void setDescription(java.lang.String description)
          Sets the description.
 void setId(java.lang.Long id)
          Sets the unique id.
 void setTag(java.lang.String tag)
          Sets the tag.
 java.lang.String toString()
          Gets a string representation of the Benson part of speech.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BensonPos

public BensonPos()
Creates a new Benson part of speech.

Method Detail

getId

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

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

setId

public void setId(java.lang.Long id)
Sets the unique id.

Parameters:
id - The unique id.

getTag

public java.lang.String getTag()
Gets the tag.

Returns:
The tag.

setTag

public void setTag(java.lang.String tag)
Sets the tag.

Parameters:
tag - The tag.

getDescription

public java.lang.String getDescription()
Gets the description.

Returns:
The description.

setDescription

public void setDescription(java.lang.String description)
Sets the description.

Parameters:
description - The description.

getTagWithDescription

public java.lang.String getTagWithDescription()
Gets the tag with the description (if available).

Returns:
Tag (description).

toString

public java.lang.String toString()
Gets a string representation of the Benson part of speech.

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

export

public void export(TableExporterImporter exporterImporter)
Exports the object to a MySQL table exporter/importer.

Parameters:
exporterImporter - MySQL table exporter/importer.

equals

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

The two Benson parts of speech are equal if their tags 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.