Condividi tramite


ValidationMessage Class

Definition

ValidationMessage is used to carry validation messages that can be picked up by ValidationMessageObserver class. ValidationMessage are created from within user defined validation mehod. The actual creation is done via the virtual method ValidationContext.ConstructValidationMessage.

public ref class ValidationMessage
public class ValidationMessage
type ValidationMessage = class
Public Class ValidationMessage
Inheritance
ValidationMessage
Derived

Constructors

ValidationMessage(ValidationContext, String, Int32, Int32)

ctor

ValidationMessage(ValidationContext, String, String, ViolationType)

constructor

ValidationMessage(ValidationContext, String)

constructor

Properties

Code

Error or warning code

Column

column within line of text where error occurs.

Context

context against which this validation message was generated.

Description

Problem descrription.

File

return the name of the first referenced file, if one exists, otherwise null.

HelpKeyword

the help keyword is the validation's error code

Line

line number within the file

ReferencedFiles

Update the related files.

ReferencedModelElements

model elements referenced by this message.

Type

The type of message: e.g. Error or Warning

Methods

Equals(Object)

define equality between two ValidationMessages. Override in base class if this definition is not sufficient.

GetHashCode()

reuse description text's has code.

ToString()
UpdateFileReferences(IEnumerable<String>)

Update the related files.

UpdateFileReferences(String)
UpdateReferencedModelElements(IEnumerable<ModelElement>)

Update the referenced model elements

Applies to