Uses of Class
net.sf.okapi.common.resource.TextPart
-
Packages that use TextPart Package Description net.sf.okapi.common Classes commonly used across the whole Okapi Framework.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. -
-
Uses of TextPart in net.sf.okapi.common
Fields in net.sf.okapi.common declared as TextPart Modifier and Type Field Description TextPart
Range. part
-
Uses of TextPart in net.sf.okapi.common.resource
Subclasses of TextPart in net.sf.okapi.common.resource Modifier and Type Class Description class
Segment
Implement a special content part that is a segment.Methods in net.sf.okapi.common.resource that return TextPart Modifier and Type Method Description TextPart
TextPart. clone()
Clone ofTextPart
TextPart
TextContainer. get(int index)
Gets the part (segment or non-segment) for a given part index.Methods in net.sf.okapi.common.resource that return types with arguments of type TextPart Modifier and Type Method Description List<TextPart>
Segments. getParts()
List<TextPart>
TextContainer. getParts()
List<TextPart>
AlignedPair. getSourceParts()
Gets the sourceTextPart
sList<TextPart>
AlignedPair. getTargetParts()
Gets the targetTextPart
sIterator<TextPart>
TextContainer. iterator()
Creates an iterator to loop through the parts (segments and non-segments) of this container.Methods in net.sf.okapi.common.resource with parameters of type TextPart Modifier and Type Method Description void
TextContainer. append(TextPart part)
Appends aTextPart
(segment or non-segment) at the end of this container.void
TextContainer. append(TextPart part, boolean collapseIfPreviousEmpty)
Appends aTextPart
(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)
void
Segments. validateTextPartId(TextPart part)
Checks if the id of a given TextPart is empty, null or a duplicate.Method parameters in net.sf.okapi.common.resource with type arguments of type TextPart Modifier and Type Method Description void
Segments. setParts(List<TextPart> parts)
Sets the list of TextPart objects in which the segments for this Segments object are located.Constructors in net.sf.okapi.common.resource with parameters of type TextPart Constructor Description TextContainer(TextPart... parts)
Creates a new TextContainer object with initialTextPart
s (segment or non-segment) appended.Constructor parameters in net.sf.okapi.common.resource with type arguments of type TextPart Constructor Description AlignedPair(List<TextPart> sourceParts, List<TextPart> targetParts, LocaleId localeId)
Creates an AlignedPair from source and targetTextPart
s -
Uses of TextPart in net.sf.okapi.filters.xliff2.util
Methods in net.sf.okapi.filters.xliff2.util with parameters of type TextPart Modifier and Type Method Description static void
PropertiesMapper. setPartProperties(TextPart okapiPart, Part xliffPart)
Transfers properties from the Okapi Core TextPart to the XLIFF Toolkit Partstatic void
PropertiesMapper. setPartProperties(Part xliffPart, TextPart okapiPart)
Transfers properties from the XLIFF Toolkit Part to the Okapi Core TextPart -
Uses of TextPart in net.sf.okapi.lib.merge.merge
Methods in net.sf.okapi.lib.merge.merge with type parameters of type TextPart Modifier and Type Method Description <T extends TextPart>
booleanTextUnitMerger. hasMeta(T p)
Method parameters in net.sf.okapi.lib.merge.merge with type arguments of type TextPart Modifier and Type Method Description default void
ITextUnitMerger. copyTextPartMetadata(List<TextPart> from, List<TextPart> to, String id)
void
TextUnitMerger. copyTextPartMetadata(List<TextPart> from, List<TextPart> to, String id)
-
Uses of TextPart in net.sf.okapi.steps.common
Methods in net.sf.okapi.steps.common with parameters of type TextPart Modifier and Type Method Description boolean
ExtractionVerificationUtil. compareTextParts(TextPart tp1, TextPart tp2)
Compares two TextPart.
-