Class ArchiveViolation

java.lang.Object
org.ofdrw.archive.check.ArchiveViolation

public class ArchiveViolation extends Object
OFD-A 不合规项描述

检查器对单条规则检查后产生的结果,描述文档中一处不符合 GB/T 42133-2022 的位置和原因。

Since:
2.4.0
Author:
权观宇
  • 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 容器内路径),可为 null
      actualValue - 实际值,可为 null
      expectedValue - 期望值,可为 null
  • Method Details

    • getRuleName

      public String getRuleName()
    • getSeverity

      public ArchiveViolation.Severity getSeverity()
    • getDescription

      public String getDescription()
    • getLocation

      public org.ofdrw.core.basicType.ST_Loc getLocation()
    • getActualValue

      public String getActualValue()
    • getExpectedValue

      public String getExpectedValue()
    • toString

      public String toString()
      Overrides:
      toString in class Object