public static enum DomWalker.Visitor.VisitStatus extends Enum<DomWalker.Visitor.VisitStatus>
visit(Gadget, Node) method, signaling:
BYPASS = Visitor doesn't care about the node.
MODIFY = Visitor has modified the node.
RESERVE_NODE = Visitor reserves exactly the node passed. No other
Visitor will visit the node.
RESERVE_TREE = Visitor reserves the node passed and all its descendants
No other Visitor will visit them.
Visitors are expected to be well-behaved in that they do not
modify unreserved nodes: that is, in revisit(...) they do not access
adjacent, parent, etc. nodes and modify them. visit(...) may return
MODIFY to indicate a modification of the given node.
Other append and delete operations are acceptable
but only in revisit(). Reservations are supported in order to support
"batched" lookups relating to a similar set of data retrieved from a
backend.| Enum Constant and Description |
|---|
BYPASS |
MODIFY |
RESERVE_NODE |
RESERVE_TREE |
| Modifier and Type | Method and Description |
|---|---|
static DomWalker.Visitor.VisitStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DomWalker.Visitor.VisitStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DomWalker.Visitor.VisitStatus BYPASS
public static final DomWalker.Visitor.VisitStatus MODIFY
public static final DomWalker.Visitor.VisitStatus RESERVE_NODE
public static final DomWalker.Visitor.VisitStatus RESERVE_TREE
public static DomWalker.Visitor.VisitStatus[] values()
for (DomWalker.Visitor.VisitStatus c : DomWalker.Visitor.VisitStatus.values()) System.out.println(c);
public static DomWalker.Visitor.VisitStatus 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 © 2007-2012. All Rights Reserved.