public class FilteringNodeState extends AbstractDecoratedNodeState
AbstractDecoratedNodeState.exists()
AbstractDecoratedNodeState.hasChildNode(String)
AbstractDecoratedNodeState.getChildNodeEntries()
false
, then the
implementation will hide the jcr:uuid
property on
nt:frozenNode
nodes (see also OAK-9134).
: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 |
delegate
Modifier and Type | Method and Description |
---|---|
protected @NotNull NodeState |
decorateChild(@NotNull java.lang.String name,
@NotNull NodeState child) |
protected PropertyState |
decorateProperty(@NotNull PropertyState propertyState) |
protected boolean |
hideChild(@NotNull java.lang.String name,
@NotNull NodeState delegateChild) |
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,
boolean referenceableFrozenNodes)
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, fixChildOrderPropertyState, getChildNode, getChildNodeEntries, getDelegate, getNewPropertyStates, getProperties, getProperty, hasChildNode, hideProperty
checkValidName, compareAgainstBaseState, comparePropertiesAgainstBaseState, count, 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, boolean referenceableFrozenNodes)
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
.referenceableFrozenNodes
- Whether nt:frozenNode are referenceable on the target.@NotNull protected @NotNull NodeState decorateChild(@NotNull @NotNull java.lang.String name, @NotNull @NotNull NodeState child)
decorateChild
in class AbstractDecoratedNodeState
protected boolean hideChild(@NotNull @NotNull java.lang.String name, @NotNull @NotNull NodeState delegateChild)
hideChild
in class AbstractDecoratedNodeState
protected PropertyState decorateProperty(@NotNull @NotNull PropertyState propertyState)
decorateProperty
in class AbstractDecoratedNodeState
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.