| Package | Description |
|---|---|
| net.sf.okapi.lib.xliff2 |
Classes shared across the library.
|
| net.sf.okapi.lib.xliff2.core |
Classes implementing the object model of a parsed XLIFF document.
|
| net.sf.okapi.lib.xliff2.renderer |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
Util.createFixedSequences(List<CTag> list,
boolean errorOnMissingFirstNo)
Creates a list of sequences of code markers that must not be re-ordered
from the list of all code markers in a given source or target content.
|
static void |
Util.verifyReordering(List<CTag> original,
List<CTag> toVerify,
boolean errorOnMissingFirstNo)
Verifies if the sequences of codes that cannot be re-ordered have been preserved.
|
static void |
Util.verifyReordering(List<CTag> original,
List<CTag> toVerify,
boolean errorOnMissingFirstNo)
Verifies if the sequences of codes that cannot be re-ordered have been preserved.
|
| Modifier and Type | Method and Description |
|---|---|
CTag |
Fragment.append(TagType tagType,
String id,
String data,
boolean canOverlap)
Appends a code tag.
|
CTag |
Fragment.appendCode(String id,
String data)
Appends a standalone code to this fragment.
|
CTag |
Fragment.closeCodeSpan(String id,
String data)
Creates at the end of this fragment a closing tag for an existing code.
|
CTag |
Tags.getCTag(CharSequence ctext,
int pos)
Gets the
CTag for a given reference in a coded text. |
CTag |
Fragment.getCTag(CharSequence ctext,
int pos)
Gets the
CTag for a given reference in a coded text. |
CTag |
Tags.getCTag(int key)
Gets the
CTag for a given key. |
CTag |
Tags.getOpeningCTag(String id)
Gets the opening
CTag for a given id. |
CTag |
Fragment.insert(TagType tagType,
String type,
String id,
String data,
int offset,
boolean connect,
boolean allowOrphan)
Inserts a code at a given position (including the end) of this fragment.
|
CTag |
Fragment.openCodeSpan(String id,
String data)
Creates at the end of this fragment an opening tag for a new code.
|
| Modifier and Type | Method and Description |
|---|---|
List<CTag> |
Unit.getOrderedCTags(boolean target)
Creates the list of
CTag in the source or target content, in their
respective order. |
| Modifier and Type | Method and Description |
|---|---|
String |
Store.getIdForData(CTag ctag) |
static void |
Fragment.printCommonAttributes(CTag code,
Tags tags,
StringBuilder tmp,
CTag closing,
boolean outputDataRefEnd)
Output the common attributes for a given CTag object.
|
boolean |
Fragment.unitHasOpening(CTag ctag)
Tests if the unit to which this fragment belongs has an opening code
for a given closing code.
|
| Modifier and Type | Method and Description |
|---|---|
CTag |
XLIFFFragmentObject.getCTag() |
CTag |
IFragmentObject.getCTag()
Gets the
CTag of this object, if the object is of that type |
Copyright © 2020. All rights reserved.