/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { Filter } from "../../types/senselogic/sitevision/api/base/Filter"; import type { Builder } from "../../types/senselogic/sitevision/api/base/Builder"; /** * Builds a compound filter that requires that any of the added filters matches. * *
* How a compound OR filter works: If filter A and filter B is added to this builder, * then the accept method of the built filter will return the result of the logical boolean evaluation of: A.accept OR B.accept. *
*CompoundOrFilterBuilder in Velocity.
*
* An instance of the Sitevision class implementing this interface can be obtained via
* {@link senselogic.sitevision.api.node.NodeFilterUtil#getCompoundOrFilterBuilder()}.
* See {@link senselogic.sitevision.api.node.NodeFilterUtil} for how to obtain an instance of the NodeFilterUtil interface.
*
* Tip! For best performance, it's likely a good idea to add the "cheapest" filter first! *
* @param aFilter the node filter to add,null will be ignored
* @return this builder
*/
addFilter(aFilter: Filter): CompoundOrFilterBuilder;
/**
* Removes all previously added filters.
* @return this builder
*/
clearFilters(): CompoundOrFilterBuilder;
/**
* Creates a node filter instance that will perform the OR operation for all currently specified filters.
* @return a node filter
* @throws IllegalStateException if this builder contains no filters.
*/
build(): Filter;
}
declare namespace CompoundOrFilterBuilder {}
declare var compoundOrFilterBuilder: CompoundOrFilterBuilder;
export default compoundOrFilterBuilder;