Package org.omegat.core.matching
Class NearString
- java.lang.Object
-
- org.omegat.core.matching.NearString
-
public class NearString extends java.lang.Object
Class to hold a single fuzzy match.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NearString.MATCH_SOURCE
static class
NearString.Scores
static class
NearString.ScoresComparator
static class
NearString.SORT_KEY
-
Field Summary
Fields Modifier and Type Field Description byte[]
attr
matching attributes of near strEntrylong
changedDate
java.lang.String
changer
NearString.MATCH_SOURCE
comesFrom
long
creationDate
java.lang.String
creator
boolean
fuzzyMark
EntryKey
key
java.lang.String[]
projs
java.util.List<TMXProp>
props
NearString.Scores[]
scores
java.lang.String
source
java.lang.String
translation
-
Constructor Summary
Constructors Constructor Description NearString(EntryKey key, java.lang.String source, java.lang.String translation, NearString.MATCH_SOURCE comesFrom, boolean fuzzyMark, int nearScore, int nearScoreNoStem, int adjustedScore, byte[] nearData, java.lang.String projName, java.lang.String creator, long creationDate, java.lang.String changer, long changedDate, java.util.List<TMXProp> props)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NearString
merge(NearString ns, EntryKey key, java.lang.String source, java.lang.String translation, NearString.MATCH_SOURCE comesFrom, boolean fuzzyMark, int nearScore, int nearScoreNoStem, int adjustedScore, byte[] nearData, java.lang.String projName, java.lang.String creator, long creationDate, java.lang.String changer, long changedDate, java.util.List<TMXProp> props)
java.lang.String
toString()
-
-
-
Field Detail
-
key
public EntryKey key
-
source
public java.lang.String source
-
translation
public java.lang.String translation
-
comesFrom
public NearString.MATCH_SOURCE comesFrom
-
fuzzyMark
public boolean fuzzyMark
-
scores
public NearString.Scores[] scores
-
attr
public byte[] attr
matching attributes of near strEntry
-
projs
public java.lang.String[] projs
-
props
public java.util.List<TMXProp> props
-
creator
public java.lang.String creator
-
creationDate
public long creationDate
-
changer
public java.lang.String changer
-
changedDate
public long changedDate
-
-
Constructor Detail
-
NearString
public NearString(EntryKey key, java.lang.String source, java.lang.String translation, NearString.MATCH_SOURCE comesFrom, boolean fuzzyMark, int nearScore, int nearScoreNoStem, int adjustedScore, byte[] nearData, java.lang.String projName, java.lang.String creator, long creationDate, java.lang.String changer, long changedDate, java.util.List<TMXProp> props)
-
-
Method Detail
-
merge
public static NearString merge(NearString ns, EntryKey key, java.lang.String source, java.lang.String translation, NearString.MATCH_SOURCE comesFrom, boolean fuzzyMark, int nearScore, int nearScoreNoStem, int adjustedScore, byte[] nearData, java.lang.String projName, java.lang.String creator, long creationDate, java.lang.String changer, long changedDate, java.util.List<TMXProp> props)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-