Class NearString

java.lang.Object
org.omegat.core.matching.NearString

public class NearString extends Object
Class to hold a single fuzzy match.
  • Field Details

    • key

      public EntryKey key
    • source

      public String source
    • translation

      public String translation
    • comesFrom

      public NearString.MATCH_SOURCE comesFrom
    • fuzzyMark

      public boolean fuzzyMark
    • scores

      public NearString.Scores[] scores
    • projs

      public String[] projs
    • attr

      public byte[] attr
      matching attributes of near strEntry
    • props

      public final List<TMXProp> props
    • creator

      public final String creator
    • creationDate

      public final long creationDate
    • changer

      public final String changer
    • changedDate

      public final long changedDate
  • Constructor Details

    • NearString

      public NearString(EntryKey key, ITMXEntry entry, NearString.MATCH_SOURCE comesFrom, boolean fuzzyMark, NearString.Scores scores, byte[] nearData, String projName)
      Constructor.
      Parameters:
      key - entry key
      entry - the TMX entry that has source text, translation text, creator, creation date, changer, change date and properties.
      comesFrom - origin
      fuzzyMark - fuzzy or not
      scores - score values
      nearData - similarity data.
      projName - project name.
    • NearString

      @Deprecated public NearString(EntryKey key, String source, String translation, NearString.MATCH_SOURCE comesFrom, boolean fuzzyMark, int nearScore, int nearScoreNoStem, int adjustedScore, byte[] nearData, String projName, String creator, long creationDate, String changer, long changedDate, List<TMXProp> props)
      Deprecated.
      Constructor, backward compatible.
      Parameters:
      key - entry key
      source - source text
      translation - translation text
      comesFrom - origin
      fuzzyMark - fuzzy or not
      nearScore -
      nearScoreNoStem -
      adjustedScore -
      nearData - similarity data.
      projName - project name.
      creator - creator name
      creationDate - creation date
      changer - changer name
      changedDate - changer date
      props - properties of entry.
  • Method Details