|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jaxfront.core.error.AbstractError
public abstract class 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.
Field Summary | |
---|---|
static int |
ALL_ERROR
|
static int |
CONDITIONAL_ERROR
|
static int |
USER_ERROR
|
static int |
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 | |
---|---|
AbstractError(java.lang.Object identifierObject,
Type source)
|
|
AbstractError(Type source)
Creates a new ValidationError based on a nestec excpetion and the source type. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
abstract java.lang.String |
getClassification()
Returns the classification type of this error. |
Type |
getErrorHolder()
Gets the source type on which the ValidationError occured. |
java.lang.String |
getHolderXPath()
Returns the xpath location of the source type. |
java.lang.String |
getMessageClassification()
Returns the translated classification of this error. |
abstract java.lang.String |
getMessageClassificationForIcon()
Returns the message classification for a icon. |
java.lang.String |
getMessageContext()
Returns the context xpath of this error. e.q.: /item[3]/partNum |
javax.swing.ImageIcon |
getMessageContextIcon()
Returns the tree icon of the source type of this error. |
javax.swing.ImageIcon |
getMessageIcon()
Returns the corresponding message object of the current Validation Error. |
Type |
getRaiser()
Gets the source type on which the ValidationError occured. |
java.lang.Object |
getUniqueIdentification()
|
boolean |
isCardinalityError()
|
boolean |
isMandatoryError()
|
void |
markError()
Makes the validation error visible on the source type's visualizer. |
void |
release()
|
void |
resetError()
Removes the validation error from the source type's visualizer. |
void |
setFocus()
Sets the focus to the source type's visualizer. |
void |
setRaiser(Type raiser)
Gets the source type on which the ValidationError occured. |
boolean |
shouldMarkError()
Returns true if error is of type INCOMPLETE or ERROR. |
java.lang.String |
toString()
Returns the current validation exception as String. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.jaxfront.core.error.Error |
---|
getErrorType, getMessageText, isNeedingUserAcceptance, isShowingDialog |
Field Detail |
---|
public static final int ALL_ERROR
public static final int VALIDATION_ERROR
public static final int CONDITIONAL_ERROR
public static final int USER_ERROR
Constructor Detail |
---|
public AbstractError(Type source)
ex
- a ValidationException that occuredsource
- the type on which the exception occuredpublic AbstractError(java.lang.Object identifierObject, Type source)
Method Detail |
---|
public Type getErrorHolder()
getErrorHolder
in interface Error
public void release()
release
in interface Error
public void markError()
markError
in interface Error
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void resetError()
resetError
in interface Error
public void setFocus()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getMessageClassification()
getMessageClassification
in interface Error
public abstract java.lang.String getClassification()
getClassification
in interface Error
public abstract java.lang.String getMessageClassificationForIcon()
public javax.swing.ImageIcon getMessageIcon()
getMessageIcon
in interface Error
public java.lang.String getHolderXPath()
getHolderXPath
in interface Error
public java.lang.String getMessageContext()
getMessageContext
in interface Error
public javax.swing.ImageIcon getMessageContextIcon()
getMessageContextIcon
in interface Error
public java.lang.Object getUniqueIdentification()
getUniqueIdentification
in interface Error
public boolean shouldMarkError()
shouldMarkError
in interface Error
public boolean isMandatoryError()
isMandatoryError
in interface Error
public boolean isCardinalityError()
isCardinalityError
in interface Error
public void setRaiser(Type raiser)
public Type getRaiser()
getRaiser
in interface Error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |