public class RequirementImpl extends BambooEntityObject implements Requirement
ImmutableRequirement.MatchType
EQUALS, EXISTS, REGEX
Constructor and Description |
---|
RequirementImpl() |
RequirementImpl(Requirement requirement) |
RequirementImpl(String key,
boolean regexMatch,
String match) |
RequirementImpl(String key,
boolean regexMatch,
String match,
boolean readonly) |
Modifier and Type | Method and Description |
---|---|
boolean |
belongsToPlugin() |
int |
compareTo(Object obj) |
boolean |
equals(Object o) |
String |
getKey()
Represents the requirement.
|
String |
getMatchType()
String representation of the type of match the requirement needs.
|
String |
getMatchValue()
A match requirement value.
|
long |
getOwnerId()
The identifier of this
Requirement that is used to identify it uniquely for all Requirement s
created by ImmutableRequirement.getPluginModuleKey() |
String |
getPluginModuleKey()
The
ModuleDescriptor.getKey() that is responsible for the Lifecycle of this Requirement |
RequirementSet |
getRequirementSet() |
ImmutableRequirement.MatchType |
getTypeOfMatch() |
int |
hashCode() |
Boolean |
isReadonly()
If a requirement is readonly, it cannot be removed through the UI (the backend can do what it wants, however)
|
boolean |
isRegexMatch()
Is this a regex match requirement or exact match requirement.
|
boolean |
isSystemRequirement()
Is this a system requirement? System requirements are builder/jdk requirements which cannot be
removed from the plan.
|
void |
setKey(String key) |
void |
setMatchValue(String matchValue) |
void |
setOwnerId(long uniqueIdentifier) |
void |
setPluginModuleKey(String pluginModuleKey) |
void |
setReadonly(Boolean readonly) |
void |
setRegexMatch(Boolean regexMatch) |
void |
setRequirementSet(RequirementSet requirementSet) |
String |
toString() |
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, wait, wait, wait
setId
getId
public RequirementImpl()
public RequirementImpl(String key, boolean regexMatch, String match, boolean readonly)
public RequirementImpl(@NotNull Requirement requirement)
public boolean isSystemRequirement()
Requirement
isSystemRequirement
in interface Requirement
@NotNull public String getKey()
ImmutableRequirement
Capability
getKey().getKey
in interface ImmutableRequirement
public void setKey(String key)
setKey
in interface Requirement
public String getMatchValue()
ImmutableRequirement
The regex must match the Capability
value.
getMatchValue
in interface ImmutableRequirement
public void setMatchValue(String matchValue)
public boolean isRegexMatch()
Requirement
isRegexMatch
in interface Requirement
public void setRegexMatch(Boolean regexMatch)
public Boolean isReadonly()
ImmutableRequirement
isReadonly
in interface ImmutableRequirement
public void setReadonly(Boolean readonly)
setReadonly
in interface Requirement
public RequirementSet getRequirementSet()
getRequirementSet
in interface Requirement
Requirement
is linked topublic void setRequirementSet(RequirementSet requirementSet)
setRequirementSet
in interface Requirement
public String getMatchType()
Requirement
getMatchType
in interface Requirement
@NotNull public ImmutableRequirement.MatchType getTypeOfMatch()
getTypeOfMatch
in interface ImmutableRequirement
public String getPluginModuleKey()
ImmutableRequirement
ModuleDescriptor.getKey()
that is responsible for the Lifecycle of this Requirement
getPluginModuleKey
in interface ImmutableRequirement
public void setPluginModuleKey(String pluginModuleKey)
setPluginModuleKey
in interface Requirement
public long getOwnerId()
ImmutableRequirement
Requirement
that is used to identify it uniquely for all Requirement
s
created by ImmutableRequirement.getPluginModuleKey()
getOwnerId
in interface ImmutableRequirement
public void setOwnerId(long uniqueIdentifier)
setOwnerId
in interface Requirement
public boolean belongsToPlugin()
belongsToPlugin
in interface Requirement
Requirement
belongs to a pluginpublic int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public boolean equals(Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int compareTo(Object obj)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.