edu.northwestern.at.wordhoard.model.counts
Class TotalWordFormCount

java.lang.Object
  extended by edu.northwestern.at.wordhoard.model.counts.TotalWordFormCount
All Implemented Interfaces:
PersistentObject, java.io.Serializable

public class TotalWordFormCount
extends java.lang.Object
implements java.io.Serializable, PersistentObject

Total counts of word forms in a work part.

A total word form count object contains the following fields:

Note that for LEMMA and WORDCLASS counts, the total count is equal to the number of word parts in the work part. For the other counts, the total count is equal to the number of words in the work part.

These count objects are used by the calculator.

See Also:
Serialized Form

Constructor Summary
TotalWordFormCount()
          Create an empty work word form count object.
TotalWordFormCount(int wordForm, WorkPart workPart, Work work, int wordFormCount)
          Create a populated total word form count object.
 
Method Summary
 java.lang.Long getId()
          Get the persistence id.
 int getWordForm()
          Get the word form.
 int getWordFormCount()
          Get the word form count in the work part.
 WorkPart getWork()
          Get the work.
 WorkPart getWorkPart()
          Get the work part.
 java.lang.String toString()
          Return string form of this entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TotalWordFormCount

public TotalWordFormCount()
Create an empty work word form count object.


TotalWordFormCount

public TotalWordFormCount(int wordForm,
                          WorkPart workPart,
                          Work work,
                          int wordFormCount)
Create a populated total word form count object.

Method Detail

getId

public java.lang.Long getId()
Get the persistence id.

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

getWordForm

public int getWordForm()
Get the word form.

Returns:
The word form type.

getWorkPart

public WorkPart getWorkPart()
Get the work part.

Returns:
The work part.

getWork

public WorkPart getWork()
Get the work.

Returns:
The work.

getWordFormCount

public int getWordFormCount()
Get the word form count in the work part.

Returns:
The word form count in the work part.

toString

public java.lang.String toString()
Return string form of this entry.

Overrides:
toString in class java.lang.Object
Returns:
The word form text.