public static enum SMInputCursor.Tracking extends Enum<SMInputCursor.Tracking>
Enum Constant and Description |
---|
ALL_SIBLINGS
Value that indicates full element state information should
be tracked for ALL elements (including ones not visible to the
caller via
SMInputCursor.getNext() method). |
NONE
Value that indicates that no element state information should
be tracked.
|
PARENTS
Value that indicates that element basic state information should
be tracked, including linkage to the parent element (but only
if the parent cursor was tracking elements).
|
VISIBLE_SIBLINGS
Value that indicates full element state information should
be tracked for all "visible" elements: visible meaning that element
node was accepted by the filter this cursor uses.
|
Modifier and Type | Method and Description |
---|---|
static SMInputCursor.Tracking |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SMInputCursor.Tracking[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SMInputCursor.Tracking NONE
SMInputCursor.getTrackedElement()
will always
return null for this element, as well as that if immediate child
cursors do have tracking enabled, element states it saves have
no parent element information available.public static final SMInputCursor.Tracking PARENTS
SMInputCursor.getTrackedElement()
will return non-null
values, as soon as this cursor has been advanced over its first
element node. However, element will return null from its
SMElementInfo.getPreviousSibling()
since sibling information
is not tracked.public static final SMInputCursor.Tracking VISIBLE_SIBLINGS
SMInputCursor.getTrackedElement()
will return non-null
values, as soon as this cursor has been advanced over its first
element node, and that element will return non-null from its
SMElementInfo.getPreviousSibling()
unless it's the first element
iterated by this cursor.public static final SMInputCursor.Tracking ALL_SIBLINGS
SMInputCursor.getNext()
method).
This means that SMInputCursor.getTrackedElement()
will return non-null
values, as soon as this cursor has been advanced over its first
element node, and that element will return non-null from its
SMElementInfo.getPreviousSibling()
unless it's the first element
iterated by this cursor.public static SMInputCursor.Tracking[] values()
for (SMInputCursor.Tracking c : SMInputCursor.Tracking.values()) System.out.println(c);
public static SMInputCursor.Tracking valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2013 FasterXML. All Rights Reserved.