| Package | Description |
|---|---|
| net.sf.okapi.lib.xliff2.core |
Classes implementing the object model of a parsed XLIFF document.
|
| net.sf.okapi.lib.xliff2.its |
Classes to read, write and manipulate ITS data categories.
|
| net.sf.okapi.lib.xliff2.matches |
Classes to read, write and manipulate the elements and attributes of the
Translation Candidates module.
|
| net.sf.okapi.lib.xliff2.renderer |
| Modifier and Type | Method and Description |
|---|---|
Fragment |
Fragment.append(char ch)
Appends a character at the end of this fragment.
|
Fragment |
Fragment.append(CharSequence plainText)
Appends a plain text string to this fragment.
|
Fragment |
Fragment.append(CharSequence plainText,
int start,
int end)
Appends a sub-sequence of a given plain text string to this fragment.
|
Fragment |
Fragment.append(Fragment fragment)
Appends a fragment to this fragment.
|
Fragment |
Fragment.delete(int start,
int end)
Deletes a section of this fragment (including any protected content within the section).
|
Fragment |
Part.getSource()
Gets the source fragment for this part.
|
Fragment |
Part.getTarget()
Gets the target fragment for this part.
|
Fragment |
Part.getTarget(Part.GetTarget creationOption)
Gets the target fragment for this part, and possibly create it if it does not exists yet.
|
Fragment |
Fragment.insert(CharSequence plainText,
int offset)
Inserts a plain text at a given position.
|
Fragment |
Fragment.remove(Tag tag)
Removes a tag from this fragment (including if the tag is in a protected content).
|
Fragment |
Part.setSource(Fragment fragment)
Sets the fragment of the source for this part.
|
Fragment |
Part.setSource(String plainText)
Sets the source for this part as a new fragment made of a plain text string.
|
Fragment |
Part.setTarget(Fragment fragment)
Sets the fragment of the target for this part.
|
Fragment |
Part.setTarget(String plainText)
Sets the target for this part as a new fragment made of a plain text string.
|
| Modifier and Type | Method and Description |
|---|---|
Fragment |
Fragment.append(Fragment fragment)
Appends a fragment to this fragment.
|
Fragment |
Part.setSource(Fragment fragment)
Sets the fragment of the source for this part.
|
Fragment |
Part.setTarget(Fragment fragment)
Sets the fragment of the target for this part.
|
| Constructor and Description |
|---|
Fragment(Fragment original,
Store store,
boolean target)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static IITSItem |
ITSWriter.annotate(Fragment fragment,
int start,
int end,
IITSItem item)
Annotates a given fragment with an ITS item.
|
static MTag |
ITSWriter.annotate(Fragment fragment,
int start,
int end,
IITSItem item,
String matchingType)
Tries to reuse an existing annotation to add an ITS item.
|
| Modifier and Type | Method and Description |
|---|---|
Fragment |
Match.getSource()
Gets the source fragment for this match.
|
Fragment |
Match.getTarget()
Gets the target fragment for this match.
|
| Modifier and Type | Method and Description |
|---|---|
static Match |
Match.annotate(Fragment fragment,
int start,
int end,
Match match)
Tries to reuse an existing
mtc:match annotation to add a given match. |
void |
Match.setSource(Fragment source)
Sets the source fragment for this match.
|
void |
Match.setTarget(Fragment target)
Sets the target fragment for this match.
|
| Modifier and Type | Method and Description |
|---|---|
void |
XLIFFFragmentRenderer.set(Fragment fragment,
Stack<NSContext> nsStack) |
void |
IFragmentRenderer.set(Fragment fragment,
Stack<NSContext> nsStack)
Sets the fragment to iterate through and the namespace context.
|
| Constructor and Description |
|---|
XLIFFFragmentRenderer(Fragment fragment,
Stack<NSContext> nsStack)
Creates a new
XLIFFFragmentRenderer object for a given fragment and namespace context. |
Copyright © 2020. All rights reserved.