Interface EventFilter
-
- All Known Implementing Classes:
ACFilter
,AddSubtreeFilter
,ConstantFilter
,DeleteSubtreeFilter
,EventTypeFilter
,GlobbingPathFilter
,MoveFilter
,UniversalFilter
,VisibleFilter
public interface EventFilter
Filter for determining what changes to report the the event listener.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable EventFilter
create(java.lang.String name, NodeState before, NodeState after)
Factory for creating a filter instance for the given child nodeboolean
includeAdd(java.lang.String name, NodeState after)
Include an added nodeboolean
includeAdd(PropertyState after)
Include an added propertyboolean
includeChange(PropertyState before, PropertyState after)
Include a changed propertyboolean
includeDelete(java.lang.String name, NodeState before)
Include a deleted nodeboolean
includeDelete(PropertyState before)
Include a deleted propertyboolean
includeMove(java.lang.String sourcePath, java.lang.String name, NodeState moved)
Include a moved nodeboolean
includeReorder(java.lang.String destName, java.lang.String name, NodeState reordered)
Include a reordered node
-
-
-
Method Detail
-
includeAdd
boolean includeAdd(PropertyState after)
Include an added property- Parameters:
after
- added property- Returns:
true
if the property should be included
-
includeChange
boolean includeChange(PropertyState before, PropertyState after)
Include a changed property- Parameters:
before
- property before the changeafter
- property after the change- Returns:
true
if the property should be included
-
includeDelete
boolean includeDelete(PropertyState before)
Include a deleted property- Parameters:
before
- deleted property- Returns:
true
if the property should be included
-
includeAdd
boolean includeAdd(java.lang.String name, NodeState after)
Include an added node- Parameters:
name
- name of the nodeafter
- added node- Returns:
true
if the node should be included
-
includeDelete
boolean includeDelete(java.lang.String name, NodeState before)
Include a deleted node- Parameters:
name
- name of the nodebefore
- deleted node- Returns:
true
if the node should be included
-
includeMove
boolean includeMove(java.lang.String sourcePath, java.lang.String name, NodeState moved)
Include a moved node- Parameters:
sourcePath
- source path of the move operationname
- name of the moved nodemoved
- the moved node- Returns:
true
if the node should be included
-
includeReorder
boolean includeReorder(java.lang.String destName, java.lang.String name, NodeState reordered)
Include a reordered node- Parameters:
destName
- name of theorderBefore()
destination nodename
- name of the reordered nodereordered
- the reordered node- Returns:
true
if the node should be included
-
create
@Nullable @Nullable EventFilter create(java.lang.String name, NodeState before, NodeState after)
Factory for creating a filter instance for the given child node- Parameters:
name
- name of the child nodebefore
- before state of the child nodeafter
- after state of the child node- Returns:
- filter instance for filtering the child node or
null
to exclude the sub tree rooted at this child node.
-
-