public abstract static class XmlCursor.XmlBookmark
extends java.lang.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.
|
java.lang.ref.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.
|
java.lang.Object |
getKey()
The default key for bookmarks is the class which implements
them.
|
XmlCursor |
toBookmark(XmlCursor c)
Moves the given cursor to this bookmark, and returns it.
|
public XmlCursor.XmlMark _currentMark
public final java.lang.ref.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)
public java.lang.Object getKey()