Uses of Class
net.sf.okapi.lib.xliff2.core.Fragment
-
Packages that use Fragment 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 -
-
Uses of Fragment in net.sf.okapi.lib.xliff2.core
Methods in net.sf.okapi.lib.xliff2.core that return Fragment Modifier and Type Method Description FragmentFragment. append(char ch)Appends a character at the end of this fragment.FragmentFragment. append(CharSequence plainText)Appends a plain text string to this fragment.FragmentFragment. append(CharSequence plainText, int start, int end)Appends a sub-sequence of a given plain text string to this fragment.FragmentFragment. append(Fragment fragment)Appends a fragment to this fragment.FragmentFragment. delete(int start, int end)Deletes a section of this fragment (including any protected content within the section).FragmentPart. getSource()Gets the source fragment for this part.FragmentPart. getTarget()Gets the target fragment for this part.FragmentPart. getTarget(Part.GetTarget creationOption)Gets the target fragment for this part, and possibly create it if it does not exists yet.FragmentFragment. insert(CharSequence plainText, int offset)Inserts a plain text at a given position.FragmentFragment. remove(Tag tag)Removes a tag from this fragment (including if the tag is in a protected content).FragmentPart. setSource(String plainText)Sets the source for this part as a new fragment made of a plain text string.FragmentPart. setSource(Fragment fragment)Sets the fragment of the source for this part.FragmentPart. setTarget(String plainText)Sets the target for this part as a new fragment made of a plain text string.FragmentPart. setTarget(Fragment fragment)Sets the fragment of the target for this part.Methods in net.sf.okapi.lib.xliff2.core with parameters of type Fragment Modifier and Type Method Description FragmentFragment. append(Fragment fragment)Appends a fragment to this fragment.FragmentPart. setSource(Fragment fragment)Sets the fragment of the source for this part.FragmentPart. setTarget(Fragment fragment)Sets the fragment of the target for this part.Constructors in net.sf.okapi.lib.xliff2.core with parameters of type Fragment Constructor Description Fragment(Fragment original, Store store, boolean target)Copy constructor. -
Uses of Fragment in net.sf.okapi.lib.xliff2.its
Methods in net.sf.okapi.lib.xliff2.its with parameters of type Fragment Modifier and Type Method Description static IITSItemITSWriter. annotate(Fragment fragment, int start, int end, IITSItem item)Annotates a given fragment with an ITS item.static MTagITSWriter. annotate(Fragment fragment, int start, int end, IITSItem item, String matchingType)Tries to reuse an existing annotation to add an ITS item. -
Uses of Fragment in net.sf.okapi.lib.xliff2.matches
Methods in net.sf.okapi.lib.xliff2.matches that return Fragment Modifier and Type Method Description FragmentMatch. getSource()Gets the source fragment for this match.FragmentMatch. getTarget()Gets the target fragment for this match.Methods in net.sf.okapi.lib.xliff2.matches with parameters of type Fragment Modifier and Type Method Description static MatchMatch. annotate(Fragment fragment, int start, int end, Match match)Tries to reuse an existingmtc:matchannotation to add a given match.voidMatch. setSource(Fragment source)Sets the source fragment for this match.voidMatch. setTarget(Fragment target)Sets the target fragment for this match. -
Uses of Fragment in net.sf.okapi.lib.xliff2.renderer
Methods in net.sf.okapi.lib.xliff2.renderer with parameters of type Fragment Modifier and Type Method Description voidIFragmentRenderer. set(Fragment fragment, Stack<NSContext> nsStack)Sets the fragment to iterate through and the namespace context.voidXLIFFFragmentRenderer. set(Fragment fragment, Stack<NSContext> nsStack)Constructors in net.sf.okapi.lib.xliff2.renderer with parameters of type Fragment Constructor Description XLIFFFragmentRenderer(Fragment fragment, Stack<NSContext> nsStack)Creates a newXLIFFFragmentRendererobject for a given fragment and namespace context.
-