org.apache.maven.j2ee
Class ValidationFormatter

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

public class ValidationFormatter
extends Object
implements ValidationListener

Base class for formatters of validation events. Handles plain and xml formats.

Version:
$Id: ValidationFormatter.java 170200 2005-05-15 06:24:19Z brett $
Author:
dion

Field Summary
static String PLAIN
          Plain format output
static String XML
          xml format output
 
Constructor Summary
ValidationFormatter()
          Creates a new instance of ValidationFormatter
 
Method Summary
 String getFile()
          Getter for property file.
 PrintStream getStream()
          Getter for property stream.
 String getType()
          Getter for property type.
 boolean isUsefile()
          Getter for property usefile.
 void setFile(String file)
          Setter for property file.
 void setStream(PrintStream stream)
          Setter for property stream.
 void setType(String type)
          Setter for property type.
 void setUsefile(boolean usefile)
          Setter for property usefile.
 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 information events are fired.
 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
 

Field Detail

PLAIN

public static final String PLAIN
Plain format output

See Also:
Constant Field Values

XML

public static final String XML
xml format output

See Also:
Constant Field Values
Constructor Detail

ValidationFormatter

public ValidationFormatter()
Creates a new instance of ValidationFormatter

Method Detail

validationEnded

public void validationEnded(ValidationEvent event)
Called when validation ends

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

validationError

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

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

validationStarted

public void validationStarted(ValidationEvent event)
Called when validation starts

Specified by:
validationStarted 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

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

validationInformation

public void validationInformation(ValidationEvent event)
Called when validation information events are fired.

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

getFile

public String getFile()
Getter for property file.

Returns:
Value of property file.

setFile

public void setFile(String file)
             throws FileNotFoundException
Setter for property file.

Parameters:
file - New value of property file.
Throws:
FileNotFoundException - if the named file doesn't exist

isUsefile

public boolean isUsefile()
Getter for property usefile.

Returns:
Value of property usefile.

setUsefile

public void setUsefile(boolean usefile)
Setter for property usefile.

Parameters:
usefile - New value of property usefile.

getStream

public PrintStream getStream()
Getter for property stream.

Returns:
Value of property stream.

setStream

public void setStream(PrintStream stream)
Setter for property stream.

Parameters:
stream - New value of property stream.

getType

public String getType()
Getter for property type.

Returns:
Value of property type.

setType

public void setType(String type)
Setter for property type.

Parameters:
type - New value of property type.


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