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

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

public class BensonLemPos
extends java.lang.Object
implements PersistentObject

A Benson word form (lemma and part of speech).

Benson word forms have the following attributes:


Constructor Summary
BensonLemPos()
          Creates a new BensonLemPos object.
 
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.Long getId()
          Gets the unique id.
 BensonLemma getLemma()
          Gets the lemma.
 BensonPos getPos()
          Gets the part of speech.
 int hashCode()
          Returns a hash code for the object.
 void setId(java.lang.Long id)
          Sets the unique id.
 void setLemma(BensonLemma lemma)
          Sets the lemma.
 void setPos(BensonPos pos)
          Sets the part of speech.
 java.lang.String toString()
          Gets a string representation of the BensonLemPos.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BensonLemPos

public BensonLemPos()
Creates a new BensonLemPos object.

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.

getLemma

public BensonLemma getLemma()
Gets the lemma.

Returns:
The Lemma.

setLemma

public void setLemma(BensonLemma lemma)
Sets the lemma.

Parameters:
lemma - The lemma.

getPos

public BensonPos getPos()
Gets the part of speech.

Returns:
The part of speech.

setPos

public void setPos(BensonPos pos)
Sets the part of speech.

Parameters:
pos - The part of speech.

toString

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

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

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 BensonLemPos objects are equal if their lemmas and their parts of seppech 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.