Package jenkins.branch
Class NamedExceptionsBranchPropertyStrategy.Named
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<NamedExceptionsBranchPropertyStrategy.Named>
-
- jenkins.branch.NamedExceptionsBranchPropertyStrategy.Named
-
- All Implemented Interfaces:
Describable<NamedExceptionsBranchPropertyStrategy.Named>
- Enclosing class:
- NamedExceptionsBranchPropertyStrategy
public static class NamedExceptionsBranchPropertyStrategy.Named extends AbstractDescribableImpl<NamedExceptionsBranchPropertyStrategy.Named>
Holds the specific named exception details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NamedExceptionsBranchPropertyStrategy.Named.DescriptorImpl
OurDescriptor
-
Constructor Summary
Constructors Constructor Description Named(String name, BranchProperty[] props)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name(s) to match.List<BranchProperty>
getProps()
Returns the exception properties.static boolean
isMatch(String branchName, String names)
Returnstrue
if and only if the branch name matches one of the name(s).boolean
isMatch(jenkins.scm.api.SCMHead head)
Returnstrue
if the head is a match.-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
Named
@DataBoundConstructor public Named(@CheckForNull String name, @CheckForNull BranchProperty[] props)
Constructor- Parameters:
name
- the names to match.props
- the properties that the matching branches will get.
-
-
Method Detail
-
getProps
@NonNull public List<BranchProperty> getProps()
Returns the exception properties.- Returns:
- the exception properties.
-
getName
@NonNull public String getName()
Returns the name(s) to match.- Returns:
- the name(s) to match.
-
isMatch
public boolean isMatch(@NonNull jenkins.scm.api.SCMHead head)
Returnstrue
if the head is a match.- Parameters:
head
- the head.- Returns:
true
if the head is a match.
-
isMatch
public static boolean isMatch(String branchName, String names)
Returnstrue
if and only if the branch name matches one of the name(s).- Parameters:
branchName
- the branch name.names
- the name(s) that are valid to match against.- Returns:
true
if and only if the branch name matches one of the name(s).
-
-