|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.validator.Validator
public class Validator
A validator for Rice Dictionaries that stores the information found during its validation.
Constructor Summary | |
---|---|
Validator()
Constructor creating an empty validation report |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Validator()
Method Detail |
---|
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 found
public boolean validate(String[] xmlFiles, boolean failOnWarning)
failOnWarning
- - Whether detecting a warning should cause the validation to fail
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
- - The source that was used to load the beansbeans
- - Collection of preloaded beansfailOnWarning
- - Whether detecting a warning should cause the validation to fail
public static boolean validateSpringEL(String expression)
expression
- - The expression being validated
public static boolean checkExpressions(Component object, String property)
object
- - The Component being checkedproperty
- - The property being set
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |