@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface TextContext
Modifier and Type | Field and Description |
---|---|
static int |
EDITABLE
The returned text is in editable context.
|
static int |
EDITABLE_IN_FILTERED_CONDITIONAL_PROFILING
The returned text is in editable context but a profiling condition is applied and filters the
node when the output will be published..
|
static int |
NOT_EDITABLE_IN_DELETE_CHANGE_TRACKING
The returned text is in delete change tracking context.
|
static int |
NOT_EDITABLE_IN_READ_ONLY
The returned text is in an entity or content reference.
|
Modifier and Type | Method and Description |
---|---|
int |
getEditableState()
Check if we can edit at the current iterator offset.
|
java.lang.CharSequence |
getText()
Gets the current text from the context.
|
int |
getTextEndOffset()
Gets the end offset of the returned text.
|
int |
getTextStartOffset()
Gets the start offset of the returned text.
|
boolean |
inVisibleContent()
Check if the range is in visible content.
|
void |
replaceText(java.lang.CharSequence newTextContent)
Replaces the current context text with the new text content.
|
static final int EDITABLE
static final int EDITABLE_IN_FILTERED_CONDITIONAL_PROFILING
static final int NOT_EDITABLE_IN_DELETE_CHANGE_TRACKING
static final int NOT_EDITABLE_IN_READ_ONLY
java.lang.CharSequence getText()
int getTextStartOffset()
int getTextEndOffset()
int getEditableState()
true
if we can edit at the current iterator offset or false
if we are in read-only content (entities, content references or delete change tracking).boolean inVisibleContent()
true
if the range is in visible content.void replaceText(java.lang.CharSequence newTextContent)
newTextContent
- The new text content.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.