org.apache.maven.j2ee
Class ValidationStatusListener

java.lang.Object
  extended byorg.apache.maven.j2ee.ValidationStatusListener
All Implemented Interfaces:
EventListener, ValidationListener

public class ValidationStatusListener
extends Object
implements ValidationListener

A ValidationListener that tracks events and will provide a true/false response about the status of the validation.

Version:
$Id: ValidationStatusListener.java 170200 2005-05-15 06:24:19Z brett $
Author:
dIon Gillard

Constructor Summary
ValidationStatusListener()
          Creates a new instance of ValidationStatusListener
 
Method Summary
 boolean isEnded()
          Has validation ended?
 boolean isError()
          Has a validation error occurred?
 boolean isInformation()
          Gets whether an info message has been issued.
 boolean isStarted()
          Has validation started?
 boolean isWarning()
          Has a validation warning occurred?
 void setInformation(boolean information)
          Sets whether an info message has been issued.
 void validationEnded(ValidationEvent event)
          Called when validation ends.
 void validationError(ValidationEvent event)
          Called when a validation error occurs.
 void validationInformation(ValidationEvent event)
          Called when validation info messages are issued.
 void validationStarted(ValidationEvent event)
          Called when validation starts.
 void validationWarning(ValidationEvent event)
          Called when a validation warning occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationStatusListener

public ValidationStatusListener()
Creates a new instance of ValidationStatusListener

Method Detail

validationError

public void validationError(ValidationEvent event)
Called when a validation error occurs. That is, the subject being validated has a serious (fatal) problem. Sets the error property to true.

Specified by:
validationError in interface ValidationListener
Parameters:
event - a ValidationEvent

validationWarning

public void validationWarning(ValidationEvent event)
Called when a validation warning occurs. That is, the subject being validated has a problem which may not be fatal. Sets the warning property to true.

Specified by:
validationWarning in interface ValidationListener
Parameters:
event - a ValidationEvent

validationInformation

public void validationInformation(ValidationEvent event)
Called when validation info messages are issued. Sets the information property to true.

Specified by:
validationInformation in interface ValidationListener
Parameters:
event - a ValidationEvent

validationStarted

public void validationStarted(ValidationEvent event)
Called when validation starts. Sets the started property to true

Specified by:
validationStarted in interface ValidationListener
Parameters:
event - a ValidationEvent

validationEnded

public void validationEnded(ValidationEvent event)
Called when validation ends. Sets the ended property to true

Specified by:
validationEnded in interface ValidationListener
Parameters:
event - a ValidationEvent

isEnded

public boolean isEnded()
Has validation ended?

Returns:
Value of property ended.

isError

public boolean isError()
Has a validation error occurred?

Returns:
Value of property error.

isStarted

public boolean isStarted()
Has validation started?

Returns:
Value of property started.

isWarning

public boolean isWarning()
Has a validation warning occurred?

Returns:
Value of property warning.

isInformation

public boolean isInformation()
Gets whether an info message has been issued.

Returns:
Value of property information.

setInformation

public void setInformation(boolean information)
Sets whether an info message has been issued.

Parameters:
information - New value of property information.


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