public interface RefMatcher
Modifier and Type | Method and Description |
---|---|
String |
getDisplayId()
The displayId can be any string.
|
String |
getId()
The restriction ID can be any string.
|
RefMatcherType |
getType() |
boolean |
isActive()
A RefMatcher can be inactive.
|
boolean |
matches(com.atlassian.bitbucket.repository.MinimalRef ref)
Determines whether or not a given
MinimalRef matches the
RefMatcher. |
@OptionalString(size=255) String getId()
@Nonnull String getDisplayId()
@Nonnull RefMatcherType getType()
boolean isActive()
RefMatcher
can still persist, even if the actual underlying object does not exist
(temporarily or permanently).true
if the RefMatcher
is active, false
otherwiseboolean matches(@Nonnull com.atlassian.bitbucket.repository.MinimalRef ref)
MinimalRef
matches the
RefMatcher.ref
- The MinimalRef
to checktrue
if the given ref
matches this RefMatcher, false
otherwiseCopyright © 2019 Atlassian. All rights reserved.