Class ArchiveViolation
java.lang.Object
org.ofdrw.archive.check.ArchiveViolation
OFD-A 不合规项描述
检查器对单条规则检查后产生的结果,描述文档中一处不符合 GB/T 42133-2022 的位置和原因。
- Since:
- 2.4.0
- Author:
- 权观宇
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionArchiveViolation(String ruleName, ArchiveViolation.Severity severity, String description, org.ofdrw.core.basicType.ST_Loc location, String actualValue, String expectedValue) 创建不合规项描述 -
Method Summary
-
Constructor Details
-
ArchiveViolation
public ArchiveViolation(String ruleName, ArchiveViolation.Severity severity, String description, org.ofdrw.core.basicType.ST_Loc location, String actualValue, String expectedValue) 创建不合规项描述- Parameters:
ruleName- 规则标识(如 "DOC_TYPE")severity- 严重程度description- 问题描述location- 文档内位置(OFD 容器内路径),可为 nullactualValue- 实际值,可为 nullexpectedValue- 期望值,可为 null
-
-
Method Details
-
getRuleName
-
getSeverity
-
getDescription
-
getLocation
public org.ofdrw.core.basicType.ST_Loc getLocation() -
getActualValue
-
getExpectedValue
-
toString
-