public class Requirement extends EntityPropertiesBuilder<RequirementProperties>
Modifier and Type | Class and Description |
---|---|
static class |
Requirement.MatchType |
Constructor and Description |
---|
Requirement(String key)
Specifies an "exists" requirement with a specified key.
|
Modifier and Type | Method and Description |
---|---|
protected RequirementProperties |
build() |
static Requirement |
equals(String key,
String value)
Specifies a requirement that a capability with matching key has value equal to value of requirement.
|
static Requirement |
exists(String key)
Specifies a requirement that a capability with matching key exists.
|
static Requirement |
matches(String key,
String regexp)
Specifies a requirement that a capability with matching key has value that matches regexp provided in value of requirement.
|
Requirement |
matchType(Requirement.MatchType matchType)
Sets a match type.
|
Requirement |
matchValue(String value)
Sets a requirement value.
|
public Requirement(String key)
key
- requirement keypublic static Requirement exists(String key)
key
- requirement keypublic static Requirement equals(String key, String value)
key
- requirement keyvalue
- requirement valuepublic static Requirement matches(String key, String regexp)
key
- requirement keyregexp
- requirement value, in Java formatPattern
public Requirement matchValue(String value)
public Requirement matchType(Requirement.MatchType matchType)
protected RequirementProperties build()
build
in class EntityPropertiesBuilder<RequirementProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.