Class DictEntry


  • public abstract class DictEntry
    extends java.lang.Object
    An object representing *.dic file entry with its word, flags and morphological data.
    • Field Detail

      • stem

        private final java.lang.String stem
    • Constructor Detail

      • DictEntry

        DictEntry​(java.lang.String stem)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.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, excluding ph:) 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 form kk: 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)