public enum CycleProtection extends Enum<CycleProtection>
| Enum Constant and Description |
|---|
Off
We do nothing about cycles, every node is printed as-is.
|
On
Cycles are detected according to the
IdentityScheme and the tree is clipped when a cycle occurs on the
current path in the tree. |
PruneRepeating
In this mode, any repeating node will be clipped, even if the repeat occurrence is in a parallel
subtree.
|
| Modifier and Type | Method and Description |
|---|---|
static CycleProtection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CycleProtection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CycleProtection Off
public static final CycleProtection On
IdentityScheme and the tree is clipped when a cycle occurs on the
current path in the tree. In other words, when a node is its own child node at some point.
When a reoccurring node is clipped in this mode, the node text is still printed, but not its annotation
or child nodes, and a callout <CYCLE> is appended to the node text.
public static final CycleProtection PruneRepeating
IdentityScheme. This is useful if it should be
avoided to show repeating information.
When a reoccurring node is clipped in this mode, the node text is still printed, but not its annotation
or child nodes, and a callout <shown before> is appended to the node text.
Cycles of the form described for On can still occur in this mode, and will be flagged
accordingly.
public static CycleProtection 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 nullpublic static CycleProtection[] values()
for (CycleProtection c : CycleProtection.values()) System.out.println(c);