public abstract static class XmlCursor.XmlBookmark extends Object
Modifier and Type | Field and Description |
---|---|
XmlCursor.XmlMark |
_currentMark
The mark is set by the host document; it is capable of
returning an XmlCursor implementation at the location of
the bookmark.
|
Reference |
_ref
If non-null, the ref is used by the host document
to maintain a reference to the bookmark.
|
Constructor and Description |
---|
XmlBookmark()
Constructs a strongly-referenced bookmark.
|
XmlBookmark(boolean weak)
Constructs a bookmark.
|
Modifier and Type | Method and Description |
---|---|
XmlCursor |
createCursor()
Call the createCursor method to create a new cursor which is
positioned at the same splace as the bookmark.
|
Object |
getKey()
The default key for bookmarks is the class which implements
them.
|
XmlCursor |
toBookmark(XmlCursor c) |
public XmlCursor.XmlMark _currentMark
public final Reference _ref
public XmlBookmark()
public XmlBookmark(boolean weak)
weak
- true if the document's reference to the bookmark should be a WeakReferencepublic final XmlCursor createCursor()
public final XmlCursor toBookmark(XmlCursor c)
c
- the cursor to be movedpublic Object getKey()