|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.representation.constraints.ConstraintObject
jcreek.representation.constraints.GeneralConstraintObject
Handles the behaviour of general constraints.
Offers the ability to define arbitrary complex constraints written i Java.
Field Summary |
Fields inherited from class jcreek.representation.constraints.ConstraintObject |
km, rel |
Constructor Summary | |
GeneralConstraintObject(java.lang.String constraintString)
Creates a new instance of GeneralConstraintObject |
Method Summary | |
ConstraintCheckResult |
check(Entity from)
Checks the constraint on an entity |
protected java.lang.String |
getConstraintString()
Returs the constraint string |
Constraint |
newConstraintInstance(KnowledgeModel km,
ConstraintData data)
Creates a new constraint object of this type |
protected void |
setConstraintString(java.lang.String constraintString)
Sets the constraint string (source code) |
java.lang.String |
toString()
|
Methods inherited from class jcreek.representation.constraints.ConstraintObject |
getRelation, setKnowledgeModel, setRelation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GeneralConstraintObject(java.lang.String constraintString)
constraintString
- the source code stringMethod Detail |
public ConstraintCheckResult check(Entity from)
check
in class ConstraintObject
from
- the entity to check with this constraint
public Constraint newConstraintInstance(KnowledgeModel km, ConstraintData data)
newConstraintInstance
in class ConstraintObject
km
- the knowledge modeldata
- the constraint data object to be contained in the constraintprotected java.lang.String getConstraintString()
protected void setConstraintString(java.lang.String constraintString)
constraintString
- the source codepublic java.lang.String toString()
toString
in class ConstraintObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |