com.atlassian.bitbucket.repository.ref.restriction.RefMatcher |
A RefMatcher defines what is restricted by a given restriction.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The displayId can be any string.
| |||||||||||
The restriction ID can be any string.
| |||||||||||
A RefMatcher can be inactive.
| |||||||||||
Determines whether or not a given MinimalRef matches the
RefMatcher.
|
The displayId can be any string. For a branch this could be the branch name, for example 'master'.
The restriction ID can be any string. For a branch this could be a fully qualified ref, for example 'refs/heads/master'.
A RefMatcher can be inactive.
An example of an inactive RefMatcher is a branch that has been deleted.
The RefMatcher
can still persist, even if the actual underlying object does not exist
(temporarily or permanently).
true
if the RefMatcher
is active, false
otherwise
Determines whether or not a given MinimalRef matches the RefMatcher.
ref | The MinimalRef to check |
---|
true
if the given ref
matches this RefMatcher, false
otherwise