| Package | Description |
|---|---|
| net.sf.okapi.common.annotation |
Classes to implement and manage annotations.
|
| net.sf.okapi.common.filters |
Interfaces and base classes to implement filters
|
| net.sf.okapi.common.filterwriter |
Interfaces and classes to allow the output of a document in its original
format.
|
| net.sf.okapi.common.resource |
Interfaces and classes that represent the parsed resources attached to the
events sent by a filter.
|
| net.sf.okapi.common.skeleton |
Interfaces and classes for the skeleton objects.
|
| net.sf.okapi.core.simplifierrules | |
| net.sf.okapi.filters.abstractmarkup | |
| net.sf.okapi.filters.icml | |
| net.sf.okapi.filters.markdown | |
| net.sf.okapi.filters.xini | |
| net.sf.okapi.filters.xliff | |
| net.sf.okapi.filters.xliff2.util | |
| net.sf.okapi.lib.verification |
| Modifier and Type | Method and Description |
|---|---|
List<Code> |
IssueAnnotation.getCodesAsList() |
| Modifier and Type | Method and Description |
|---|---|
static void |
GenericAnnotation.addAnnotation(Code code,
GenericAnnotation ann)
Adds an annotation to an inline code.
|
static void |
GenericAnnotations.addAnnotations(Code code,
GenericAnnotations newSet)
Adds a set of annotations to a given inline code.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IssueAnnotation.setCodes(List<Code> codes) |
| Constructor and Description |
|---|
IssueAnnotation(IssueType issueType,
String comment,
double severity,
String segId,
int srcStart,
int srcEnd,
int trgStart,
int trgEnd,
List<Code> codes) |
| Modifier and Type | Method and Description |
|---|---|
Code |
SubFilter.createRefCode() |
Code |
EventBuilder.getCurrentCode()
Get the current
Code. |
Code |
EventBuilder.peekMostRecentCode()
Peek at the most recently created
StartGroup. |
| Modifier and Type | Method and Description |
|---|---|
void |
EventBuilder.addToTextUnit(Code code)
|
void |
EventBuilder.addToTextUnit(Code code,
boolean endCodeNow)
|
void |
EventBuilder.addToTextUnit(Code code,
boolean endCodeNow,
List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders)
|
void |
EventBuilder.addToTextUnit(Code code,
boolean endCodeNow,
LocaleId locale,
List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders)
|
void |
EventBuilder.startCode(Code code) |
| Modifier and Type | Method and Description |
|---|---|
List<Code> |
XLIFFContent.getCodes() |
| Constructor and Description |
|---|
XLIFFContent(String codedText,
List<Code> codes,
XLIFFContent innerContent,
CharsetEncoder chsEnc,
List<GenericAnnotations> standoff,
ITSContent itsCont) |
| Modifier and Type | Field and Description |
|---|---|
protected List<Code> |
TextFragment.codes
List of the inline codes for this fragment.
|
| Modifier and Type | Method and Description |
|---|---|
Code |
TextFragment.append(TextFragment.TagType tagType,
String type,
InlineAnnotation annotation)
Appends an annotation-type code to this text.
|
Code |
TextFragment.append(TextFragment.TagType tagType,
String type,
String data)
Appends a new code to the text.
|
Code |
TextFragment.append(TextFragment.TagType tagType,
String type,
String data,
int id)
Appends a new code to the text, when the code has a defined identifier.
|
Code |
Code.clone()
Clone the code.
|
Code |
TextFragment.getCode(char indexAsChar)
Gets the code for a given index formatted as character (the second special
character in a marker in a coded text string).
|
Code |
TextFragment.getCode(Code fc)
Finds the first code with a given ID and tagType in this fragment, or null if there is no such
code.
|
Code |
TextFragment.getCode(int index)
Gets the code for a given index.
|
Code |
TextFragment.getLastCode()
Return the last code appended to this fragment, or null if there are no
codes.
|
| Modifier and Type | Method and Description |
|---|---|
List<Code> |
TextFragment.getClonedCodes()
Gets a list of the copy of the codes for this fragment.
|
List<Code> |
TextFragment.getCodes()
Gets the list of all codes for the fragment.
|
List<Code> |
TextFragment.getCodes(int start,
int end)
Gets a copy of the list of the codes that are within a given section of coded
text.
|
static List<Code> |
Code.stringToCodes(String data)
Helper method to convert a storage string into a list of codes.
|
| Modifier and Type | Method and Description |
|---|---|
TextFragment |
TextFragment.append(Code code)
Appends an existing code to this fragment.
|
int |
CodeComparatorOnType.compare(Code c1,
Code c2) |
int |
CodeComparatorOnTagType.compare(Code c1,
Code c2) |
int |
CodeComparatorOnIsolated.compare(Code c1,
Code c2) |
int |
CodeComparatorOnId.compare(Code c1,
Code c2) |
int |
CodeComparatorOnData.compare(Code c1,
Code c2) |
static void |
TextFragmentUtil.copyCodeMetadata(Code sc,
Code tc,
boolean forceCopy) |
static int |
TextFragmentUtil.findMatch(Code orig,
List<Code> codes,
int[] fromMatches,
Comparator<Code>... cmps)
Find a match in codes based on the list of
Comparator |
Code |
TextFragment.getCode(Code fc)
Finds the first code with a given ID and tagType in this fragment, or null if there is no such
code.
|
static boolean |
TextUnitUtil.hasExternalRefMarker(Code code) |
static boolean |
TextUnitUtil.hasSegEndMarker(Code code) |
static boolean |
TextUnitUtil.hasSegOrTpMarker(Code code) |
static boolean |
TextUnitUtil.hasSegStartMarker(Code code) |
static boolean |
TextUnitUtil.hasTpEndMarker(Code code) |
static boolean |
TextUnitUtil.hasTpStartMarker(Code code) |
void |
TextFragment.insert(int offset,
Code code)
Inserts a
Code object to this fragment. |
static boolean |
TextFragmentUtil.isLeadingCode(Code code,
TextFragment source)
Determine if the code is at the beginning of the
TextFragment without
intervening text. |
void |
TextFragment.removeCode(Code code)
Remove the
Code from thios fragment |
| Modifier and Type | Method and Description |
|---|---|
void |
TextFragment.append(CharSequence text,
Function<Code,Code> codeProcessor)
Appends a CharSequence.
|
void |
TextFragment.append(CharSequence text,
Function<Code,Code> codeProcessor)
Appends a CharSequence.
|
void |
TextFragment.append(String text,
Function<Code,Code> codeProcessor)
Appends a string.
|
void |
TextFragment.append(String text,
Function<Code,Code> codeProcessor)
Appends a string.
|
static String |
Code.codesToString(List<Code> list)
Helper method to convert a list of codes into a string.
|
static String |
Code.codesToString(List<Code> list,
boolean stripOuterData)
Helper method to convert a list of codes into a string.
|
static int |
TextFragmentUtil.findMatch(Code orig,
List<Code> codes,
int[] fromMatches,
Comparator<Code>... cmps)
Find a match in codes based on the list of
Comparator |
static int |
Code.getIndex(List<Code> codes,
boolean forClosing,
int id)
Gets the index in a list of codes for the id of a given code.
|
static boolean |
Code.sameCodes(List<Code> codes1,
List<Code> codes2)
Indicates if two codes-storing strings have the same codes or not.
|
static boolean |
Code.sameCodes(List<Code> codes1,
List<Code> codes2)
Indicates if two codes-storing strings have the same codes or not.
|
void |
TextFragment.setCodedText(String newCodedText,
List<Code> newCodes)
Sets the coded text of the fragment and its corresponding codes.
|
void |
TextFragment.setCodedText(String newCodedText,
List<Code> newCodes,
boolean allowCodeDeletion)
Sets the coded text of the fragment and its corresponding codes.
|
protected void |
TextFragment.setCodes(List<Code> codes) |
static String |
TextUnitUtil.toText(String text,
List<Code> codes)
Returns representation of a given coded text with code data enclosed in brackets.
|
| Constructor and Description |
|---|
TextFragment(String codedText,
List<Code> codes)
Creates a TextFragment with the content made of a given coded text and a list
of codes.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
GenericSkeletonWriter.expandCodeContent(Code code,
LocaleId locToUse,
EncoderContext context) |
protected boolean |
GenericSkeletonWriter.isCodeThatDisablesEncoding(Code code) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SimplifierRules.evaluate(String input,
Code code) |
| Constructor and Description |
|---|
SimplifierRules(String input,
Code code) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractMarkupFilter.addToTextUnit(Code code) |
protected void |
AbstractMarkupFilter.addToTextUnit(Code code,
boolean endCodeNow) |
protected void |
AbstractMarkupFilter.addToTextUnit(Code code,
boolean endCodeNow,
List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders) |
protected void |
AbstractMarkupFilter.addToTextUnit(Code code,
List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders) |
| Modifier and Type | Method and Description |
|---|---|
void |
ICMLContext.addCode(Code code) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
MarkdownSkeletonWriter.isCodeThatDisablesEncoding(Code code) |
| Modifier and Type | Method and Description |
|---|---|
ArrayList<Serializable> |
InlineCodeTransformer.codesToJAXB(String codedText,
List<Code> codes,
boolean targetIsRainbowkit) |
ArrayList<Serializable> |
InlineCodeTransformer.codesToJAXBForFilter(String codedText,
List<Code> codes) |
ArrayList<Serializable> |
InlineCodeTransformer.codesToJAXBForTKit(String codedText,
List<Code> codes) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
XLIFFSkeletonWriter.expandCodeContent(Code code,
LocaleId locToUse,
EncoderContext context) |
| Modifier and Type | Method and Description |
|---|---|
static void |
PropertiesMapper.setCodeProperties(Code okapiCode,
net.sf.okapi.lib.xliff2.core.CTag xliff2Ctag)
Transfers properties from the Okapi Core Code Tag to the XLIFF Toolkit Code
Tag
|
static void |
PropertiesMapper.setCodeProperties(Code okapiCode,
net.sf.okapi.lib.xliff2.core.MTag xliff2Mtag)
Transfers properties from the Okapi Core Code Tag to the XLIFF Toolkit Code
Tag
|
static void |
PropertiesMapper.setCodeProperties(net.sf.okapi.lib.xliff2.core.CTag xliff2Ctag,
Code okapiCode)
Transfers properties from the XLIFF Toolkit Code Tag to the Okapi Core Code
Tag.
|
static void |
PropertiesMapper.setCodeProperties(net.sf.okapi.lib.xliff2.core.MTag xliff2Mtag,
Code okapiCode) |
| Modifier and Type | Method and Description |
|---|---|
List<Code> |
Issue.getCodes() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractChecker.addAnnotation(TextContainer tc,
String segId,
IssueType issueType,
String comment,
int srcStart,
int srcEnd,
int trgStart,
int trgEnd,
double severity,
List<Code> codes) |
void |
AbstractChecker.addAnnotation(TextContainer tc,
String segId,
IssueType issueType,
String comment,
int srcStart,
int srcEnd,
int trgStart,
int trgEnd,
double severity,
List<Code> codes,
String itsType) |
void |
AbstractChecker.addAnnotationAndReportIssue(IssueType issueType,
ITextUnit tu,
TextContainer tc,
String segId,
String comment,
int srcStart,
int srcEnd,
int trgStart,
int trgEnd,
double severity,
String srcOri,
String trgOri,
List<Code> codes) |
void |
AbstractChecker.addAnnotationAndReportIssue(IssueType issueType,
ITextUnit tu,
TextContainer tc,
String segId,
String comment,
int srcStart,
int srcEnd,
int trgStart,
int trgEnd,
double severity,
String srcOri,
String trgOri,
List<Code> codes,
String itsType) |
void |
AbstractChecker.reportIssue(IssueType issueType,
ITextUnit tu,
String segId,
String message,
int srcStart,
int srcEnd,
int trgStart,
int trgEnd,
double severity,
String srcOri,
String trgOri,
List<Code> codes) |
void |
Issue.setCodes(List<Code> codes) |
Copyright © 2021. All rights reserved.