|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OffsetInformation
Information about the node which contains the offset.
If the offset is on a marker character the returned result will also contain the node which contains the range indicated by the marker.
The author content contains the entire XML document text and special marker characters.
Each author node points in the content to the start and end marker characters which are used to
delimit it's range.
The start and end offsets pointed to by the AuthorNode can be retrieved using the
AuthorNode.getStartOffset() and AuthorNode.getEndOffset()
The image represents part of the document content and red markers represent special control
characters which represent the node ranges.
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
Field Summary | |
---|---|
static int |
IN_CONTENT
The offset is in character content. |
static int |
ON_END_MARKER
The offset is on the marker representing the end range of a node. |
static int |
ON_START_MARKER
The offset is on the marker representing the start range of a node. |
Method Summary | |
---|---|
AuthorNode |
getNodeForMarkerOffset()
If the offset is on a marker character this method returns the node which contains the marker. |
AuthorNode |
getNodeForOffset()
Returns the parent node for the given offset. |
int |
getPositionType()
Get the type of position the offset has. |
Field Detail |
---|
static final int IN_CONTENT
static final int ON_START_MARKER
static final int ON_END_MARKER
Method Detail |
---|
AuthorNode getNodeForMarkerOffset()
AuthorNode getNodeForOffset()
null
.
null
.int getPositionType()
IN_CONTENT
or ON_START_MARKER
or ON_END_MARKER
|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |