- <init>
Creates a TextFragment with the content of a given TextFragment.
- getCodedText
Gets the portion of coded text for a given section of the coded text.
- setCodedText
Sets the coded text of the fragment, using its the existing codes. The coded
text must be valid for
- append
- getCodes
Gets a copy of the list of the codes that are within a given section of coded
text.
- hasText
Indicates if this fragment contains at least one character (inline codes,
segment markers, and annot
- isEmpty
Indicates if the fragment is empty (no text and no codes).
- isMarker
Helper method that checks if a given character is an inline code marker.
- hasCode
Indicates if the fragment contains at least one code.
- toIndex
Helper method to convert the index-coded-as-character part of a marker into its
index value.
- toText
Returns the content of this fragment, including the original codes whenever
possible. To get the cod
- getText
Helper method that will take a coded string and return a text only version.