|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.v2.build.agent.capability.RequirementSetImpl
public class RequirementSetImpl
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Constructor Summary | |
---|---|
RequirementSetImpl()
|
Method Summary | |
---|---|
void |
addAllRequirements(java.lang.Iterable<Requirement> requirements)
Adds all the specified requirements to the set |
void |
addRequirement(Requirement requirement)
Adds a requirement to the set. |
Requirement |
getRequirement(long id)
Get a requirement from the set via the id. |
Requirement |
getRequirement(java.lang.String key)
Get a requirement from the set via the key. |
Requirement |
getRequirement(java.lang.String key,
long ownerId)
Get a requirement from the set via the key and ownerId. |
java.util.Set<Requirement> |
getRequirements()
Get all requirements as a Set |
java.util.Set<Requirement> |
getRequirementsForPlugin(java.lang.String pluginModuleKey,
long ownerId)
Gets all requirements that match the specified Requirement.getPluginModuleKey() and Requirement.getOwnerId() |
java.util.Set<Requirement> |
getSystemRequirements(java.lang.String type)
Gets a subset of requirements which are of a particular system type. |
boolean |
removeRequirement(Requirement requirement)
Removes the requirement from the set. |
void |
removeRequirement(java.lang.String key)
Removes all the requirements matching the key from the set. |
int |
removeRequirements(java.lang.Iterable<Requirement> requirementIterable)
Removes all the specified Requirement s from the set. |
int |
removeRequirements(com.google.common.base.Predicate<Requirement> requirementPredicate)
Remove requirements from set if they match the given Predicate |
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 |
---|
public RequirementSetImpl()
Method Detail |
---|
public Requirement getRequirement(@NotNull java.lang.String key)
RequirementSet
getRequirement
in interface RequirementSet
public Requirement getRequirement(@NotNull java.lang.String key, long ownerId)
RequirementSet
getRequirement
in interface RequirementSet
public Requirement getRequirement(long id)
RequirementSet
getRequirement
in interface RequirementSet
@NotNull public java.util.Set<Requirement> getRequirements()
RequirementSet
Set
getRequirements
in interface RequirementSet
public java.util.Set<Requirement> getRequirementsForPlugin(@NotNull java.lang.String pluginModuleKey, long ownerId)
RequirementSet
Requirement.getPluginModuleKey()
and Requirement.getOwnerId()
getRequirementsForPlugin
in interface RequirementSet
public void addRequirement(@NotNull Requirement requirement)
RequirementSet
addRequirement
in interface RequirementSet
public void addAllRequirements(java.lang.Iterable<Requirement> requirements)
RequirementSet
addAllRequirements
in interface RequirementSet
public void removeRequirement(@NotNull java.lang.String key)
RequirementSet
removeRequirement
in interface RequirementSet
public boolean removeRequirement(@NotNull Requirement requirement)
RequirementSet
removeRequirement
in interface RequirementSet
requirement
- to remove
public int removeRequirements(@NotNull com.google.common.base.Predicate<Requirement> requirementPredicate)
RequirementSet
Predicate
removeRequirements
in interface RequirementSet
requirementPredicate
- for requirements to be removed from the current RequirementSet
public int removeRequirements(@NotNull java.lang.Iterable<Requirement> requirementIterable)
RequirementSet
Requirement
s from the set.
removeRequirements
in interface RequirementSet
requirementIterable
- to remove
@NotNull public java.util.Set<Requirement> getSystemRequirements(java.lang.String type)
RequirementSet
getSystemRequirements
in interface RequirementSet
public void setRequirements(java.util.Set<Requirement> requirements)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |