public interface Constraint
ConstraintStream
API
that impacts the Score
.
It is defined in ConstraintProvider.defineConstraints(ConstraintFactory)
by calling ConstraintFactory.from(Class)
.Modifier and Type | Method and Description |
---|---|
ConstraintFactory |
getConstraintFactory()
The
ConstraintFactory that build this. |
default String |
getConstraintId()
The constraint id is
the constraint package
concatenated with "/" and the constraint name . |
String |
getConstraintName()
The constraint name.
|
String |
getConstraintPackage()
The constraint package is the namespace of the constraint.
|
ConstraintFactory getConstraintFactory()
ConstraintFactory
that build this.String getConstraintPackage()
When using a ConstraintConfiguration
,
it is equal to the ConstraintWeight.constraintPackage()
.
String getConstraintName()
getConstraintId()
is unique.
When using a ConstraintConfiguration
,
it is equal to the ConstraintWeight.value()
.
default String getConstraintId()
the constraint package
concatenated with "/" and the constraint name
.
It is unique.Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.