Interface Constraint
- 
- All Known Implementing Classes:
- AbstractConstraint,- BavetConstraint,- DroolsConstraint
 
 public interface ConstraintThis represents a single constraint in theConstraintStreamAPI that impacts theScore. It is defined inConstraintProvider.defineConstraints(ConstraintFactory)by callingConstraintFactory.from(Class).
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ConstraintFactorygetConstraintFactory()TheConstraintFactorythat build this.default StringgetConstraintId()The constraint id isthe constraint packageconcatenated with "/" andthe constraint name.StringgetConstraintName()The constraint name.StringgetConstraintPackage()The constraint package is the namespace of the constraint.
 
- 
- 
- 
Method Detail- 
getConstraintFactoryConstraintFactory getConstraintFactory() TheConstraintFactorythat build this.- Returns:
- never null
 
 - 
getConstraintPackageString getConstraintPackage() The constraint package is the namespace of the constraint.When using a ConstraintConfiguration, it is equal to theConstraintWeight.constraintPackage().- Returns:
- never null
 
 - 
getConstraintNameString getConstraintName() The constraint name. It might not be unique, butgetConstraintId()is unique.When using a ConstraintConfiguration, it is equal to theConstraintWeight.value().- Returns:
- never null
 
 - 
getConstraintIddefault String getConstraintId() The constraint id isthe constraint packageconcatenated with "/" andthe constraint name. It is unique.- Returns:
- never null
 
 
- 
 
-