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 booleanaccept(Branch branch)Determines whether the given data satisfies implementation specific criteria.booleanacceptsAttributes()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:FilterDetermines whether the given data satisfies implementation specific criteria.- Specified by:
acceptin interfaceBranchFilter- Specified by:
acceptin interfaceFilter<Branch>- Parameters:
branch- the data being assessed- Returns:
- true if data satisfies the criteria. False otherwise.
-
acceptsAttributes
public boolean acceptsAttributes()
- Specified by:
acceptsAttributesin interfaceBranchFilter- Returns:
- true if attributes are used in this filter(e.g. +pr: target=master)
-
getAttributeProviderIds
public Set<String> getAttributeProviderIds()
- Specified by:
getAttributeProviderIdsin interfaceBranchFilter- Returns:
- a set of attribute provider ids for the filter(e.g. returns ["pr"] for filter +pr: target=master)
-
-