Table of Contents

Class OdfValidationReportJsonModel

Namespace
OdfKit.Compliance
Assembly
OdfKit.dll

Provides the OdfValidationReportJsonModel API. 表示驗證報告的 JSON 匯出模型。

public sealed class OdfValidationReportJsonModel
Inheritance
OdfValidationReportJsonModel
Inherited Members

Constructors

OdfValidationReportJsonModel(bool, string, string, int, int, int, int, int, IReadOnlyList<OdfValidationIssueJsonModel>)

Performs odf validation report json model. 初始化 OdfValidationReportJsonModel 類別的新執行個體。

public OdfValidationReportJsonModel(bool isValid, string detectedVersion, string documentKind, int infoCount, int warningCount, int errorCount, int fatalCount, int blockingIssueCount, IReadOnlyList<OdfValidationIssueJsonModel> issues)

Parameters

isValid bool

文件是否通過驗證

detectedVersion string

偵測到的 ODF 版本

documentKind string

偵測到的文件種類

infoCount int

資訊性問題數量

warningCount int

警告問題數量

errorCount int

錯誤問題數量

fatalCount int

致命問題數量

blockingIssueCount int

會讓驗證失敗的問題數量

issues IReadOnlyList<OdfValidationIssueJsonModel>

驗證問題匯出模型集合

Properties

BlockingIssueCount

Gets the BlockingIssueCount value. 取得會讓驗證失敗的問題數量。

public int BlockingIssueCount { get; }

Property Value

int

DetectedVersion

Gets the DetectedVersion value. 取得偵測到的 ODF 版本。

public string DetectedVersion { get; }

Property Value

string

DocumentKind

Gets the DocumentKind value. 取得偵測到的文件種類。

public string DocumentKind { get; }

Property Value

string

ErrorCount

Gets the ErrorCount value. 取得錯誤問題數量。

public int ErrorCount { get; }

Property Value

int

FatalCount

Gets the FatalCount value. 取得致命問題數量。

public int FatalCount { get; }

Property Value

int

InfoCount

Gets the InfoCount value. 取得資訊性問題數量。

public int InfoCount { get; }

Property Value

int

IsValid

Gets a value indicating the IsValid state. 取得文件是否通過驗證。

public bool IsValid { get; }

Property Value

bool

Issues

Gets the Issues value. 取得驗證問題匯出模型集合。

public IReadOnlyList<OdfValidationIssueJsonModel> Issues { get; }

Property Value

IReadOnlyList<OdfValidationIssueJsonModel>

WarningCount

Gets the WarningCount value. 取得警告問題數量。

public int WarningCount { get; }

Property Value

int