Class ValidationMessage
- java.lang.Object
-
- net.ssehub.easy.basics.messages.Message
-
- net.ssehub.easy.varModel.validation.ValidationMessage
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ObjectcauseStores the cause of the message.private intcodeStores the type of the message (see constants above).static intELEMENT_IS_NULLDenotes the case that contained element (reference) is null.static intILLEGAL_COMMENTDenotes an illegal comment.static intINVALID_IDENTIFIERDenotes the case that an identifier is invalid (seeIvmlIdentifierCheck).static intINVALID_PARENTDenotes the case that a parent reference is invalid, e.g., null.static intIS_NULLDenotes a generic null pointer which shall not be present.static intMISSING_CUSTOM_DATATYPEDenotes a missingCustomDatatypeof anAbstractVariable.static intMISSING_EXPRESSIONDenotes the case that an expression is missing.static intTYPE_IS_NULLDenotes the case that a type reference is null.static intUNDECLARED_SLOTDenotes the case that a slot in a compound is used but not declared.static intUNRESOLVED_ANNOTATIONDenotes that an annotation is pointing to an element, which was not annotated by this annotation.static intUNRESOLVED_OPERATIONDenotes a missing/unspecified operation used inside anOCLFeatureCall.
-
Constructor Summary
Constructors Constructor Description ValidationMessage(java.lang.String description, Status status, int code)Creates a validation message (without a model element as cause).ValidationMessage(java.lang.String description, Status status, java.lang.Object cause, int code)Creates a validation message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetCause()Returns the cause of this message.intgetCode()Returns the code of this message.-
Methods inherited from class net.ssehub.easy.basics.messages.Message
containsError, getDescription, getDetailedDescription, getStatus, toString
-
-
-
-
Field Detail
-
ELEMENT_IS_NULL
public static final int ELEMENT_IS_NULL
Denotes the case that contained element (reference) is null.- See Also:
- Constant Field Values
-
INVALID_IDENTIFIER
public static final int INVALID_IDENTIFIER
Denotes the case that an identifier is invalid (seeIvmlIdentifierCheck).- See Also:
- Constant Field Values
-
TYPE_IS_NULL
public static final int TYPE_IS_NULL
Denotes the case that a type reference is null.- See Also:
- Constant Field Values
-
INVALID_PARENT
public static final int INVALID_PARENT
Denotes the case that a parent reference is invalid, e.g., null.- See Also:
- Constant Field Values
-
UNDECLARED_SLOT
public static final int UNDECLARED_SLOT
Denotes the case that a slot in a compound is used but not declared.- See Also:
- Constant Field Values
-
MISSING_EXPRESSION
public static final int MISSING_EXPRESSION
Denotes the case that an expression is missing.- See Also:
- Constant Field Values
-
IS_NULL
public static final int IS_NULL
Denotes a generic null pointer which shall not be present.- See Also:
- Constant Field Values
-
ILLEGAL_COMMENT
public static final int ILLEGAL_COMMENT
Denotes an illegal comment.- See Also:
- Constant Field Values
-
MISSING_CUSTOM_DATATYPE
public static final int MISSING_CUSTOM_DATATYPE
Denotes a missingCustomDatatypeof anAbstractVariable.- See Also:
- Constant Field Values
-
UNRESOLVED_OPERATION
public static final int UNRESOLVED_OPERATION
Denotes a missing/unspecified operation used inside anOCLFeatureCall. The operation was not resolved, probably becauseOCLFeatureCall.inferDatatype()was not called.- See Also:
- Constant Field Values
-
UNRESOLVED_ANNOTATION
public static final int UNRESOLVED_ANNOTATION
Denotes that an annotation is pointing to an element, which was not annotated by this annotation.- See Also:
- Constant Field Values
-
code
private int code
Stores the type of the message (see constants above).
-
cause
private java.lang.Object cause
Stores the cause of the message.
-
-
Constructor Detail
-
ValidationMessage
public ValidationMessage(java.lang.String description, Status status, int code)Creates a validation message (without a model element as cause).- Parameters:
description- the message descriptionstatus- the status of the messagecode- an optional code identifying the specific kind of message typically used while automated testing (use constants defined in this class)
-
ValidationMessage
public ValidationMessage(java.lang.String description, Status status, java.lang.Object cause, int code)Creates a validation message.- Parameters:
description- the message descriptionstatus- the status of the messagecause- the element which caused the message (may be null)code- an optional code identifying the specific kind of message typically used while automated testing (use constants defined in this class)
-
-