|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmorfologik.stemming.WordData
public final class WordData
Stem and tag data associated with a given word.
Important notes:
DictionaryLookup class. If you need a copy of the
stem or tag data for a given word, you have to create a custom buffer
yourself and copy the associated data, perform clone() or create
strings (they are immutable) using getStem() and then
CharSequence.toString().
| Method Summary | |
|---|---|
protected WordData |
clone()
Declare a covariant of Object.clone() that returns a deep copy of
this object. |
boolean |
equals(Object obj)
|
CharSequence |
getStem()
|
ByteBuffer |
getStemBytes(ByteBuffer target)
Copy the stem's binary data (no charset decoding) to a custom byte buffer. |
CharSequence |
getTag()
|
ByteBuffer |
getTagBytes(ByteBuffer target)
Copy the tag's binary data (no charset decoding) to a custom byte buffer. |
CharSequence |
getWord()
|
ByteBuffer |
getWordBytes(ByteBuffer target)
Copy the inflected word's binary data (no charset decoding) to a custom byte buffer. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public ByteBuffer getStemBytes(ByteBuffer target)
target - Target byte buffer to copy the stem buffer to or
null if a new buffer should be allocated.
target or the new reallocated buffer.public ByteBuffer getTagBytes(ByteBuffer target)
target - Target byte buffer to copy the tag buffer to or
null if a new buffer should be allocated.
target or the new reallocated buffer.public ByteBuffer getWordBytes(ByteBuffer target)
target - Target byte buffer to copy the word buffer to or
null if a new buffer should be allocated.
target or the new reallocated buffer.public CharSequence getTag()
null if no associated tag data exists.public CharSequence getStem()
null if no associated stem data exists.public CharSequence getWord()
DictionaryLookup.lookup(CharSequence).public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectprotected WordData clone()
Object.clone() that returns a deep copy of
this object. The content of all internal buffers is copied.
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||