public class ReturnValueConstraintEvaluator extends Object implements Constraint, ConstraintEvaluator, org.drools.core.spi.Wireable, Externalizable
| Constructor and Description |
|---|
ReturnValueConstraintEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(NodeInstance instance,
org.kie.api.definition.process.Connection connection,
Constraint constraint) |
String |
getConstraint()
Typically this method returns the constraint as a String
|
String |
getDialect()
Returns the dialect of the constraint,
e.g.
|
Object |
getMetaData(String name) |
String |
getName()
Returns the name of the constraint
|
int |
getPriority()
Returns the priority of the constraint
|
ReturnValueEvaluator |
getReturnValueEvaluator() |
String |
getType()
Returns the type of the constraint,
e.g.
|
boolean |
isDefault() |
void |
readExternal(ObjectInput in) |
void |
setConstraint(String constraint)
Method for setting the constraint
|
void |
setDefault(boolean isDefault) |
void |
setDialect(String dialect)
Method for setting the dialect of the constraint,
e.g.
|
void |
setEvaluator(ReturnValueEvaluator evaluator) |
void |
setMetaData(String name,
Object value) |
void |
setName(String name)
Sets the name of the constraint
|
void |
setPriority(int priority)
Method for setting the priority of the constraint
|
void |
setType(String type)
Method for setting the type of the constraint,
e.g.
|
String |
toString() |
void |
wire(Object object) |
void |
writeExternal(ObjectOutput out) |
public String getConstraint()
ConstraintgetConstraint in interface Constraintpublic void setConstraint(String constraint)
ConstraintsetConstraint in interface Constraintconstraint - the constraintpublic String getName()
ConstraintgetName in interface Constraintpublic void setName(String name)
ConstraintsetName in interface Constraintname - the name of the constraintpublic int getPriority()
ConstraintgetPriority in interface Constraintpublic void setPriority(int priority)
ConstraintsetPriority in interface Constraintpriority - the priority of the constraintpublic String getDialect()
ConstraintgetDialect in interface Constraintpublic void setDialect(String dialect)
ConstraintsetDialect in interface Constraintdialect - the dialect of the constraintpublic String getType()
ConstraintgetType in interface Constraintpublic void setType(String type)
ConstraintsetType in interface Constrainttype - the type of the constraintpublic boolean isDefault()
isDefault in interface Constraintpublic void setDefault(boolean isDefault)
setDefault in interface Constraintpublic void wire(Object object)
wire in interface org.drools.core.spi.Wireablepublic void setEvaluator(ReturnValueEvaluator evaluator)
public ReturnValueEvaluator getReturnValueEvaluator()
public boolean evaluate(NodeInstance instance, org.kie.api.definition.process.Connection connection, Constraint constraint)
evaluate in interface ConstraintEvaluatorpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void setMetaData(String name, Object value)
setMetaData in interface Constraintpublic Object getMetaData(String name)
getMetaData in interface ConstraintCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.