| Constructor and Description |
|---|
Validator()
Constructor creating an empty validation report
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addErrorReport(ErrorReport report) |
static boolean |
checkExpressions(Component object,
String property)
Checks if a property of a Component is being set by expressions
|
ErrorReport |
getErrorReport(int index)
Retrieves an individual error report for errors found during the validation
|
static List<ErrorReport> |
getErrorReports() |
int |
getErrorReportSize()
Retrieves the number of error reports generated during the validation
|
int |
getNumberOfErrors()
Retrieves the number of errors found in the validation
|
int |
getNumberOfWarnings()
Retrieves the number of warnings found in the validation
|
DefaultListableBeanFactory |
loadBeans(String[] xmlFiles)
Loads the Spring Beans from a list of xml files
|
static void |
resetErrorReport() |
boolean |
validate(Component object,
boolean failOnWarning)
Validates a UIF Component
|
boolean |
validate(String[] xmlFiles,
boolean failOnWarning)
Validates the beans in a collection of xml files
|
boolean |
validate(String[] xmlFiles,
org.springframework.core.io.ResourceLoader loader,
DefaultListableBeanFactory beans,
boolean failOnWarning)
Validates a collection of beans
|
static boolean |
validateSpringEL(String expression)
Validates an expression string for correct Spring Expression language syntax
|
public Validator()
public static void addErrorReport(ErrorReport report)
public static void resetErrorReport()
public boolean validate(Component object, boolean failOnWarning)
object - - The UIF Component to be validatedfailOnWarning - - Whether the validation should fail if warnings are foundpublic boolean validate(String[] xmlFiles, boolean failOnWarning)
xmlFiles - files to validatefailOnWarning - - Whether detecting a warning should cause the validation to failpublic 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 - - The source that was used to load the beansbeans - - Collection of preloaded beansfailOnWarning - - Whether detecting a warning should cause the validation to failpublic static boolean validateSpringEL(String expression)
expression - - The expression being validatedpublic static boolean checkExpressions(Component object, String property)
object - - The Component being checkedproperty - - The property being setpublic DefaultListableBeanFactory loadBeans(String[] xmlFiles)
xmlFiles - public int getNumberOfErrors()
public int getNumberOfWarnings()
public ErrorReport getErrorReport(int index)
index - public int getErrorReportSize()
public static List<ErrorReport> getErrorReports()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.