|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.representation.constraints.ConstraintCheckResult
This object wraps the information returned by the constraints
Constructor Summary | |
ConstraintCheckResult()
No-argument constructor |
|
ConstraintCheckResult(boolean ok,
java.lang.String description)
Creates a new instance of ConstraintCheckResult |
Method Summary | |
java.lang.String |
getDescription()
Returns the explanation of the constraint check |
boolean |
isViolated()
Returns true if the constraint is violated |
void |
setDescription(java.lang.String desc)
Sets the explanation of the constraint check |
void |
setViolated(boolean viol)
Sets whether the constraint is violated or not |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ConstraintCheckResult(boolean ok, java.lang.String description)
ok
- whether the constraint are met or notdescription
- an explanation of the constraint violationpublic ConstraintCheckResult()
Method Detail |
public void setDescription(java.lang.String desc)
desc
- the explanationpublic void setViolated(boolean viol)
viol
- true for violated, false for constraint metpublic boolean isViolated()
public java.lang.String getDescription()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |