public interface Constraint extends RuleComponent, Externalizable, Cloneable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Constraint.ConstraintType
An enum for Constraint Types
|
| Modifier and Type | Method and Description |
|---|---|
default void |
addPackageNames(Collection<String> otherPkgs) |
Constraint |
clone()
Clones the constraint
|
default boolean |
equals(Object object,
InternalKnowledgeBase kbase) |
default BitMask |
getListenedPropertyMask(Class modifiedClass,
List<String> settableProperties) |
default Collection<String> |
getPackageNames() |
Declaration[] |
getRequiredDeclarations()
Returns all the declarations required by the given
constraint implementation.
|
Constraint.ConstraintType |
getType()
Returns the type of the constraint, either ALPHA, BETA or UNKNOWN
|
boolean |
isTemporal()
Returns true in case this constraint is a temporal constraint
|
default void |
registerEvaluationContext(BuildContext buildContext) |
void |
replaceDeclaration(Declaration oldDecl,
Declaration newDecl)
When a rule contains multiple logical branches, i.e., makes
use of 'OR' CE, it is required to clone patterns and declarations
for each logical branch.
|
readExternal, writeExternalDeclaration[] getRequiredDeclarations()
void replaceDeclaration(Declaration oldDecl, Declaration newDecl)
oldDecl - newDecl - Constraint clone()
Constraint.ConstraintType getType()
boolean isTemporal()
default BitMask getListenedPropertyMask(Class modifiedClass, List<String> settableProperties)
default boolean equals(Object object, InternalKnowledgeBase kbase)
default void registerEvaluationContext(BuildContext buildContext)
default Collection<String> getPackageNames()
default void addPackageNames(Collection<String> otherPkgs)
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.