| java.lang.Object net.sourceforge.chaperon.model.Violations
Violations | public class Violations (Code) | | Violations represents a collection of violation.
author: Stephan Michels version: CVS $Id: Violations.java,v 1.4 2003/12/09 19:55:52 benedikta Exp $ |
addViolation | public void addViolation(Violation violation)(Code) | | Add a violation to this collection.
Parameters: violation - Violation, which should be added. |
addViolation | public void addViolation(String message, String location)(Code) | | Add a violation to this collection
Parameters: message - Message of the violation. Parameters: location - Location of the model |
addViolations | public void addViolations(Violations violations)(Code) | | Add a collection of violation to this collection.
Parameters: violations - Collection of violations. |
getViolation | public Violation getViolation(int index)(Code) | | Return a violation of this collection, specified by an index.
Parameters: index - Index of the violation. Violation |
getViolationCount | public int getViolationCount()(Code) | | Return the count of violations.
Count of violations. |
|
|