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
isValidbool文件是否通過驗證
detectedVersionstring偵測到的 ODF 版本
documentKindstring偵測到的文件種類
infoCountint資訊性問題數量
warningCountint警告問題數量
errorCountint錯誤問題數量
fatalCountint致命問題數量
blockingIssueCountint會讓驗證失敗的問題數量
issuesIReadOnlyList<OdfValidationIssueJsonModel>驗證問題匯出模型集合
Properties
BlockingIssueCount
Gets the BlockingIssueCount value. 取得會讓驗證失敗的問題數量。
public int BlockingIssueCount { get; }
Property Value
DetectedVersion
Gets the DetectedVersion value. 取得偵測到的 ODF 版本。
public string DetectedVersion { get; }
Property Value
DocumentKind
Gets the DocumentKind value. 取得偵測到的文件種類。
public string DocumentKind { get; }
Property Value
ErrorCount
Gets the ErrorCount value. 取得錯誤問題數量。
public int ErrorCount { get; }
Property Value
FatalCount
Gets the FatalCount value. 取得致命問題數量。
public int FatalCount { get; }
Property Value
InfoCount
Gets the InfoCount value. 取得資訊性問題數量。
public int InfoCount { get; }
Property Value
IsValid
Gets a value indicating the IsValid state. 取得文件是否通過驗證。
public bool IsValid { get; }
Property Value
Issues
Gets the Issues value. 取得驗證問題匯出模型集合。
public IReadOnlyList<OdfValidationIssueJsonModel> Issues { get; }
Property Value
WarningCount
Gets the WarningCount value. 取得警告問題數量。
public int WarningCount { get; }