|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jaxfront.core.error.AbstractError
com.jaxfront.core.error.ValidationError
public class ValidationError
This class represents a ValidationError. ValidationErrors occur, if any value changes of the JAXFront DOM are not conform with the rules defined in the XUI document.
Field Summary |
---|
Fields inherited from class com.jaxfront.core.error.AbstractError |
---|
ALL_ERROR, CONDITIONAL_ERROR, USER_ERROR, VALIDATION_ERROR |
Fields inherited from interface com.jaxfront.core.error.Error |
---|
CLASSIFICATION_ERROR, CLASSIFICATION_HINT, CLASSIFICATION_INCOMPLETE, CLASSIFICATION_INFO, CLASSIFICATION_QUESTION, CLASSIFICATION_WARNING |
Constructor Summary | |
---|---|
ValidationError(ValidationException ex,
Type source)
|
Method Summary | |
---|---|
java.lang.String |
getClassification()
Returns the classification type of this error. |
int |
getErrorType()
|
ValidationException |
getException()
Returns the condition that led to this Validation Error. |
java.lang.String |
getMessageClassificationForIcon()
Returns the message classification for a icon. |
java.lang.String |
getMessageText()
Returns the message text from the validation exception. |
boolean |
isCardinalityError()
Returns true if this validation error is a cardinality violation error. |
boolean |
isMandatoryError()
Returns true if this validation error is a mandatory error. |
boolean |
isNeedingUserAcceptance()
Returns if the current ValidationError needs user acceptance to resolve it. |
boolean |
isShowingDialog()
Returns true if the error should be shown in a dialog. |
void |
release()
|
Methods inherited from class com.jaxfront.core.error.AbstractError |
---|
equals, getErrorHolder, getHolderXPath, getMessageClassification, getMessageContext, getMessageContextIcon, getMessageIcon, getRaiser, getUniqueIdentification, markError, resetError, setFocus, setRaiser, shouldMarkError, toString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValidationError(ValidationException ex, Type source)
ex
- source
- Method Detail |
---|
public java.lang.String getMessageClassificationForIcon()
AbstractError
getMessageClassificationForIcon
in class AbstractError
public java.lang.String getClassification()
AbstractError
getClassification
in interface Error
getClassification
in class AbstractError
public boolean isCardinalityError()
isCardinalityError
in interface Error
isCardinalityError
in class AbstractError
public ValidationException getException()
public boolean isMandatoryError()
isMandatoryError
in interface Error
isMandatoryError
in class AbstractError
public boolean isNeedingUserAcceptance()
public java.lang.String getMessageText()
public boolean isShowingDialog()
public int getErrorType()
public void release()
release
in interface Error
release
in class AbstractError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |