edu.mit.jwi.item
Class SenseEntry

java.lang.Object
  extended by edu.mit.jwi.item.SenseEntry
All Implemented Interfaces:
IHasPOS, ISenseEntry, java.io.Serializable

public class SenseEntry
extends java.lang.Object
implements ISenseEntry

Concrete implementation of the ISenseEntry interface.

Since:
JWI 2.1.0
Version:
2.4.0
Author:
Mark A. Finlayson
See Also:
Serialized Form

Constructor Summary
SenseEntry(ISenseKey key, int offset, int num, int count)
          Constructs a new sense entry object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getOffset()
          Returns the synset offset for this sense entry, a non-negative integer.
 POS getPOS()
          Returns the associated part of speech for this object.
 ISenseKey getSenseKey()
          Returns the sense key for this sense entry.
 int getSenseNumber()
          Returns the sense number for the word indicated by this entry.
 int getTagCount()
          Returns the tag count for the sense entry.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SenseEntry

public SenseEntry(ISenseKey key,
                  int offset,
                  int num,
                  int count)
Constructs a new sense entry object.

Parameters:
key - the sense key of the entry
offset - the synset offset of the entry
num - the sense number of the entry
count - the tag count of the entry
Since:
JWI 2.1.0
Method Detail

getOffset

public int getOffset()
Description copied from interface: ISenseEntry
Returns the synset offset for this sense entry, a non-negative integer.

Specified by:
getOffset in interface ISenseEntry
Returns:
the non-negative synset offset for this entry

getPOS

public POS getPOS()
Description copied from interface: IHasPOS
Returns the associated part of speech for this object. If this object is not associated with any particular part of speech, this method may return null.

Specified by:
getPOS in interface IHasPOS
Returns:
The associated part of speech, or null if none.

getSenseNumber

public int getSenseNumber()
Description copied from interface: ISenseEntry
Returns the sense number for the word indicated by this entry. A sense number is a positive integer.

Specified by:
getSenseNumber in interface ISenseEntry
Returns:
the non-negative sense number for the word indicated by this entry.

getSenseKey

public ISenseKey getSenseKey()
Description copied from interface: ISenseEntry
Returns the sense key for this sense entry. Will not return null.

Specified by:
getSenseKey in interface ISenseEntry
Returns:
The non-null sense key for this sense entry.

getTagCount

public int getTagCount()
Description copied from interface: ISenseEntry
Returns the tag count for the sense entry. A tag count is a non-negative integer that represents the number of times the sense is tagged in various semantic concordance texts. A count of 0 indicates that the sense has not been semantically tagged.

Specified by:
getTagCount in interface ISenseEntry
Returns:
the non-negative tag count for this entry

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2007-2013 Massachusetts Institute of Technology. All Rights Reserved.