|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.j2ee.ValidationFormatter
Base class for formatters of validation events. Handles plain and xml formats.
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 |
public static final String PLAIN
public static final String XML
Constructor Detail |
public ValidationFormatter()
Method Detail |
public void validationEnded(ValidationEvent event)
validationEnded
in interface ValidationListener
event
- a ValidationEvent
public void validationError(ValidationEvent event)
validationError
in interface ValidationListener
event
- a ValidationEvent
public void validationStarted(ValidationEvent event)
validationStarted
in interface ValidationListener
event
- a ValidationEvent
public void validationWarning(ValidationEvent event)
validationWarning
in interface ValidationListener
event
- a ValidationEvent
public void validationInformation(ValidationEvent event)
validationInformation
in interface ValidationListener
event
- a ValidationEvent
public String getFile()
public void setFile(String file) throws FileNotFoundException
file
- New value of property file.
FileNotFoundException
- if the named file doesn't existpublic boolean isUsefile()
public void setUsefile(boolean usefile)
usefile
- New value of property usefile.public PrintStream getStream()
public void setStream(PrintStream stream)
stream
- New value of property stream.public String getType()
public void setType(String type)
type
- New value of property type.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |