com.jaxfront.core.error
Class UserError

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

public class UserError
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
UserError(java.lang.Object identifierObject, Type source)
           
UserError(java.lang.Object identifierObject, Type source, java.lang.String messageText, java.lang.String classification)
           
UserError(Type source, java.lang.Object identifierObject, java.lang.String messageText, boolean needingUserAcceptance, boolean showDialog, boolean isMandatoryException, java.lang.String classification)
           
 
Method Summary
 java.lang.String getClassification()
          Returns the classification type of this error.
 int getErrorType()
           
 java.lang.String getMessageClassificationForIcon()
          Returns the message classification for a icon.
 java.lang.String getMessageText()
          Returns the message text from the validation exception.
 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.
 
Methods inherited from class com.jaxfront.core.error.AbstractError
equals, getErrorHolder, getHolderXPath, getMessageClassification, getMessageContext, getMessageContextIcon, getMessageIcon, getRaiser, getUniqueIdentification, isCardinalityError, isMandatoryError, markError, release, resetError, setFocus, setRaiser, shouldMarkError, toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserError

public UserError(java.lang.Object identifierObject,
                 Type source)
Parameters:
ex -
source -

UserError

public UserError(java.lang.Object identifierObject,
                 Type source,
                 java.lang.String messageText,
                 java.lang.String classification)

UserError

public UserError(Type source,
                 java.lang.Object identifierObject,
                 java.lang.String messageText,
                 boolean needingUserAcceptance,
                 boolean showDialog,
                 boolean isMandatoryException,
                 java.lang.String classification)
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

isNeedingUserAcceptance

public boolean isNeedingUserAcceptance()
Description copied from interface: Error
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()
Description copied from interface: Error
Returns the message text from the validation exception.


isShowingDialog

public boolean isShowingDialog()
Description copied from interface: Error
Returns true if the error should be shown in a dialog.


getErrorType

public int getErrorType()