|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krad.datadictionary.validator.ValidationController
public class ValidationController
A combination view controller for the Rice Dictionary Validator that handles both the setup/execution of the validation and the output of the results.
| Field Summary | |
|---|---|
protected boolean |
displayErrorMessages
|
protected boolean |
displayErrors
|
protected boolean |
displayWarningMessages
|
protected boolean |
displayWarnings
|
protected boolean |
displayXmlPages
|
protected static String |
endl
|
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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,
KualiDefaultListableBeanFactory beans,
boolean failOnWarning)
Validates a collection of Spring Beans with no output |
boolean |
validate(String[] xmlFiles,
org.springframework.core.io.ResourceLoader loader,
KualiDefaultListableBeanFactory 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,
KualiDefaultListableBeanFactory 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,
KualiDefaultListableBeanFactory 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String endl
protected boolean displayWarnings
protected boolean displayErrors
protected boolean displayXmlPages
protected boolean displayErrorMessages
protected boolean displayWarningMessages
| Constructor Detail |
|---|
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()
| Method Detail |
|---|
public boolean validate(String[] xmlFiles,
org.springframework.core.io.ResourceLoader loader,
KualiDefaultListableBeanFactory beans,
boolean failOnWarning)
xmlFiles - - The collection of xml files used to load the provided beansbeans - - Collection of preloaded beansfailOnWarning - - Whether detecting a warning should cause the validation to fail
public boolean validate(String[] xmlFiles,
org.springframework.core.io.ResourceLoader loader,
KualiDefaultListableBeanFactory 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 fail
public boolean validate(String[] xmlFiles,
org.springframework.core.io.ResourceLoader loader,
KualiDefaultListableBeanFactory 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 fail
public boolean validate(String[] xmlFiles,
org.springframework.core.io.ResourceLoader loader,
KualiDefaultListableBeanFactory 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 fail
public 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 fail
public 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 fail
public 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 fail
public 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 fail
public 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 fail
protected 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 not
protected void writeToStream(PrintStream stream,
Validator validator,
boolean passed)
stream - - The PrintStream the output is sent tovalidator - - The filled validatorpassed - - Whether the validation passed or not
protected 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||