Package org.wildfly.discovery
Interface FilterSpec.Visitor<P,R,E extends Exception>
- Type Parameters:
P- the type of parameter to pass to the visit functionR- the return type of the visit function
- Enclosing class:
- FilterSpec
public static interface FilterSpec.Visitor<P,R,E extends Exception>
A visitor for filter spec traversal.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Rhandle(AllFilterSpec filterSpec, P parameter) Handle a match-all filter specification type.default Rhandle(AnyFilterSpec filterSpec, P parameter) Handle a match-any filter specification type.default Rhandle(BooleanFilterSpec filterSpec, P parameter) Handle a boolean filter specification type.default Rhandle(EqualsFilterSpec filterSpec, P parameter) Handle an equality filter specification type.default Rhandle(FilterSpec filterSpec, P parameter) Handle any otherwise-unmatched filter specification type.default Rhandle(GreaterEqualFilterSpec filterSpec, P parameter) Handle a greater-than-or-equal-to filter specification type.default Rhandle(HasFilterSpec filterSpec, P parameter) Handle a presence filter specification type.default Rhandle(LessEqualFilterSpec filterSpec, P parameter) Handle a less-than-or-equal-to filter specification type.default Rhandle(NotFilterSpec filterSpec, P parameter) Handle an inverted ("not") filter specification type.default Rhandle(SubstringFilterSpec filterSpec, P parameter) Handle a substring equality filter specification type.
-
Method Details
-
handle
Handle any otherwise-unmatched filter specification type. The default implementation returnsnull.- Parameters:
filterSpec- the filter specification (notnull)parameter- the parameter passed in to theFilterSpec.accept(Visitor<P, R, E>, P)method- Returns:
- the value to return from the
FilterSpec.accept(Visitor<P, R, E>, P)method - Throws:
E- to throw this exception from theFilterSpec.accept(Visitor<P, R, E>, P)method
-
handle
Handle an equality filter specification type. The default implementation delegates tohandle(FilterSpec,P).- Parameters:
filterSpec- the filter specification (notnull)parameter- the parameter passed in to theFilterSpec.accept(Visitor<P, R, E>, P)method- Returns:
- the value to return from the
FilterSpec.accept(Visitor<P, R, E>, P)method - Throws:
E- to throw this exception from theFilterSpec.accept(Visitor<P, R, E>, P)method
-
handle
Handle a greater-than-or-equal-to filter specification type. The default implementation delegates tohandle(FilterSpec,P).- Parameters:
filterSpec- the filter specification (notnull)parameter- the parameter passed in to theFilterSpec.accept(Visitor<P, R, E>, P)method- Returns:
- the value to return from the
FilterSpec.accept(Visitor<P, R, E>, P)method - Throws:
E- to throw this exception from theFilterSpec.accept(Visitor<P, R, E>, P)method
-
handle
Handle a presence filter specification type. The default implementation delegates tohandle(FilterSpec,P).- Parameters:
filterSpec- the filter specification (notnull)parameter- the parameter passed in to theFilterSpec.accept(Visitor<P, R, E>, P)method- Returns:
- the value to return from the
FilterSpec.accept(Visitor<P, R, E>, P)method - Throws:
E- to throw this exception from theFilterSpec.accept(Visitor<P, R, E>, P)method
-
handle
Handle a less-than-or-equal-to filter specification type. The default implementation delegates tohandle(FilterSpec,P).- Parameters:
filterSpec- the filter specification (notnull)parameter- the parameter passed in to theFilterSpec.accept(Visitor<P, R, E>, P)method- Returns:
- the value to return from the
FilterSpec.accept(Visitor<P, R, E>, P)method - Throws:
E- to throw this exception from theFilterSpec.accept(Visitor<P, R, E>, P)method
-
handle
Handle a match-any filter specification type. The default implementation delegates tohandle(FilterSpec,P).- Parameters:
filterSpec- the filter specification (notnull)parameter- the parameter passed in to theFilterSpec.accept(Visitor<P, R, E>, P)method- Returns:
- the value to return from the
FilterSpec.accept(Visitor<P, R, E>, P)method - Throws:
E- to throw this exception from theFilterSpec.accept(Visitor<P, R, E>, P)method
-
handle
Handle a match-all filter specification type. The default implementation delegates tohandle(FilterSpec,P).- Parameters:
filterSpec- the filter specification (notnull)parameter- the parameter passed in to theFilterSpec.accept(Visitor<P, R, E>, P)method- Returns:
- the value to return from the
FilterSpec.accept(Visitor<P, R, E>, P)method - Throws:
E- to throw this exception from theFilterSpec.accept(Visitor<P, R, E>, P)method
-
handle
Handle an inverted ("not") filter specification type. The default implementation delegates tohandle(FilterSpec,P).- Parameters:
filterSpec- the filter specification (notnull)parameter- the parameter passed in to theFilterSpec.accept(Visitor<P, R, E>, P)method- Returns:
- the value to return from the
FilterSpec.accept(Visitor<P, R, E>, P)method - Throws:
E- to throw this exception from theFilterSpec.accept(Visitor<P, R, E>, P)method
-
handle
Handle a substring equality filter specification type. The default implementation delegates tohandle(FilterSpec,P).- Parameters:
filterSpec- the filter specification (notnull)parameter- the parameter passed in to theFilterSpec.accept(Visitor<P, R, E>, P)method- Returns:
- the value to return from the
FilterSpec.accept(Visitor<P, R, E>, P)method - Throws:
E- to throw this exception from theFilterSpec.accept(Visitor<P, R, E>, P)method
-
handle
Handle a boolean filter specification type. The default implementation delegates tohandle(FilterSpec,P).- Parameters:
filterSpec- the filter specification (notnull)parameter- the parameter passed in to theFilterSpec.accept(Visitor<P, R, E>, P)method- Returns:
- the value to return from the
FilterSpec.accept(Visitor<P, R, E>, P)method - Throws:
E- to throw this exception from theFilterSpec.accept(Visitor<P, R, E>, P)method
-