public class FilteringNodeState extends AbstractDecoratedNodeState
AbstractDecoratedNodeState.exists()
AbstractDecoratedNodeState.hasChildNode(String)
AbstractDecoratedNodeState.getChildNodeEntries()
:childOrder
in the following two methods:
Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.String> |
ALL |
static java.util.Set<java.lang.String> |
NONE |
Modifier and Type | Method and Description |
---|---|
static @NotNull NodeState |
wrap(@NotNull java.lang.String path,
@NotNull NodeState delegate,
@Nullable java.util.Set<java.lang.String> includePaths,
@Nullable java.util.Set<java.lang.String> excludePaths,
@Nullable java.util.Set<java.lang.String> fragmentPaths,
@Nullable java.util.Set<java.lang.String> excludedFragments)
Factory method that conditionally decorates the given node-state
iff the node-state is (a) hidden itself or (b) has hidden descendants.
|
builder, compareAgainstBaseState, equals, exists, getChildNode, getChildNodeEntries, getDelegate, getProperties, getProperty, hasChildNode
checkValidName, compareAgainstBaseState, comparePropertiesAgainstBaseState, equals, getBoolean, getBoolean, getChildNodeCount, getChildNodeNames, getLong, getLong, getName, getName, getNames, getNames, getPropertyCount, getString, getString, getStrings, getStrings, hashCode, hasProperty, isValidName, toString, toString
public static final java.util.Set<java.lang.String> ALL
public static final java.util.Set<java.lang.String> NONE
@NotNull public static @NotNull NodeState wrap(@NotNull @NotNull java.lang.String path, @NotNull @NotNull NodeState delegate, @Nullable @Nullable java.util.Set<java.lang.String> includePaths, @Nullable @Nullable java.util.Set<java.lang.String> excludePaths, @Nullable @Nullable java.util.Set<java.lang.String> fragmentPaths, @Nullable @Nullable java.util.Set<java.lang.String> excludedFragments)
path
- The path where the node-state should be assumed to be located.delegate
- The node-state to decorate.includePaths
- A Set of paths that should be visible. Defaults to ["/"] if null
.excludePaths
- A Set of paths that should be hidden. Empty if null
.fragmentPaths
- A Set of paths that should support the fragments (see below). Empty if null
.excludedFragments
- A Set of name fragments that should be hidden. Empty if null
.Copyright © 2010 - 2020 Adobe. All Rights Reserved