Enum DomainSpecification.Result
- java.lang.Object
-
- java.lang.Enum<DomainSpecification.Result>
-
- com.cloudbees.plugins.credentials.domains.DomainSpecification.Result
-
- All Implemented Interfaces:
Serializable
,Comparable<DomainSpecification.Result>
- Enclosing class:
- DomainSpecification
public static enum DomainSpecification.Result extends Enum<DomainSpecification.Result>
The results of anyDomainRequirement
test against aDomainSpecification
.- Since:
- 1.5
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NEGATIVE
The specification knows this kind of scope and it is not a match.PARTIAL
The specification knows this kind of scope and it is a match, keep checking other specifications.POSITIVE
The specification knows this kind of scope and it is a definitive match.UNKNOWN
The specification does not know this kind of scope, keep checking other specifications for this scope.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDefinitive()
Returnstrue
if the result definitive, in other words can processing be short-cut.boolean
isMatch()
Returnstrue
if the result a match.static DomainSpecification.Result
valueOf(String name)
Returns the enum constant of this type with the specified name.static DomainSpecification.Result[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final DomainSpecification.Result UNKNOWN
The specification does not know this kind of scope, keep checking other specifications for this scope.
-
NEGATIVE
public static final DomainSpecification.Result NEGATIVE
The specification knows this kind of scope and it is not a match.
-
PARTIAL
public static final DomainSpecification.Result PARTIAL
The specification knows this kind of scope and it is a match, keep checking other specifications.
-
POSITIVE
public static final DomainSpecification.Result POSITIVE
The specification knows this kind of scope and it is a definitive match.
-
-
Method Detail
-
values
public static DomainSpecification.Result[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DomainSpecification.Result c : DomainSpecification.Result.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DomainSpecification.Result valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isDefinitive
public boolean isDefinitive()
Returnstrue
if the result definitive, in other words can processing be short-cut.- Returns:
true
if the result definitive, in other words can processing be short-cut.
-
isMatch
public boolean isMatch()
Returnstrue
if the result a match.- Returns:
true
if the result a match.
-
-