public class SetValueError
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
errorType |
Constructor and Description |
---|
SetValueError(ERMAttributeError attributeError,
BoundComponentInstance component) |
SetValueError(java.lang.String attribute,
java.util.List warnings,
DataBean dataBean,
int row,
MboSetRemote mboSetRemote) |
SetValueError(java.lang.String attribute,
MXException exception,
DataBean dataBean,
int row,
MboSetRemote mboSetRemote) |
Modifier and Type | Method and Description |
---|---|
boolean |
boundToSameMbo(SetValueError newError)
Returns true if the error passed in is bound to the same Mbo as this SetValueError
|
boolean |
equals(java.lang.Object o) |
ApplicationError |
getApplicationError()
Returns the ApplicationError object associated with this class.
|
WebClientEvent |
getAssociatedEvent()
Returns the WebClientEvent associated with this error.
|
java.lang.String |
getEnteredValue() |
int |
getErrorType()
Returns the type of error.
|
MXException |
getException()
Returns the MXException associated with the error.
|
BoundComponentInstance |
getInitialComponent()
This method returns the BoundComponentInstance that basically created the error.
|
MboSetRemote |
getMboSet()
Gets the MboSet that the error occurred.
|
java.lang.String |
getPreviousValue()
Returns the previous value of the attribute
|
int |
getRow()
Returns the mbo index (row) assocaited with the error
|
java.lang.String |
getUserDisplayValue() |
java.util.List |
getWarnings()
Returns a List of Warnings for the error
|
int |
hasHigherError(int errorLevel)
This method checks the passed in error level against the error level of this error
and returns the error level that is more severe.
|
void |
invalidate()
Invalidates the error and cleans up any instances that need it
|
protected boolean |
isErrorStillValid()
Returns true if the error is still a valid error
|
void |
notifyMbo()
This method will set the SetValueError (this) on the mbo and attribute associated with the error
|
void |
resetErrorChecked()
This method is called on the error after render in order for the error to "reset" itself to be
validated again after the next event.
|
void |
setAssociatedEvent(WebClientEvent associatedEvent)
Sets the WebClientEvent associated with is error
|
void |
setEnteredValue(java.lang.String enteredValue) |
void |
setInitialComponent(BoundComponentInstance component)
This method sets the component that initially is associated this the error.
|
void |
setPreviousValue(java.lang.String previousValue) |
void |
setUserDisplayValue(java.lang.String userDisplayValue) |
public SetValueError(java.lang.String attribute, java.util.List warnings, DataBean dataBean, int row, MboSetRemote mboSetRemote)
public SetValueError(java.lang.String attribute, MXException exception, DataBean dataBean, int row, MboSetRemote mboSetRemote)
public SetValueError(ERMAttributeError attributeError, BoundComponentInstance component)
public void notifyMbo()
public int getRow()
public java.util.List getWarnings()
public MXException getException()
public int getErrorType()
protected boolean isErrorStillValid()
public void invalidate()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public MboSetRemote getMboSet()
mboSet
- public void resetErrorChecked()
public java.lang.String getPreviousValue()
public java.lang.String getUserDisplayValue()
public java.lang.String getEnteredValue()
public void setPreviousValue(java.lang.String previousValue)
previousValue
- the previousValue to setpublic void setEnteredValue(java.lang.String enteredValue)
enteredValue
- the enteredValue to setpublic void setUserDisplayValue(java.lang.String userDisplayValue)
userDisplayValue
- the userDisplayValue to setpublic int hasHigherError(int errorLevel)
errorLevel
- error level to compare against the error level of this objectpublic WebClientEvent getAssociatedEvent()
public void setAssociatedEvent(WebClientEvent associatedEvent)
associatedEvent
- the associatedEvent to setpublic boolean boundToSameMbo(SetValueError newError)
newError
- componentDataBean
- public void setInitialComponent(BoundComponentInstance component)
component
- public BoundComponentInstance getInitialComponent()
public ApplicationError getApplicationError()