| 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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CTag
Represents an opening, closing or standalone tag for an original inline code.
|
class |
MTag
Represents an opening or closing tag for an annotation marker.
|
| Modifier and Type | Method and Description |
|---|---|
Tag |
Fragment.append(Tag tag)
Appends a tag to this fragment.
|
static Tag |
CloneFactory.create(Tag original,
Tags destinationTags)
Creates a deep-copy clone of a given
Tag object. |
Tag |
Tags.get(CharSequence ctext,
int pos)
|
Tag |
Tags.get(int key)
|
Tag |
Tags.get(String id,
TagType tagType)
Gets the tag for a given id and tag type.
|
Tag |
Tags.getClosingTag(String id)
Gets the closing tag for a given tag ID.
|
Tag |
Tags.getClosingTag(Tag openingTag)
Gets the closing tag for a given opening tag.
|
Tag |
Fragment.getClosingTag(Tag tag)
Gets the closing tag corresponding to a given opening tag within a unit.
|
Tag |
Tags.getOpeningTag(String id)
Gets the opening tag for a given tag ID.
|
Tag |
Tags.getOpeningTag(Tag closingTag)
Gets the opening tag for a given closing tag.
|
Tag |
Fragment.getOpeningTag(Tag tag)
Gets the opening tag corresponding to a given closing tag within a unit.
|
Tag |
Fragment.getTag(CharSequence ctext,
int pos)
|
Tag |
Fragment.getTag(int key)
Gets the tag for a given key.
|
Tag |
Store.getTag(String id)
Gets the tag object for a given id.
|
Tag |
Store.getTag(String id,
TagType tagType)
Gets the tag for a given id and type (from the whole store).
|
Tag |
Fragment.getWellFormedClosing(Tag opening,
int from)
Gets the well-formed closing tag for a given opening one, starting at a given character position.
|
| Modifier and Type | Method and Description |
|---|---|
List<Tag> |
Fragment.getOwnTags()
Creates a list of all the source or target tags in this fragment.
|
Map<Tag,Integer> |
Fragment.getOwnTagsStatus()
Creates a map of the opening and closing tags in this fragment and their corresponding
status as tag: (0=isolated, 1=not-well-formed or 2=well-formed).
|
Iterator<Tag> |
Tags.iterator()
|
| Modifier and Type | Method and Description |
|---|---|
int |
Tags.add(Tag tag)
Adds a tag to this collection.
|
Tag |
Fragment.append(Tag tag)
Appends a tag to this fragment.
|
static Tag |
CloneFactory.create(Tag original,
Tags destinationTags)
Creates a deep-copy clone of a given
Tag object. |
int |
Fragment.getClosingPosition(Tag opening)
Gets the closing position of a span of content in this fragment for a given opening tag.
|
Tag |
Tags.getClosingTag(Tag openingTag)
Gets the closing tag for a given opening tag.
|
Tag |
Fragment.getClosingTag(Tag tag)
Gets the closing tag corresponding to a given opening tag within a unit.
|
int |
Tags.getKey(Tag tag)
Gets the key for a given code or marker.
|
Tag |
Tags.getOpeningTag(Tag closingTag)
Gets the opening tag for a given closing tag.
|
Tag |
Fragment.getOpeningTag(Tag tag)
Gets the opening tag corresponding to a given closing tag within a unit.
|
Tag |
Fragment.getWellFormedClosing(Tag opening,
int from)
Gets the well-formed closing tag for a given opening one, starting at a given character position.
|
static void |
Fragment.printExtAttributes(Tag tag,
StringBuilder output,
Stack<NSContext> nsStack) |
Fragment |
Fragment.remove(Tag tag)
Removes a tag from this fragment (including if the tag is in a protected content).
|
| Constructor and Description |
|---|
Tag(Tag original)
Copy constructor.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TermTag
Implements the XLIFF term annotation and the ITS
Terminology data category.
|
Copyright © 2020. All rights reserved.