com.jaxfront.core.error
Class ValidationError

java.lang.Object
  extended by com.jaxfront.core.error.AbstractError
      extended by com.jaxfront.core.error.ValidationError
All Implemented Interfaces:
Error

public class ValidationError
extends AbstractError

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.

Version:
1.50

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

ValidationError

public ValidationError(ValidationException ex,
                       Type source)
Parameters:
ex -
source -
Method Detail

getMessageClassificationForIcon

public java.lang.String getMessageClassificationForIcon()
Description copied from class: AbstractError
Returns the message classification for a icon. In cause of the nls the icon name shouldn't be translate

Specified by:
getMessageClassificationForIcon in class AbstractError
Returns:

getClassification

public java.lang.String getClassification()
Description copied from class: AbstractError
Returns the classification type of this error.

Specified by:
getClassification in interface Error
Specified by:
getClassification in class AbstractError

isCardinalityError

public boolean isCardinalityError()
Returns true if this validation error is a cardinality violation error.

Specified by:
isCardinalityError in interface Error
Overrides:
isCardinalityError in class AbstractError

getException

public ValidationException getException()
Returns the condition that led to this Validation Error.

Returns:
Returns the condition that led to this Validation Error.

isMandatoryError

public boolean isMandatoryError()
Returns true if this validation error is a mandatory error.

Specified by:
isMandatoryError in interface Error
Overrides:
isMandatoryError in class AbstractError

isNeedingUserAcceptance

public boolean isNeedingUserAcceptance()
Returns if the current ValidationError needs user acceptance to resolve it.

Returns:
true, if the current ValidationError needs user acceptance, false otherwise

getMessageText

public java.lang.String getMessageText()
Returns the message text from the validation exception.


isShowingDialog

public boolean isShowingDialog()
Returns true if the error should be shown in a dialog.


getErrorType

public int getErrorType()

release

public void release()
Specified by:
release in interface Error
Overrides:
release in class AbstractError