com.atlassian.bamboo.v2.build.agent.capability
Class RequirementImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.v2.build.agent.capability.RequirementImpl
- All Implemented Interfaces:
- BambooObject, Requirement, java.lang.Cloneable
public class RequirementImpl
- extends BambooEntityObject
- implements Requirement
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 |
RequirementImpl
public RequirementImpl()
RequirementImpl
public RequirementImpl(java.lang.String key,
boolean regexMatch,
java.lang.String match)
RequirementImpl
public RequirementImpl(java.lang.String key,
boolean regexMatch,
java.lang.String match,
boolean readonly)
isSystemRequirement
public boolean isSystemRequirement()
- Description copied from interface:
Requirement
- Is this a system requirement? System requirements are builder/jdk requirements which cannot be
removed from the plan.
- Specified by:
isSystemRequirement
in interface Requirement
- Returns:
getKey
@NotNull
public java.lang.String getKey()
- Description copied from interface:
Requirement
- Represents the requirement. Must match exactly to the
Capability
getKey().
- Specified by:
getKey
in interface Requirement
- Returns:
setKey
public void setKey(java.lang.String key)
- Specified by:
setKey
in interface Requirement
getMatchValue
public java.lang.String getMatchValue()
- Description copied from interface:
Requirement
- A match requirement value.
The regex must match the
Capability
value.
- Specified by:
getMatchValue
in interface Requirement
- Returns:
setMatchValue
public void setMatchValue(java.lang.String matchValue)
isRegexMatch
public boolean isRegexMatch()
- Description copied from interface:
Requirement
- Is this a regex match requirement or exact match requirement.
- Specified by:
isRegexMatch
in interface Requirement
- Returns:
setRegexMatch
public void setRegexMatch(java.lang.Boolean regexMatch)
isReadonly
public java.lang.Boolean isReadonly()
- Description copied from interface:
Requirement
- If a requirement is readonly, it cannot be removed through the UI (the backend can do what it wants, however)
- Specified by:
isReadonly
in interface Requirement
- Returns:
setReadonly
public void setReadonly(java.lang.Boolean readonly)
- Specified by:
setReadonly
in interface Requirement
getRequirementSet
public RequirementSet getRequirementSet()
- Specified by:
getRequirementSet
in interface Requirement
setRequirementSet
public void setRequirementSet(RequirementSet requirementSet)
- Specified by:
setRequirementSet
in interface Requirement
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class com.atlassian.core.bean.EntityObject
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class com.atlassian.core.bean.EntityObject
compareTo
public int compareTo(java.lang.Object obj)
Copyright © 2010 Atlassian. All Rights Reserved.