public class ValidationController extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
displayErrorMessages |
protected boolean |
displayErrors |
protected boolean |
displayWarningMessages |
protected boolean |
displayWarnings |
protected boolean |
displayXmlPages |
protected static String |
endl |
| Constructor and Description |
|---|
ValidationController()
Constructor creating a new Rice Dictionary Validator
|
ValidationController(boolean displayErrors,
boolean displayWarnings,
boolean displayErrorMessages,
boolean displayWarningMessages,
boolean displayXmlPages)
Constructor creating a new Rice Dictionary Validator with limited information during output
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDisplayErrorMessages()
Gets the displayErrorMessages, whether the error messages should be displayed
|
boolean |
isDisplayErrors()
Gets the displayErrors, whether the number of errors should be displayed
|
boolean |
isDisplayWarningMessages()
Gets the displayWarningMessages, whether the warning messages should be displayed
|
boolean |
isDisplayWarnings()
Gets the displayWarnings, whether the number of warnings should be displayed
|
boolean |
isDisplayXmlPages()
Gets the displayXmlPages, whether the xml pages involved should be displayed
|
void |
setDisplayErrorMessages(boolean display)
Sets the displayErrorMessages
|
void |
setDisplayErrors(boolean display)
Sets the displayErrors
|
void |
setDisplayWarningMessages(boolean display)
Sets the displayWarningMessages
|
void |
setDisplayWarnings(boolean display)
Sets the displayWarnings
|
void |
setDisplayXmlPages(boolean display)
Sets the displayXmlPages
|
boolean |
validate(Component object,
org.apache.commons.logging.Log log,
boolean failOnWarning)
Validates a Component with output going to Log4j
|
boolean |
validate(String[] xmlFiles,
boolean failOnWarning)
Validates a collection of Spring Beans with no output
|
boolean |
validate(String[] xmlFiles,
org.apache.commons.logging.Log log,
boolean failOnWarning)
Validates a collection of Spring Beans with output going to Log4j
|
boolean |
validate(String[] xmlFiles,
PrintStream stream,
boolean failOnWarning)
Validates a collection of Spring Beans with output going to a print stream
|
boolean |
validate(String[] xmlFiles,
org.springframework.core.io.ResourceLoader loader,
DefaultListableBeanFactory beans,
boolean failOnWarning)
Validates a collection of Spring Beans with no output
|
boolean |
validate(String[] xmlFiles,
org.springframework.core.io.ResourceLoader loader,
DefaultListableBeanFactory beans,
org.apache.commons.logging.Log log,
boolean failOnWarning)
Validates a collection of Spring Beans with output going to Log4j
|
boolean |
validate(String[] xmlFiles,
org.springframework.core.io.ResourceLoader loader,
DefaultListableBeanFactory beans,
PrintStream stream,
boolean failOnWarning)
Validates a collection of Spring Beans with output going to a print stream
|
boolean |
validate(String[] xmlFiles,
org.springframework.core.io.ResourceLoader loader,
DefaultListableBeanFactory beans,
String outputFile,
boolean failOnWarning)
Validates a collection of Spring Beans with output going to a file
|
boolean |
validate(String[] xmlFiles,
String outputFile,
boolean failOnWarning)
Validates a collection of Spring Beans with output going to a file
|
protected void |
writeToFile(String path,
Validator validator,
boolean passed)
Writes the results of the validation to an output file
|
protected void |
writeToLog(org.apache.commons.logging.Log log,
Validator validator,
boolean passed)
Writes the results of the validation to an output file
|
protected void |
writeToStream(PrintStream stream,
Validator validator,
boolean passed)
Writes the results of the validation to an output file
|
protected boolean displayWarnings
protected boolean displayErrors
protected boolean displayXmlPages
protected boolean displayErrorMessages
protected boolean displayWarningMessages
public ValidationController(boolean displayErrors, boolean displayWarnings, boolean displayErrorMessages, boolean displayWarningMessages, boolean displayXmlPages)
displayErrors - - True if the Validator should show the number of error during outputdisplayWarnings - - True if the Validator should show the number of warnings during outputdisplayErrorMessages - - True if the Validator should show the messages for the error reportsdisplayWarningMessages - - True if the Validator should show messages involving warningsdisplayXmlPages - - True if the Validator should show the list of xml pages for the error reportspublic ValidationController()
public boolean validate(String[] xmlFiles, org.springframework.core.io.ResourceLoader loader, DefaultListableBeanFactory beans, boolean failOnWarning)
xmlFiles - The collection of xml files used to load the provided beansloader - resource loaderbeans - Collection of preloaded beansfailOnWarning - Whether detecting a warning should cause the validation to failpublic boolean validate(String[] xmlFiles, org.springframework.core.io.ResourceLoader loader, DefaultListableBeanFactory beans, String outputFile, boolean failOnWarning)
xmlFiles - - The collection of xml files used to load the provided beansloader - - The source that was used to load the beansbeans - - Collection of preloaded beansoutputFile - - The file location to save the output tofailOnWarning - - Whether detecting a warning should cause the validation to failpublic boolean validate(String[] xmlFiles, org.springframework.core.io.ResourceLoader loader, DefaultListableBeanFactory beans, PrintStream stream, boolean failOnWarning)
xmlFiles - - The collection of xml files used to load the provided beansloader - - The source that was used to load the beansbeans - - Collection of preloaded beansstream - - The PrintStream the output is sent tofailOnWarning - - Whether detecting a warning should cause the validation to failpublic boolean validate(String[] xmlFiles, org.springframework.core.io.ResourceLoader loader, DefaultListableBeanFactory beans, org.apache.commons.logging.Log log, boolean failOnWarning)
xmlFiles - - The collection of xml files used to load the provided beansloader - - The source that was used to load the beansbeans - - Collection of preloaded beanslog - - The Log4j logger the output is sent tofailOnWarning - - Whether detecting a warning should cause the validation to failpublic boolean validate(String[] xmlFiles, boolean failOnWarning)
xmlFiles - - The collection of xml files used to load the beansfailOnWarning - - Whether detecting a warning should cause the validation to failpublic boolean validate(String[] xmlFiles, String outputFile, boolean failOnWarning)
xmlFiles - - The collection of xml files used to load the beansoutputFile - - The file location to save the output tofailOnWarning - - Whether detecting a warning should cause the validation to failpublic boolean validate(String[] xmlFiles, PrintStream stream, boolean failOnWarning)
xmlFiles - - The collection of xml files used to load the beansstream - - The PrintStream the output is sent tofailOnWarning - - Whether detecting a warning should cause the validation to failpublic boolean validate(String[] xmlFiles, org.apache.commons.logging.Log log, boolean failOnWarning)
xmlFiles - - The collection of xml files used to load the provided beanslog - - The Log4j logger the output is sent tofailOnWarning - - Whether detecting a warning should cause the validation to failpublic boolean validate(Component object, org.apache.commons.logging.Log log, boolean failOnWarning)
object - - The component to be validatedlog - - The Log4j logger the output is sent tofailOnWarning - - Whether detecting a warning should cause the validation to failprotected void writeToFile(String path, Validator validator, boolean passed)
path - - The path to the file to write results tovalidator - - The filled validatorpassed - - Whether the validation passed or notprotected void writeToStream(PrintStream stream, Validator validator, boolean passed)
stream - - The PrintStream the output is sent tovalidator - - The filled validatorpassed - - Whether the validation passed or notprotected void writeToLog(org.apache.commons.logging.Log log, Validator validator, boolean passed)
log - - The Log4j logger the output is sent tovalidator - - The filled validatorpassed - - Whether the validation passed or notpublic void setDisplayWarnings(boolean display)
display - - Display or notpublic void setDisplayErrors(boolean display)
display - - Display or notpublic void setDisplayXmlPages(boolean display)
display - - Display or notpublic void setDisplayErrorMessages(boolean display)
display - - Display or notpublic void setDisplayWarningMessages(boolean display)
display - - Display or notpublic boolean isDisplayWarnings()
public boolean isDisplayErrors()
public boolean isDisplayXmlPages()
public boolean isDisplayErrorMessages()
public boolean isDisplayWarningMessages()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.