com.atlassian.bamboo.v2.build.agent.capability
Class RequirementImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.v2.build.agent.capability.RequirementImpl
All Implemented Interfaces:
BambooObject, Requirement, java.lang.Cloneable

public class RequirementImpl
extends BambooEntityObject
implements Requirement


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
RequirementImpl()
           
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
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getKey()
          Represents the requirement.
 java.lang.String getMatchValue()
          A match requirement value.
 RequirementSet getRequirementSet()
           
 int hashCode()
           
 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 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
getId, setId
 

Constructor Detail

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)
Method Detail

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 © 2008 Atlassian Pty Ltd. All Rights Reserved.