Class DictEntry
- java.lang.Object
-
- org.apache.lucene.analysis.hunspell.DictEntry
-
public abstract class DictEntry extends java.lang.Object
An object representing *.dic file entry with its word, flags and morphological data.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
stem
-
Constructor Summary
Constructors Constructor Description DictEntry(java.lang.String stem)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) static DictEntry
create(java.lang.String stem, java.lang.String flags)
boolean
equals(java.lang.Object o)
abstract java.lang.String
getFlags()
abstract java.lang.String
getMorphologicalData()
java.util.List<java.lang.String>
getMorphologicalValues(java.lang.String key)
java.lang.String
getStem()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getStem
public java.lang.String getStem()
- Returns:
- the stem word in the dictionary
-
getFlags
public abstract java.lang.String getFlags()
- Returns:
- the flags associated with the dictionary entry, encoded in the same format as in the *.dic file, but possibly in a different order
-
getMorphologicalData
public abstract java.lang.String getMorphologicalData()
- Returns:
- morphological fields (of
kk:vvvvvv
form, sorted, space-separated, excludingph:
) associated with the homonym at the given entry index, or an empty string
-
getMorphologicalValues
public java.util.List<java.lang.String> getMorphologicalValues(java.lang.String key)
- Parameters:
key
- the key in the formkk:
by which to filter the morphological fields- Returns:
- the values (of
vvvvvv
form) of morphological fields with the given key associated with the homonym at the given entry index
-
create
static DictEntry create(java.lang.String stem, java.lang.String flags)
-
-