|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlbeans.XmlCursor.XmlBookmark
Subclasses of XmlBookmark can be used to annotate an XML document. This class is abstract to prevent parties from inadvertently interfering with each others' bookmarks without explicitly sharing a bookmark class.
Field Summary | |
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 Summary | |
XmlCursor.XmlBookmark()
Constructs a strongly-referenced bookmark. |
|
XmlCursor.XmlBookmark(boolean weak)
Constructs a bookmark. |
Method Summary | |
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)
Moves the given cursor to this bookmark, and returns it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public XmlCursor.XmlMark _currentMark
public final Reference _ref
Constructor Detail |
public XmlCursor.XmlBookmark()
public XmlCursor.XmlBookmark(boolean weak)
weak
- true if the document's reference to the bookmark should be a WeakReferenceMethod Detail |
public final XmlCursor createCursor()
public final XmlCursor toBookmark(XmlCursor c)
public Object getKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |