/** * 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 all added filters matches. * *
* How a compound AND filter works: If filter A and filter B is added to this builder, * then the accept method of the built filter will return the boolean result of the logical boolean evaluation of: * A.accept AND B.accept. *
*CompoundAndFilterBuilder in Velocity.
*
* An instance of the Sitevision class implementing this interface can be obtained via
* {@link senselogic.sitevision.api.node.NodeFilterUtil#getCompoundAndFilterBuilder()}.
* 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): CompoundAndFilterBuilder;
/**
* Removes all previously added filters.
* @return this builder
*/
clearFilters(): CompoundAndFilterBuilder;
/**
* Creates a node filter instance that will perform the AND operation for all currently specified filters.
* @return a node filter
* @throws IllegalStateException if this builder contains no filters.
*/
build(): Filter;
}
declare namespace CompoundAndFilterBuilder {}
declare var compoundAndFilterBuilder: CompoundAndFilterBuilder;
export default compoundAndFilterBuilder;