net.sourceforge.chaperon.model
Class Violation

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

public class Violation
extends java.lang.Object

This class represents a violation, which occurs during during the validation of the model.

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

Constructor Summary
Violation(java.lang.String message, java.lang.String location)
          Create a new violation.
 
Method Summary
 java.lang.String getLocation()
          The location of the part from the model.
 java.lang.String getMessage()
          Return the message of the violation.
 java.lang.String toString()
          Return the string representation of the violation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Violation

public Violation(java.lang.String message,
                 java.lang.String location)
Create a new violation.

Parameters:
message - Message of the violation.
location - Location of the part from the model.
Method Detail

getMessage

public java.lang.String getMessage()
Return the message of the violation.

Returns:
Message of the violation.

getLocation

public java.lang.String getLocation()
The location of the part from the model.

Returns:
location of the part from the model.

toString

public java.lang.String toString()
Return the string representation of the violation

Overrides:
toString in class java.lang.Object
Returns:
String representation.


Copyright ? 2003 Chaperon project. All Rights Reserved.