|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.chaperon.model.Violations
public class Violations
Violations represents a collection of violation.
Constructor Summary | |
---|---|
Violations()
|
Method Summary | |
---|---|
void |
addViolation(java.lang.String message,
java.lang.String location)
Add a violation to this collection |
void |
addViolation(Violation violation)
Add a violation to this collection. |
void |
addViolations(Violations violations)
Add a collection of violation to this collection. |
Violation |
getViolation(int index)
Return a violation of this collection, specified by an index. |
int |
getViolationCount()
Return the count of violations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Violations()
Method Detail |
---|
public void addViolation(Violation violation)
violation
- Violation, which should be added.public void addViolation(java.lang.String message, java.lang.String location)
message
- Message of the violation.location
- Location of the modelpublic void addViolations(Violations violations)
violations
- Collection of violations.public Violation getViolation(int index)
index
- Index of the violation.
public int getViolationCount()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |