package constraints
Defines helper values and methods related to modeling constraints.
- Alphabetic
- By Inheritance
- constraints
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
ArrayConstraint(arrayReference: ReferenceValueConstraint, arraySize: NumericValueConstraint = NumericRange.PositiveIntegerValue, arrayValues: ValueConstraint) extends ReferenceValueConstraint with Product with Serializable
- arrayValues
Constraint which is satisified by all elements of the array (on first access).
-
case class
IncompatibleNumericConstraints(message: String, constraint1: NumericConstraint, constraint2: NumericConstraint, enableSuppression: Boolean = false, writableStackTrace: Boolean = true) extends RuntimeException with Product with Serializable
Raised if two constraints should be combined that are incompatible.
Raised if two constraints should be combined that are incompatible. E.g.,
a > banda < bare incompatible. - type NumericConstraint = constraints.NumericConstraints.Value
-
case class
NumericRange[T <: AnyVal](lowerBound: T, upperBound: T) extends NumericValueConstraint with Product with Serializable
States that the underlying, but unknown value is an element of the specified range of values.
-
case class
NumericSet[T <: AnyVal](values: Set[T]) extends NumericValueConstraint with Product with Serializable
States that the underlying, but unknown value is an element of the specified set.
- trait NumericValueConstraint extends ValueConstraint
-
case class
ObjectConstraint(objectReference: ReferenceValueConstraint, fieldConstraints: Map[String, ValueConstraint]) extends ReferenceValueConstraint with Product with Serializable
Models constraints related to an object (graph).
- trait ReferenceValueConstraint extends ValueConstraint
-
trait
ValueConstraint extends AnyRef
Constraints related to values.
Value Members
- object ArrayConstraint extends Serializable
-
object
ConstraintByType extends ValueConstraint with NumericValueConstraint with ReferenceValueConstraint with Product with Serializable
States that the underlying, but unknown value is unconstrained except of those constraints given by the value's known type.
-
object
NonNullValue extends ReferenceValueConstraint with Product with Serializable
The respective value is guaranteed to be null.
-
object
NullValue extends ReferenceValueConstraint with Product with Serializable
The respective value is guaranteed to be null.
-
object
NumericConstraints extends Enumeration
Enumeration of all possible relations/constraints between two arbitrary numeric values.
- object NumericRange extends Serializable