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

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.RequirementSetImpl
All Implemented Interfaces:
BambooObject, RequirementSet, java.lang.Cloneable

public class RequirementSetImpl
extends BambooEntityObject
implements RequirementSet


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
RequirementSetImpl()
           
 
Method Summary
 void addRequirement(Requirement requirement)
          Adds a requirement to the set.
 Requirement getRequirement(java.lang.String key)
          Get a requirement from the set via the key.
 java.util.Set<Requirement> getRequirements()
          Get all requirements as a Set
 java.util.Set<Requirement> getSystemRequirements(java.lang.String type)
          Gets a subset of requirements which are of a particular system type.
 void removeRequirement(java.lang.String key)
          Remove the requirement from the set.
 void setRequirements(java.util.Set<Requirement> requirements)
           
 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, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequirementSetImpl

public RequirementSetImpl()
Method Detail

getRequirement

public Requirement getRequirement(@NotNull
                                  java.lang.String key)
Description copied from interface: RequirementSet
Get a requirement from the set via the key.

Specified by:
getRequirement in interface RequirementSet
Returns:

getRequirements

@NotNull
public java.util.Set<Requirement> getRequirements()
Description copied from interface: RequirementSet
Get all requirements as a Set

Specified by:
getRequirements in interface RequirementSet
Returns:

addRequirement

public void addRequirement(@NotNull
                           Requirement requirement)
Description copied from interface: RequirementSet
Adds a requirement to the set.

Specified by:
addRequirement in interface RequirementSet

removeRequirement

public void removeRequirement(@NotNull
                              java.lang.String key)
Description copied from interface: RequirementSet
Remove the requirement from the set.

Specified by:
removeRequirement in interface RequirementSet

getSystemRequirements

@NotNull
public java.util.Set<Requirement> getSystemRequirements(java.lang.String type)
Description copied from interface: RequirementSet
Gets a subset of requirements which are of a particular system type. e.g. system.builder or system.jdk.

Specified by:
getSystemRequirements in interface RequirementSet
Returns:

setRequirements

public void setRequirements(java.util.Set<Requirement> requirements)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011 Atlassian. All Rights Reserved.