Table of Contents

Class DefaultValidationRules

Inheritance
DefaultValidationRules
Inherited Members
Namespace
TabularEditor.SemanticBridge.Platforms.Databricks.Validation
Assembly
SemanticBridge.dll

Provides the default set of validation rules that match the current implementation of MetricViewValidationVisitor.

public static class DefaultValidationRules

Fields

TranslatableMetricViewRules

public static readonly ImmutableArray<IMetricViewValidationRule> TranslatableMetricViewRules

Field Value

Type Description
ImmutableArray<IMetricViewValidationRule>

ValidMetricViewRules

public static readonly ImmutableArray<IMetricViewValidationRule> ValidMetricViewRules

Field Value

Type Description
ImmutableArray<IMetricViewValidationRule>

Methods

ForType<T>()

Returns validation rules for the specified type.

public static IEnumerable<IMetricViewValidationRule> ForType<T>() where T : IMetricViewObject

Returns

Type Description
IEnumerable<IMetricViewValidationRule>

ValidMetricViewRules that apply to the specified type.

Type Parameters

Name Description
T

The type of object to get rules for.

GetByName(string)

Returns validation rules with the specified name.

public static IMetricViewValidationRule? GetByName(string name)

Parameters

Type Name Description
string name

The name of the rule to find.

Returns

Type Description
IMetricViewValidationRule

The rule with the specified name, or null if not found.

InCategory(string)

Returns validation rules in the specified category.

public static IEnumerable<IMetricViewValidationRule> InCategory(string category)

Parameters

Type Name Description
string category

The category of rules to get.

Returns

Type Description
IEnumerable<IMetricViewValidationRule>

ValidMetricViewRules that belong to the specified category.