Uses of Class
net.sf.okapi.common.resource.CodeMatches
-
Packages that use CodeMatches Package Description net.sf.okapi.common.resource Interfaces and classes that represent the parsed resources attached to the events sent by a filter. -
-
Uses of CodeMatches in net.sf.okapi.common.resource
Fields in net.sf.okapi.common.resource declared as CodeMatches Modifier and Type Field Description static CodeMatchesCodeMatches. NO_CODESstatic CodeMatchesCodeMatches. SAME_CODESMethods in net.sf.okapi.common.resource that return CodeMatches Modifier and Type Method Description static CodeMatchesTextFragmentUtil. alignAndCopyCodeMetadata(TextFragment from, TextFragment to)Update the meta fields inCode"to" that match those of "from" But only if the "to" code has empty data.static CodeMatchesTextFragmentUtil. alignAndCopyCodeMetadata(TextFragment from, TextFragment to, boolean addMissingCodes)Update the meta fields inCode"to" that match those of "from" But only if the "to" code has empty data (@see{forceCopy}).static CodeMatchesTextFragmentUtil. alignAndCopyCodeMetadata(TextFragment from, TextFragment to, boolean addMissingCodes, boolean forceCopy)static CodeMatchesTextFragmentUtil. alignAndCopyCodeMetadata(TextFragment from, TextFragment to, boolean addMissingCodes, boolean forceCopy, CodeMatchStrategy strategy)Update the meta fields inCode"to" that match those of "from" But only if the "to" code has empty data (@see{forceCopy}).static CodeMatchesTextFragmentUtil. synchronizeCodeIds(TextFragment from, TextFragment to)static CodeMatchesTextFragmentUtil. synchronizeCodeIds(TextFragment from, TextFragment to, CodeMatchStrategy strategy)Matches the code IDs of thefromfragment with the ones of thetofragment.Methods in net.sf.okapi.common.resource with parameters of type CodeMatches Modifier and Type Method Description static voidTextFragmentUtil. addMissingCodes(TextFragment from, TextFragment to, CodeMatches codeMatches)Add missing leading and trailing codes from source (aka "from") to target (aka 'to').static voidTextFragmentUtil. copyCodeMetadata(TextFragment sf, TextFragment tf, boolean forceCopy, CodeMatches cm)static voidTextFragmentUtil. logCodeMismatchErrors(CodeMatches matches, TextFragment from, TextFragment to, String textUnitId)Log all code mismatch issuesConstructors in net.sf.okapi.common.resource with parameters of type CodeMatches Constructor Description CodeComparatorOnIsolated(CodeMatches codeMatches)CodeComparatorOnIsolated(CodeMatches codeMatches, boolean matchIsolatedOnly)
-