Class FilteringNodeState

    • Field Detail

      • ALL

        public static final java.util.Set<java.lang.String> ALL
      • NONE

        public static final java.util.Set<java.lang.String> NONE
    • Method Detail

      • wrap

        @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)
        Factory method that conditionally decorates the given node-state iff the node-state is (a) hidden itself or (b) has hidden descendants.
        Parameters:
        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.
        Returns:
        The decorated node-state if required, the original node-state if decoration is unnecessary.