public interface Constraint
| Modifier and Type | Field and Description |
|---|---|
static String |
OPTION_HAS_SIZE_CONSTRAINT |
static String |
OPTION_SIZE_CONSTRAINT |
| Modifier and Type | Method and Description |
|---|---|
void |
assertConstraintTypes(Collection<ConstraintType> allowedTypes)
Check constraint tree has constraints from allowed types only.
|
void |
check(Scope scope,
Ref<Value> valueRef) |
default void |
collectValues(Collection<Value> values,
Collection<Value.Kind> requiredKinds) |
Constraint |
copyForType(Scope scope,
Type type) |
default Value |
getMaximumValue(Scope scope) |
default Value |
getMinimumValue(Scope scope) |
default void |
setScopeOptions(Scope scope) |
static final String OPTION_HAS_SIZE_CONSTRAINT
static final String OPTION_SIZE_CONSTRAINT
void check(Scope scope, Ref<Value> valueRef) throws ValidationException, ResolutionException
default void collectValues(@NotNull
Collection<Value> values,
@NotNull
Collection<Value.Kind> requiredKinds)
throws IllegalValueException
IllegalValueException@NotNull Constraint copyForType(@NotNull Scope scope, @NotNull Type type) throws ResolutionException, ValidationException
default void setScopeOptions(Scope scope)
@NotNull default Value getMinimumValue(@NotNull Scope scope) throws ResolutionException
ResolutionException@NotNull default Value getMaximumValue(@NotNull Scope scope) throws ResolutionException
ResolutionExceptionvoid assertConstraintTypes(Collection<ConstraintType> allowedTypes) throws ValidationException
allowedTypes - the collection of allowed typesValidationException - if constraint type is not allowed by parameterCopyright © 2017. All rights reserved.