|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.process.instance.impl.ReturnValueConstraintEvaluator
public class ReturnValueConstraintEvaluator
Default implementation of a constraint.
Constructor Summary | |
---|---|
ReturnValueConstraintEvaluator()
|
Method Summary | |
---|---|
boolean |
evaluate(NodeInstance instance,
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReturnValueConstraintEvaluator()
Method Detail |
---|
public String getConstraint()
Constraint
getConstraint
in interface Constraint
public void setConstraint(String constraint)
Constraint
setConstraint
in interface Constraint
constraint
- the constraintpublic String getName()
Constraint
getName
in interface Constraint
public void setName(String name)
Constraint
setName
in interface Constraint
name
- the name of the constraintpublic String toString()
toString
in class Object
public int getPriority()
Constraint
getPriority
in interface Constraint
public void setPriority(int priority)
Constraint
setPriority
in interface Constraint
priority
- the priority of the constraintpublic String getDialect()
Constraint
getDialect
in interface Constraint
public void setDialect(String dialect)
Constraint
setDialect
in interface Constraint
dialect
- the dialect of the constraintpublic String getType()
Constraint
getType
in interface Constraint
public void setType(String type)
Constraint
setType
in interface Constraint
type
- the type of the constraintpublic boolean isDefault()
isDefault
in interface Constraint
public void setDefault(boolean isDefault)
setDefault
in interface Constraint
public void wire(Object object)
wire
in interface org.drools.spi.Wireable
public void setEvaluator(ReturnValueEvaluator evaluator)
public ReturnValueEvaluator getReturnValueEvaluator()
public boolean evaluate(NodeInstance instance, Connection connection, Constraint constraint)
evaluate
in interface ConstraintEvaluator
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void setMetaData(String name, Object value)
setMetaData
in interface Constraint
public Object getMetaData(String name)
getMetaData
in interface Constraint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |