net.sourceforge.chaperon.model
Class Violations

java.lang.Object
  extended by net.sourceforge.chaperon.model.Violations

public class Violations
extends java.lang.Object

Violations represents a collection of violation.

Version:
CVS $Id: Violations.java,v 1.4 2003/12/09 19:55:52 benedikta Exp $
Author:
Stephan Michels

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

Violations

public Violations()
Method Detail

addViolation

public void addViolation(Violation violation)
Add a violation to this collection.

Parameters:
violation - Violation, which should be added.

addViolation

public void addViolation(java.lang.String message,
                         java.lang.String location)
Add a violation to this collection

Parameters:
message - Message of the violation.
location - Location of the model

addViolations

public void addViolations(Violations violations)
Add a collection of violation to this collection.

Parameters:
violations - Collection of violations.

getViolation

public Violation getViolation(int index)
Return a violation of this collection, specified by an index.

Parameters:
index - Index of the violation.
Returns:
Violation

getViolationCount

public int getViolationCount()
Return the count of violations.

Returns:
Count of violations.


Copyright ? 2003 Chaperon project. All Rights Reserved.