ValidatePath

Description

[ShutdownSurvive]
sealed class Tinman.Core.Validating.ValidatePath

A validation path into a data model.

Public / Constants

None


public static readonly attribute None → (ValidatePath)

An empty path.

Public / Methods

Concat


public static method Concat → (2)

first in : ValidatePath

First path value or null.

second in : ValidatePath

Second path value or null.

returns → ValidatePath

The resulting path value or null if empty.

Concatenates the given paths.

Cut​First


public method CutFirst → ()

returns → ValidatePath

The resulting path or null if empty.

Removes the first element from this path.

To​String

2 overloads


public method ToString1 → (1)

sb in : StringBuilder

[not-null]
The string builder to use.

Formats this validation path as a string.

Public / Attributes

Culprit


public attribute Culprit → (get)

value : ICodeRange

The culprit object or null if no object has been reported.

The object that has caused a validation error or warning.

Entry


public attribute Entry → (get)

value : string

The entry value or null if Type is not ValidatePathElement.Entry.

Returns the entry value of the first path element.

Index


public attribute Index → (get)

value : int32

The index or -1 if Type is not ValidatePathElement.Index.

Returns the index of the first path element.

Length


public attribute Length → (get)

value : int32

[>=0]
The length, in path elements (see ValidatePathElement).

Returns the length of this path.

Member


public attribute Member → (get)

value : string

The member name or null if Type is not ValidatePathElement.Member.

Returns the member name of the first path element.

Type


public attribute Type → (get)

value : ValidatePathElement

The path element type.

Returns the type of the first element of this path.