Package org.jbpm.workflow.core.impl
Class ConstraintImpl
- java.lang.Object
-
- org.jbpm.workflow.core.impl.ConstraintImpl
-
- All Implemented Interfaces:
Serializable
,Constraint
public class ConstraintImpl extends Object implements Constraint, Serializable
Default implementation of a constraint.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConstraintImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConstraint()
Typically this method returns the constraint as a StringString
getDialect()
Returns the dialect of the constraint, e.g.Object
getMetaData(String name)
String
getName()
Returns the name of the constraintint
getPriority()
Returns the priority of the constraintString
getType()
Returns the type of the constraint, e.g.boolean
isDefault()
void
setConstraint(String constraint)
Method for setting the constraintvoid
setDefault(boolean isDefault)
void
setDialect(String dialect)
Method for setting the dialect of the constraint, e.g.void
setMetaData(String name, Object value)
void
setName(String name)
Sets the name of the constraintvoid
setPriority(int priority)
Method for setting the priority of the constraintvoid
setType(String type)
Method for setting the type of the constraint, e.g.String
toString()
-
-
-
Method Detail
-
getConstraint
public String getConstraint()
Description copied from interface:Constraint
Typically this method returns the constraint as a String- Specified by:
getConstraint
in interfaceConstraint
- Returns:
- the constraint
-
setConstraint
public void setConstraint(String constraint)
Description copied from interface:Constraint
Method for setting the constraint- Specified by:
setConstraint
in interfaceConstraint
- Parameters:
constraint
- the constraint
-
getName
public String getName()
Description copied from interface:Constraint
Returns the name of the constraint- Specified by:
getName
in interfaceConstraint
- Returns:
- the name of the constraint
-
setName
public void setName(String name)
Description copied from interface:Constraint
Sets the name of the constraint- Specified by:
setName
in interfaceConstraint
- Parameters:
name
- the name of the constraint
-
getPriority
public int getPriority()
Description copied from interface:Constraint
Returns the priority of the constraint- Specified by:
getPriority
in interfaceConstraint
- Returns:
- the priority of the constraint
-
setPriority
public void setPriority(int priority)
Description copied from interface:Constraint
Method for setting the priority of the constraint- Specified by:
setPriority
in interfaceConstraint
- Parameters:
priority
- the priority of the constraint
-
getDialect
public String getDialect()
Description copied from interface:Constraint
Returns the dialect of the constraint, e.g. "mvel" or "java"- Specified by:
getDialect
in interfaceConstraint
- Returns:
- the dialect of the constraint
-
setDialect
public void setDialect(String dialect)
Description copied from interface:Constraint
Method for setting the dialect of the constraint, e.g. "mvel" or "java"- Specified by:
setDialect
in interfaceConstraint
- Parameters:
dialect
- the dialect of the constraint
-
getType
public String getType()
Description copied from interface:Constraint
Returns the type of the constraint, e.g. "code" or "rule"- Specified by:
getType
in interfaceConstraint
- Returns:
- the type of the constraint
-
setType
public void setType(String type)
Description copied from interface:Constraint
Method for setting the type of the constraint, e.g. "code" or "rule"- Specified by:
setType
in interfaceConstraint
- Parameters:
type
- the type of the constraint
-
isDefault
public boolean isDefault()
- Specified by:
isDefault
in interfaceConstraint
-
setDefault
public void setDefault(boolean isDefault)
- Specified by:
setDefault
in interfaceConstraint
-
setMetaData
public void setMetaData(String name, Object value)
- Specified by:
setMetaData
in interfaceConstraint
-
getMetaData
public Object getMetaData(String name)
- Specified by:
getMetaData
in interfaceConstraint
-
-