public static enum DomainSpecification.Result extends Enum<DomainSpecification.Result>
DomainRequirement
test against a DomainSpecification
.Enum Constant and 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDefinitive()
Returns
true if the result definitive, in other words can processing be short-cut. |
boolean |
isMatch()
Returns
true 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.
|
public static final DomainSpecification.Result UNKNOWN
public static final DomainSpecification.Result NEGATIVE
public static final DomainSpecification.Result PARTIAL
public static final DomainSpecification.Result POSITIVE
public static DomainSpecification.Result[] values()
for (DomainSpecification.Result c : DomainSpecification.Result.values()) System.out.println(c);
public static DomainSpecification.Result valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isDefinitive()
true
if the result definitive, in other words can processing be short-cut.true
if the result definitive, in other words can processing be short-cut.public boolean isMatch()
true
if the result a match.true
if the result a match.Copyright © 2016–2021. All rights reserved.