Class RelativePathSelector

  • All Implemented Interfaces:
    UniversalFilter.Selector

    public class RelativePathSelector
    extends java.lang.Object
    implements UniversalFilter.Selector
    A selector for selecting a node at a relative path from the node selected by an initial selector.

    Note: selecting the parent of the root node will return a non existing NodeState instance.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull org.apache.jackrabbit.oak.spi.state.NodeState select​(@NotNull UniversalFilter filter, @NotNull java.lang.String name, @NotNull org.apache.jackrabbit.oak.spi.state.NodeState before, @NotNull org.apache.jackrabbit.oak.spi.state.NodeState after)
      Map a node event.
      @NotNull org.apache.jackrabbit.oak.spi.state.NodeState select​(@NotNull UniversalFilter filter, @Nullable org.apache.jackrabbit.oak.api.PropertyState before, @Nullable org.apache.jackrabbit.oak.api.PropertyState after)
      Map a property event.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RelativePathSelector

        public RelativePathSelector​(@NotNull
                                    @NotNull java.lang.String path,
                                    @NotNull
                                    @NotNull UniversalFilter.Selector selector)
        Parameters:
        path - path to select from
        selector - selector to base path upon
    • Method Detail

      • select

        @NotNull
        public @NotNull org.apache.jackrabbit.oak.spi.state.NodeState select​(@NotNull
                                                                             @NotNull UniversalFilter filter,
                                                                             @NotNull
                                                                             @NotNull java.lang.String name,
                                                                             @NotNull
                                                                             @NotNull org.apache.jackrabbit.oak.spi.state.NodeState before,
                                                                             @NotNull
                                                                             @NotNull org.apache.jackrabbit.oak.spi.state.NodeState after)
        Description copied from interface: UniversalFilter.Selector
        Map a node event.
        Specified by:
        select in interface UniversalFilter.Selector
        Parameters:
        filter - filter instance on which respective call back occurred.
        name - name of the child node state
        before - before state or null for EventFilter.includeAdd(String, NodeState)
        after - after state or null for EventFilter.includeDelete(String, NodeState)
        Returns:
        a NodeState instance for basing the filtering criterion (predicate) upon