| Package | Description |
|---|---|
| net.sf.okapi.common.resource |
Interfaces and classes that represent the parsed resources attached to the
events sent by a filter.
|
| Modifier and Type | Field and Description |
|---|---|
static CodeMatches |
CodeMatches.NO_CODES |
static CodeMatches |
CodeMatches.SAME_CODES |
| Modifier and Type | Method and Description |
|---|---|
static CodeMatches |
TextFragmentUtil.alignAndCopyCodeMetadata(TextFragment from,
TextFragment to)
Update the meta fields in
Code "to" that match those of
"from" But only if the "to" code has empty data. |
static CodeMatches |
TextFragmentUtil.alignAndCopyCodeMetadata(TextFragment from,
TextFragment to,
boolean addMissingCodes)
Update the meta fields in
Code "to" that match those of
"from" But only if the "to" code has empty data (@see{forceCopy}). |
static CodeMatches |
TextFragmentUtil.alignAndCopyCodeMetadata(TextFragment from,
TextFragment to,
boolean addMissingCodes,
boolean forceCopy) |
static CodeMatches |
TextFragmentUtil.alignAndCopyCodeMetadata(TextFragment from,
TextFragment to,
boolean addMissingCodes,
boolean forceCopy,
CodeMatchStrategy strategy)
Update the meta fields in
Code "to" that match those of
"from" But only if the "to" code has empty data (@see{forceCopy}). |
static CodeMatches |
TextFragmentUtil.synchronizeCodeIds(TextFragment from,
TextFragment to) |
static CodeMatches |
TextFragmentUtil.synchronizeCodeIds(TextFragment from,
TextFragment to,
CodeMatchStrategy strategy)
Matches the code IDs of the
from |
| Modifier and Type | Method and Description |
|---|---|
static void |
TextFragmentUtil.addMissingCodes(TextFragment from,
TextFragment to,
CodeMatches codeMatches)
Add missing leading and trailing codes from source (aka "from") to target (aka 'to').
|
static void |
TextFragmentUtil.copyCodeMetadata(TextFragment sf,
TextFragment tf,
boolean forceCopy,
CodeMatches cm) |
static void |
TextFragmentUtil.logCodeMismatchErrors(CodeMatches matches,
TextFragment from,
TextFragment to,
String textUnitId)
Log all code mismatch issues
|
| Constructor and Description |
|---|
CodeComparatorOnIsolated(CodeMatches codeMatches) |
CodeComparatorOnIsolated(CodeMatches codeMatches,
boolean matchIsolatedOnly) |
Copyright © 2022. All rights reserved.