| Package | Description |
|---|---|
| net.sf.okapi.common.resource |
Interfaces and classes that represent the parsed resources attached to the
events sent by a filter.
|
| net.sf.okapi.filters.xliff2.util | |
| net.sf.okapi.lib.merge.merge | |
| net.sf.okapi.steps.common |
Classes implementing often-used steps.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Segment
Implement a special content part that is a segment.
|
| Modifier and Type | Method and Description |
|---|---|
TextPart |
TextPart.clone()
Clone of
TextPart |
TextPart |
TextContainer.get(int index)
Gets the part (segment or non-segment) for a given part index.
|
| Modifier and Type | Method and Description |
|---|---|
List<TextPart> |
TextContainer.getParts() |
List<TextPart> |
Segments.getParts() |
List<TextPart> |
AlignedPair.getSourceParts()
Gets the source
TextParts |
List<TextPart> |
AlignedPair.getTargetParts()
Gets the target
TextParts |
Iterator<TextPart> |
TextContainer.iterator()
Creates an iterator to loop through the parts (segments and
non-segments) of this container.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TextContainer.append(TextPart part)
Appends a
TextPart (segment or non-segment) at the end of this container. |
void |
TextContainer.append(TextPart part,
boolean collapseIfPreviousEmpty)
Appends a
TextPart (segment or non-segment) at the end of this container. |
int |
TextPartComparator.compare(TextPart orig,
TextPart trans)
Match on id and type (segment or not) or TextFragment.
|
static void |
TextUnitUtil.convertTextPart_whitespaceCodesToText(TextPart textPart) |
static void |
TextUnitUtil.convertTextPartToCode(TextPart textPart)
Create a single code with a given TextPart's text.
|
void |
TextContainer.insert(int partIndex,
TextPart part)
Inserts a given part (segment or non-segment) at a given position.
|
void |
TextContainer.setParts(TextPart... parts) |
| Modifier and Type | Method and Description |
|---|---|
void |
Segments.setParts(List<TextPart> parts)
Sets the list of TextPart objects in which the segments for this Segments
object are located.
|
| Constructor and Description |
|---|
TextContainer(TextPart... parts)
Creates a new TextContainer object with initial
TextParts (segment or non-segment) appended. |
| Constructor and Description |
|---|
AlignedPair(List<TextPart> sourceParts,
List<TextPart> targetParts,
LocaleId localeId)
Creates an AlignedPair from source and target
TextParts |
AlignedPair(List<TextPart> sourceParts,
List<TextPart> targetParts,
LocaleId localeId)
Creates an AlignedPair from source and target
TextParts |
| Modifier and Type | Method and Description |
|---|---|
static void |
PropertiesMapper.setPartProperties(Part xliffPart,
TextPart okapiPart)
Transfers properties from the XLIFF Toolkit Part to the Okapi Core TextPart
|
static void |
PropertiesMapper.setPartProperties(TextPart okapiSourcePart,
Part xliffPart)
Transfers properties from the Okapi Core TextPart to the XLIFF Toolkit Part
|
| Modifier and Type | Method and Description |
|---|---|
<T extends TextPart> |
TextUnitMerger.hasMeta(T p) |
| Modifier and Type | Method and Description |
|---|---|
void |
TextUnitMerger.copyTextPartMetadata(List<TextPart> from,
List<TextPart> to,
String id) |
void |
TextUnitMerger.copyTextPartMetadata(List<TextPart> from,
List<TextPart> to,
String id) |
void |
ITextUnitMerger.copyTextPartMetadata(List<TextPart> from,
List<TextPart> to,
String id)
|
void |
ITextUnitMerger.copyTextPartMetadata(List<TextPart> from,
List<TextPart> to,
String id)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ExtractionVerificationUtil.compareTextParts(TextPart tp1,
TextPart tp2)
Compares two TextPart.
|
Copyright © 2022. All rights reserved.