|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.v2.build.agent.capability.RequirementImpl
public class RequirementImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.bamboo.v2.build.requirement.ImmutableRequirement |
---|
ImmutableRequirement.MatchType |
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Fields inherited from interface com.atlassian.bamboo.v2.build.agent.capability.Requirement |
---|
EQUALS, EXISTS, REGEX |
Constructor Summary | |
---|---|
RequirementImpl()
|
|
RequirementImpl(Requirement requirement)
|
|
RequirementImpl(java.lang.String key,
boolean regexMatch,
java.lang.String match)
|
|
RequirementImpl(java.lang.String key,
boolean regexMatch,
java.lang.String match,
boolean readonly)
|
Method Summary | |
---|---|
boolean |
belongsToPlugin()
|
int |
compareTo(java.lang.Object obj)
|
boolean |
equals(java.lang.Object o)
This method needs to be here in order to use proper id |
java.lang.String |
getKey()
Represents the requirement. |
java.lang.String |
getMatchType()
String representation of the type of match the requirement needs. |
java.lang.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() |
java.lang.String |
getPluginModuleKey()
The ModuleDescriptor.getKey() that is responsible for the Lifecycle of this Requirement |
RequirementSet |
getRequirementSet()
|
ImmutableRequirement.MatchType |
getTypeOfMatch()
|
int |
hashCode()
This method needs to be here in order to use proper id |
java.lang.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(java.lang.String key)
|
void |
setMatchValue(java.lang.String matchValue)
|
void |
setOwnerId(long uniqueIdentifier)
|
void |
setPluginModuleKey(java.lang.String pluginModuleKey)
|
void |
setReadonly(java.lang.Boolean readonly)
|
void |
setRegexMatch(java.lang.Boolean regexMatch)
|
void |
setRequirementSet(RequirementSet requirementSet)
|
java.lang.String |
toString()
|
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
getId, setId |
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
setId |
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider |
---|
getId |
Constructor Detail |
---|
public RequirementImpl()
public RequirementImpl(java.lang.String key, boolean regexMatch, java.lang.String match)
public RequirementImpl(java.lang.String key, boolean regexMatch, java.lang.String match, boolean readonly)
public RequirementImpl(@NotNull Requirement requirement)
Method Detail |
---|
public boolean isSystemRequirement()
Requirement
isSystemRequirement
in interface Requirement
@NotNull public java.lang.String getKey()
ImmutableRequirement
Capability
getKey().
getKey
in interface ImmutableRequirement
public void setKey(java.lang.String key)
setKey
in interface Requirement
public java.lang.String getMatchValue()
ImmutableRequirement
Capability
value.
getMatchValue
in interface ImmutableRequirement
public void setMatchValue(java.lang.String matchValue)
public boolean isRegexMatch()
Requirement
isRegexMatch
in interface Requirement
public void setRegexMatch(java.lang.Boolean regexMatch)
public java.lang.Boolean isReadonly()
ImmutableRequirement
isReadonly
in interface ImmutableRequirement
public void setReadonly(java.lang.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 java.lang.String getMatchType()
Requirement
getMatchType
in interface Requirement
@NotNull public ImmutableRequirement.MatchType getTypeOfMatch()
getTypeOfMatch
in interface ImmutableRequirement
public java.lang.String getPluginModuleKey()
ImmutableRequirement
ModuleDescriptor.getKey()
that is responsible for the Lifecycle of this Requirement
getPluginModuleKey
in interface ImmutableRequirement
public void setPluginModuleKey(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
BambooEntityObject
hashCode
in class BambooEntityObject
public boolean equals(java.lang.Object o)
BambooEntityObject
equals
in class BambooEntityObject
public int compareTo(java.lang.Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |