org.apache.maven.j2ee
Class ValidationEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.apache.maven.j2ee.ValidationEvent
All Implemented Interfaces:
Serializable

public class ValidationEvent
extends EventObject

A class that holds details about the validation

Version:
$Id: ValidationEvent.java 170200 2005-05-15 06:24:19Z brett $
Author:
dion
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ValidationEvent(Object source)
          Creates a new instance of ValidationEvent.
ValidationEvent(Object source, Object subject, String message)
          Creates a new instance of ValidationEvent.
 
Method Summary
 String getMessage()
          Getter for property message.
 Object getSubject()
          Getter for property subject.
 void setMessage(String message)
          Setter for property message.
 void setSubject(Object subject)
          Set the subject of the validation event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationEvent

public ValidationEvent(Object source)
Creates a new instance of ValidationEvent.

Parameters:
source - the source of the event, some validator.

ValidationEvent

public ValidationEvent(Object source,
                       Object subject,
                       String message)
Creates a new instance of ValidationEvent.

Parameters:
source - the source of the event, some validator.
subject - the object being validated
message - the validation message
Method Detail

getMessage

public String getMessage()
Getter for property message.

Returns:
Value of property message.

setMessage

public void setMessage(String message)
Setter for property message.

Parameters:
message - New value of property message.

getSubject

public Object getSubject()
Getter for property subject.

Returns:
Value of property subject.

setSubject

public void setSubject(Object subject)
Set the subject of the validation event.

Parameters:
subject - New value of property subject.


Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.