Package jetbrains.buildServer.vcs.spec
Class BranchFilterImpl
- java.lang.Object
-
- jetbrains.buildServer.vcs.spec.BranchFilterImpl
-
- All Implemented Interfaces:
BranchFilter
,Filter<Branch>
public class BranchFilterImpl extends Object implements BranchFilter
Creates branch filter from specification:+|-:pattern
-
-
Constructor Summary
Constructors Constructor Description BranchFilterImpl(String filterSpec, BranchAttributesFilterManager attributesFilterManager)
BranchFilterImpl(String filterSpec, BranchSpecParserSettings settings, BranchAttributesFilterManager attributesFilterManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(Branch branch)
Determines whether the given data satisfies implementation specific criteria.boolean
acceptsAttributes()
Set<String>
getAttributeProviderIds()
-
-
-
Constructor Detail
-
BranchFilterImpl
public BranchFilterImpl(@NotNull String filterSpec, @Nullable BranchAttributesFilterManager attributesFilterManager) throws InvalidBranchSpecException
- Throws:
InvalidBranchSpecException
-
BranchFilterImpl
public BranchFilterImpl(@NotNull String filterSpec, @NotNull BranchSpecParserSettings settings, @Nullable BranchAttributesFilterManager attributesFilterManager) throws InvalidBranchSpecException
- Throws:
InvalidBranchSpecException
-
-
Method Detail
-
accept
public boolean accept(@NotNull Branch branch)
Description copied from interface:Filter
Determines whether the given data satisfies implementation specific criteria.- Specified by:
accept
in interfaceBranchFilter
- Specified by:
accept
in interfaceFilter<Branch>
- Parameters:
branch
- the data being assessed- Returns:
- true if data satisfies the criteria. False otherwise.
-
acceptsAttributes
public boolean acceptsAttributes()
- Specified by:
acceptsAttributes
in interfaceBranchFilter
- Returns:
- true if attributes are used in this filter(e.g. +pr: target=master)
-
getAttributeProviderIds
public Set<String> getAttributeProviderIds()
- Specified by:
getAttributeProviderIds
in interfaceBranchFilter
- Returns:
- a set of attribute provider ids for the filter(e.g. returns ["pr"] for filter +pr: target=master)
-
-