public class ValidationTrace extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BUILD |
static String |
NO_BEAN_ID |
static int |
START_UP |
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
public static final String NO_BEAN_ID
public static final int START_UP
public static final int BUILD
public ValidationTrace()
public ValidationTrace(String[] files, org.springframework.core.io.ResourceLoader loader)
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 beanpublic String getBeanType(int index)
index
- - The location of the bean typepublic int getValidationStage()
public int getTraceSize()
public String getBeanLocation()
public ArrayList<String> getRelatedXmls()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.