public class ErrorReport extends Object
Constructor and Description |
---|
ErrorReport(int ErrorStatus)
Constructor creating a new report for an error
|
ErrorReport(int errorStatus,
String validationFailed,
String beanLocation)
Constructor creating a new report for an error with set values
|
ErrorReport(int errorStatus,
String validationFailed,
String beanLocation,
String[] values)
Constructor creating a new report for an error with set values
|
ErrorReport(int errorStatus,
String validationFailed,
ValidationTrace trace)
Constructor creating a new report for an error with set values
|
ErrorReport(int errorStatus,
String validationFailed,
ValidationTrace trace,
String[] values)
Constructor creating a new report for an error with set values
|
Modifier and Type | Method and Description |
---|---|
void |
addCurrentValue(String value)
Adds a value involved in the error
|
void |
addXmlPage(String page)
Adds a xml page involved in the error
|
void |
addXmlPages(ArrayList<String> pages)
Add a list of xml page involved in the error
|
static ErrorReport |
createError(String validationFailed,
ValidationTrace trace)
Creates a new ErrorReport of ERROR status
|
static ErrorReport |
createWarning(String validationFailed,
ValidationTrace trace)
Creates a new ErrorReport of WARNING status
|
String |
errorMessage()
Creates a message for the error being reported
|
String |
errorPageList()
Creates a message for the xml pages involved
|
String |
getBeanLocation()
Retrieves the location of the bean in the trace
|
String |
getCurrentValue(int index)
Retrieves a value involved in the error
|
int |
getCurrentValueSize()
Retrieves the number of values involved in the error.
|
int |
getErrorStatus()
Retrieves the type of error
|
String |
getValidationFailed()
Retrieves the validation that was failed
|
String |
getXmlPage(int index)
Retrieves a xml page file location involved in the error
|
int |
getXmlPageSize()
Retireves the number of xml pages involved in the error
|
void |
modifyCurrentValue(int index,
String value)
Replaces a value in the list of those involved
|
void |
modifyXmlPage(int index,
String page)
Replaces a xml page in the list of those involved
|
void |
removeCurrentValue(int index)
Removes a value from the list of those involved
|
void |
removeXmlPage(int index)
Removes a xml page from the list of those involved
|
void |
setBeanLocation(String location)
Sets the location of the bean in the trace
|
void |
setValidationFailed(String validation)
Sets the validation that was failed
|
public static final int ERROR
public static final int WARNING
public ErrorReport(int ErrorStatus)
ErrorStatus
- - The type of error being reportedpublic ErrorReport(int errorStatus, String validationFailed, String beanLocation, String[] values)
errorStatus
- - The type of error being reportedvalidationFailed
- - The validation that was failedbeanLocation
- - The location of the bean in which error occuredvalues
- - An array of the values effectedpublic ErrorReport(int errorStatus, String validationFailed, ValidationTrace trace)
errorStatus
- - The type of error being reportedvalidationFailed
- - The validation that was failedtrace
- - ValidationTrace containing information on xml files and locationpublic ErrorReport(int errorStatus, String validationFailed, ValidationTrace trace, String[] values)
errorStatus
- - The type of error being reportedvalidationFailed
- - The validation that was failedtrace
- - ValidationTrace containing information on xml files and locationvalues
- - An array of the values effectedpublic ErrorReport(int errorStatus, String validationFailed, String beanLocation)
errorStatus
- - The type of error being reportedvalidationFailed
- - The validation that was failedbeanLocation
- - The location of the bean in which error occuredpublic static ErrorReport createError(String validationFailed, ValidationTrace trace)
validationFailed
- - The validation that was failedtrace
- - ValidationTrace containing information on xml files and locationpublic static ErrorReport createWarning(String validationFailed, ValidationTrace trace)
validationFailed
- - The validation that was failedtrace
- - ValidationTrace containing information on xml files and locationpublic void addCurrentValue(String value)
value
- - Value involved ("Name of Value = Its Value")public void addXmlPage(String page)
page
- - The file path of the xml page involvedpublic void addXmlPages(ArrayList<String> pages)
pages
- - The file path of the xml page involvedpublic void removeCurrentValue(int index)
index
- - The index of the valuepublic void removeXmlPage(int index)
index
- - The index of the xml pagepublic void modifyCurrentValue(int index, String value)
index
- - The index of the valuevalue
- - The value to replace the value withpublic void modifyXmlPage(int index, String page)
index
- - The index of the pagepage
- - The page to replace the xml page withpublic String errorMessage()
public String errorPageList()
public void setValidationFailed(String validation)
validation
- - The validation that failedpublic void setBeanLocation(String location)
location
- - The Bean locationpublic int getErrorStatus()
public String getValidationFailed()
public String getBeanLocation()
public String getCurrentValue(int index)
index
- - The index of the valuepublic String getXmlPage(int index)
index
- - The index of the pagepublic int getCurrentValueSize()
public int getXmlPageSize()
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.