public class Segment extends TextPart
TextPart with an identifier.| Modifier and Type | Field and Description |
|---|---|
static String |
REF_MARKER |
annotations, id, originalId, properties, text| Constructor and Description |
|---|
Segment()
Creates an empty Segment object with a null identifier.
|
Segment(String id)
Creates an empty Segment object with a given identifier.
|
Segment(String id,
TextFragment text)
Creates a Segment object with a given identifier and a given
text fragment.
|
| Modifier and Type | Method and Description |
|---|---|
Segment |
clone()
Clone of
TextPart |
boolean |
isSegment()
Indicates if this part is a
Segment. |
static String |
makeRefMarker(String segId) |
forceId, getAnnotation, getAnnotations, getContent, getId, getProperty, getPropertyNames, hasProperty, removeProperty, setAnnotation, setContent, setProperty, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopycopypublic static final String REF_MARKER
public Segment()
public Segment(String id)
id - identifier for the new segment (Can be null).public Segment(String id, TextFragment text)
id - identifier for the new segment (Can be null).text - text fragment for the new segment.Copyright © 2021. All rights reserved.