public class AnnotatedSpan extends Object
| Modifier and Type | Field and Description |
|---|---|
InlineAnnotation |
annotation
The annotation itself (can be null).
|
Range |
range
The start and end positions of the span of text in the original
coded text.
|
TextFragment |
span
Copy of the fragment of text to which the annotation is applied.
|
String |
type
Type of annotation.
|
| Constructor and Description |
|---|
AnnotatedSpan(String type,
InlineAnnotation annotation,
TextFragment span,
int start,
int end)
Creates a new AnnotatedSpan object with a give type of annotation,
its annotation and its fragment of text.
|
public String type
public InlineAnnotation annotation
public TextFragment span
public Range range
public AnnotatedSpan(String type, InlineAnnotation annotation, TextFragment span, int start, int end)
type - the type of the annotation for this span of text.annotation - the annotation associated with this span of text.span - the span of text.start - the start position of the span of text in the original
coded text.end - the end position of the span of text in the original
coded text.Copyright © 2022. All rights reserved.