|
||||||||||
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.ValidationTrace
public class ValidationTrace
Linear collection of identifiers for individual Spring Beans starting with the base bean and ending with the most recent. Has the ability to located xml files related to the trace.
Field Summary | |
---|---|
static int |
BUILD
|
static String |
NO_BEAN_ID
|
static int |
START_UP
|
Constructor Summary | |
---|---|
ValidationTrace()
Constructor for an empty token to start a trace |
|
ValidationTrace(String[] files,
org.springframework.core.io.ResourceLoader loader)
Constructor for an empty token to start a trace |
Method Summary | |
---|---|
void |
addBean(Component component)
Adds a UIF Component to the trace |
void |
addBean(String beanType,
String beanId)
Adds a single entry into the trace |
void |
addBean(UifDictionaryBean configurable)
Adds a UIF Configurable to the trace |
void |
createError(String validation,
String[] values)
Creates a new error report as an Error and adds it to the global list. |
void |
createWarning(String validation,
String[] values)
Creates a new error report as a Warning and adds it to the global list. |
ArrayList<String> |
findXmlFiles()
Finds related xml files to an error by searching for files that contain beans that have been encountered in the validation. |
String |
getBeanId(int index)
Retrieves a single entry in the BeanId trace list, a collection identifiers for the traced beans |
String |
getBeanLocation()
Retrieves the complete trace path with each bean shown in the form beanId(BeanType) |
String |
getBeanType(int index)
Retrieves a single entry in the BeanType trace list, a collection of types for the traced beansa collection identifiers for the traced beans |
ValidationTrace |
getCopy()
Creates a copy of the ValidationTrace |
ArrayList<String> |
getRelatedXmls()
Retrieves the list of xmls file paths found to be related to error |
int |
getTraceSize()
Retrieves the number of beans in the trace list |
int |
getValidationStage()
Retrieves the stage when the trace is taking place The stage is the time frame when the validation is taking place in the application |
void |
modifyBean(int index,
String beanId,
String beanType)
Replaces a trace entry's information |
void |
removeBean(int index)
Removes an entry from the trace |
void |
setValidationStage(int stage)
Sets the stage of the validation where the trace is taking place |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NO_BEAN_ID
public static final int START_UP
public static final int BUILD
Constructor Detail |
---|
public ValidationTrace()
public ValidationTrace(String[] files, org.springframework.core.io.ResourceLoader loader)
Method Detail |
---|
public void addBean(String beanType, String beanId)
beanId
- - An identifier for the beanbeanType
- - The type of beanpublic void addBean(Component component)
component
- - The object to be addedpublic void addBean(UifDictionaryBean configurable)
configurable
- - The object to be addedpublic void removeBean(int index)
index
- public void modifyBean(int index, String beanId, String beanType)
index
- - The location of the beanbeanId
- - An identifier for the beanbeanType
- - The type of beanpublic ValidationTrace getCopy()
public ArrayList<String> findXmlFiles()
public void setValidationStage(int stage)
stage
- - The stage of the validationpublic void createError(String validation, String[] values)
validation
- - The validation that fails.values
- - The values involved.public void createWarning(String validation, String[] values)
validation
- - The validation that fails.values
- - The values involved.public String getBeanId(int index)
index
- - The location of the bean
public String getBeanType(int index)
index
- - The location of the bean type
public int getValidationStage()
public int getTraceSize()
public String getBeanLocation()
public ArrayList<String> getRelatedXmls()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |