|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.fopps.model.ConstraintChecker
ConstraintChecker is the base class for all tests regarding feature constraint integrity. Subclasses must
override
checkConstraints(AbstractItem),
ConstraintViolation| Constructor Summary | |
ConstraintChecker()
Creates a new constraint checker |
|
| Method Summary | |
void |
addMessage(java.lang.String pMessage,
int pSeverity)
Adds a violation message |
void |
addMessage(java.lang.String pMessage,
int pSeverity,
AbstractItem pFirst,
AbstractItem pSecond)
Adds a violation message |
abstract boolean |
checkConstraints(AbstractItem pRoot)
Checks the consistency of constraints return false, if one or more errors occured, otherwise true |
void |
clearMessages()
Drops all violation messages |
java.util.Collection |
getMessages()
Returns the list of constraint violations |
boolean |
hasMessages()
Returns true, if constraint violations were detected |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConstraintChecker()
| Method Detail |
public abstract boolean checkConstraints(AbstractItem pRoot)
public java.util.Collection getMessages()
public void addMessage(java.lang.String pMessage,
int pSeverity,
AbstractItem pFirst,
AbstractItem pSecond)
ConstraintViolation.ConstraintViolation(int, String, AbstractItem, AbstractItem)
public void addMessage(java.lang.String pMessage,
int pSeverity)
ConstraintViolation.ConstraintViolation(int, String)public void clearMessages()
public boolean hasMessages()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||