Class RelativePathSelector
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.observation.filter.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.
-
-
Constructor Summary
Constructors Constructor Description RelativePathSelector(@NotNull java.lang.String path, @NotNull UniversalFilter.Selector selector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull NodeState
select(@NotNull UniversalFilter filter, @NotNull java.lang.String name, @NotNull NodeState before, @NotNull NodeState after)
Map a node event.@NotNull NodeState
select(@NotNull UniversalFilter filter, @Nullable PropertyState before, @Nullable PropertyState after)
Map a property event.
-
-
-
Constructor Detail
-
RelativePathSelector
public RelativePathSelector(@NotNull @NotNull java.lang.String path, @NotNull @NotNull UniversalFilter.Selector selector)
- Parameters:
path
- path to select fromselector
- selector to basepath
upon
-
-
Method Detail
-
select
@NotNull public @NotNull NodeState select(@NotNull @NotNull UniversalFilter filter, @Nullable @Nullable PropertyState before, @Nullable @Nullable PropertyState after)
Description copied from interface:UniversalFilter.Selector
Map a property event.- Specified by:
select
in interfaceUniversalFilter.Selector
- Parameters:
filter
- filter instance on which respective call back occurred.before
- before state ornull
forEventFilter.includeAdd(PropertyState)
after
- after state ornull
forEventFilter.includeDelete(PropertyState)
- Returns:
- a
NodeState
instance for basing the filtering criterion (predicate) upon
-
select
@NotNull public @NotNull NodeState select(@NotNull @NotNull UniversalFilter filter, @NotNull @NotNull java.lang.String name, @NotNull @NotNull NodeState before, @NotNull @NotNull NodeState after)
Description copied from interface:UniversalFilter.Selector
Map a node event.- Specified by:
select
in interfaceUniversalFilter.Selector
- Parameters:
filter
- filter instance on which respective call back occurred.name
- name of the child node statebefore
- before state ornull
forEventFilter.includeAdd(String, NodeState)
after
- after state ornull
forEventFilter.includeDelete(String, NodeState)
- Returns:
- a NodeState instance for basing the filtering criterion (predicate) upon
-
-